001/* 002 * oauth2-oidc-sdk 003 * 004 * Copyright 2012-2016, Connect2id Ltd and contributors. 005 * 006 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use 007 * this file except in compliance with the License. You may obtain a copy of the 008 * License at 009 * 010 * http://www.apache.org/licenses/LICENSE-2.0 011 * 012 * Unless required by applicable law or agreed to in writing, software distributed 013 * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 014 * CONDITIONS OF ANY KIND, either express or implied. See the License for the 015 * specific language governing permissions and limitations under the License. 016 */ 017 018package com.nimbusds.openid.connect.sdk.op; 019 020 021import java.net.URI; 022 023import net.jcip.annotations.Immutable; 024 025import com.nimbusds.oauth2.sdk.AbstractConfigurationRequest; 026import com.nimbusds.oauth2.sdk.id.Issuer; 027 028 029/** 030 * OpenID Provider (OP) configuration request. 031 * 032 * <p>Example HTTP request: 033 * 034 * <pre> 035 * GET /.well-known/openid-configuration HTTP/1.1 036 * Host: example.com 037 * </pre> 038 * 039 * <p>Related specifications: 040 * 041 * <ul> 042 * <li>OpenID Connect Discovery 1.0, section 4.1. 043 * </ul> 044 */ 045@Immutable 046public class OIDCProviderConfigurationRequest extends AbstractConfigurationRequest { 047 048 049 /** 050 * The well-known path for OpenID Provider metadata. 051 */ 052 public static final String OPENID_PROVIDER_WELL_KNOWN_PATH = "/.well-known/openid-configuration"; 053 054 055 /** 056 * Creates a new OpenID Provider configuration request. 057 * 058 * @param issuer The issuer. Must represent a valid URL. 059 */ 060 public OIDCProviderConfigurationRequest(final Issuer issuer) { 061 super(URI.create(issuer.getValue()), OPENID_PROVIDER_WELL_KNOWN_PATH); 062 } 063}