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.oauth2.sdk.as; 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 * OAuth 2.0 Authorisation Server (AS) configuration request. 031 * 032 * <p>Example HTTP request: 033 * 034 * <pre> 035 * GET /.well-known/oauth-authorization-server HTTP/1.1 036 * Host: example.com 037 * </pre> 038 * 039 * <p>Related specifications: 040 * 041 * <ul> 042 * <li>OAuth 2.0 Authorization Server Metadata (RFC 8414) 043 * </ul> 044 */ 045@Immutable 046public class AuthorizationServerConfigurationRequest extends AbstractConfigurationRequest { 047 048 049 /** 050 * The well-known path for OAuth 2.0 Authorisation Server metadata. 051 */ 052 public static final String OAUTH_SERVER_WELL_KNOWN_PATH = "/.well-known/oauth-authorization-server"; 053 054 055 /** 056 * Creates a new OAuth 2.0 Authorisation Server configuration request. 057 * 058 * @param issuer The issuer. Must represent a valid URL. 059 */ 060 public AuthorizationServerConfigurationRequest(final Issuer issuer) { 061 super(URI.create(issuer.getValue()), OAUTH_SERVER_WELL_KNOWN_PATH); 062 } 063}