Class AuthorizationServerSettings
java.lang.Object
org.springframework.security.oauth2.server.authorization.settings.AbstractSettings
org.springframework.security.oauth2.server.authorization.settings.AuthorizationServerSettings
- All Implemented Interfaces:
Serializable
A facility for authorization server configuration settings.
- Since:
- 0.1.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.security.oauth2.server.authorization.settings.AbstractSettings
AbstractSettings.AbstractBuilder<T extends AbstractSettings,
B extends AbstractSettings.AbstractBuilder<T, B>> -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Constructs a newAuthorizationServerSettings.Builder
with the default settings.Returns the OAuth 2.0 Authorization endpoint.Returns the OAuth 2.0 Device Authorization endpoint.Returns the OAuth 2.0 Device Verification endpoint.Returns the URL of the Authorization Server's Issuer Identifier.Returns the JWK Set endpoint.Returns the OpenID Connect 1.0 Client Registration endpoint.Returns the OpenID Connect 1.0 Logout endpoint.Returns the OpenID Connect 1.0 UserInfo endpoint.Returns the OAuth 2.0 Token endpoint.Returns the OAuth 2.0 Token Introspection endpoint.Returns the OAuth 2.0 Token Revocation endpoint.boolean
Returnstrue
if multiple issuers are allowed per host.withSettings
(Map<String, Object> settings) Constructs a newAuthorizationServerSettings.Builder
with the provided settings.Methods inherited from class org.springframework.security.oauth2.server.authorization.settings.AbstractSettings
equals, getSetting, getSettings, hashCode, toString
-
Method Details
-
getIssuer
Returns the URL of the Authorization Server's Issuer Identifier.- Returns:
- the URL of the Authorization Server's Issuer Identifier
-
isMultipleIssuersAllowed
public boolean isMultipleIssuersAllowed()Returnstrue
if multiple issuers are allowed per host. The default isfalse
. Using path components in the URL of the issuer identifier enables supporting multiple issuers per host in a multi-tenant hosting configuration.For example:
https://example.com/issuer1
https://example.com/authz/issuer2
- Returns:
true
if multiple issuers are allowed per host,false
otherwise- Since:
- 1.3
- See Also:
-
getAuthorizationEndpoint
Returns the OAuth 2.0 Authorization endpoint. The default is/oauth2/authorize
.- Returns:
- the Authorization endpoint
-
getDeviceAuthorizationEndpoint
Returns the OAuth 2.0 Device Authorization endpoint. The default is/oauth2/device_authorization
.- Returns:
- the Device Authorization endpoint
- Since:
- 1.1
-
getDeviceVerificationEndpoint
Returns the OAuth 2.0 Device Verification endpoint. The default is/oauth2/device_verification
.- Returns:
- the Device Verification endpoint
- Since:
- 1.1
-
getTokenEndpoint
Returns the OAuth 2.0 Token endpoint. The default is/oauth2/token
.- Returns:
- the Token endpoint
-
getJwkSetEndpoint
Returns the JWK Set endpoint. The default is/oauth2/jwks
.- Returns:
- the JWK Set endpoint
-
getTokenRevocationEndpoint
Returns the OAuth 2.0 Token Revocation endpoint. The default is/oauth2/revoke
.- Returns:
- the Token Revocation endpoint
-
getTokenIntrospectionEndpoint
Returns the OAuth 2.0 Token Introspection endpoint. The default is/oauth2/introspect
.- Returns:
- the Token Introspection endpoint
-
getOidcClientRegistrationEndpoint
Returns the OpenID Connect 1.0 Client Registration endpoint. The default is/connect/register
.- Returns:
- the OpenID Connect 1.0 Client Registration endpoint
-
getOidcUserInfoEndpoint
Returns the OpenID Connect 1.0 UserInfo endpoint. The default is/userinfo
.- Returns:
- the OpenID Connect 1.0 UserInfo endpoint
-
getOidcLogoutEndpoint
Returns the OpenID Connect 1.0 Logout endpoint. The default is/connect/logout
.- Returns:
- the OpenID Connect 1.0 Logout endpoint
- Since:
- 1.1
-
builder
Constructs a newAuthorizationServerSettings.Builder
with the default settings.- Returns:
- the
AuthorizationServerSettings.Builder
-
withSettings
Constructs a newAuthorizationServerSettings.Builder
with the provided settings.- Parameters:
settings
- the settings to initialize the builder- Returns:
- the
AuthorizationServerSettings.Builder
-