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

public final class AuthorizationServerSettings extends AbstractSettings
A facility for authorization server configuration settings.
Since:
0.1.0
See Also:
  • Method Details

    • getIssuer

      public String getIssuer()
      Returns the URL of the Authorization Server's Issuer Identifier
      Returns:
      the URL of the Authorization Server's Issuer Identifier
    • getAuthorizationEndpoint

      public String getAuthorizationEndpoint()
      Returns the OAuth 2.0 Authorization endpoint. The default is /oauth2/authorize.
      Returns:
      the Authorization endpoint
    • getTokenEndpoint

      public String getTokenEndpoint()
      Returns the OAuth 2.0 Token endpoint. The default is /oauth2/token.
      Returns:
      the Token endpoint
    • getJwkSetEndpoint

      public String getJwkSetEndpoint()
      Returns the JWK Set endpoint. The default is /oauth2/jwks.
      Returns:
      the JWK Set endpoint
    • getTokenRevocationEndpoint

      public String getTokenRevocationEndpoint()
      Returns the OAuth 2.0 Token Revocation endpoint. The default is /oauth2/revoke.
      Returns:
      the Token Revocation endpoint
    • getTokenIntrospectionEndpoint

      public String getTokenIntrospectionEndpoint()
      Returns the OAuth 2.0 Token Introspection endpoint. The default is /oauth2/introspect.
      Returns:
      the Token Introspection endpoint
    • getOidcClientRegistrationEndpoint

      public String 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

      public String getOidcUserInfoEndpoint()
      Returns the OpenID Connect 1.0 UserInfo endpoint. The default is /userinfo.
      Returns:
      the OpenID Connect 1.0 UserInfo endpoint
    • builder

      public static AuthorizationServerSettings.Builder builder()
      Constructs a new AuthorizationServerSettings.Builder with the default settings.
      Returns:
      the AuthorizationServerSettings.Builder
    • withSettings

      public static AuthorizationServerSettings.Builder withSettings(Map<String,Object> settings)
      Constructs a new AuthorizationServerSettings.Builder with the provided settings.
      Parameters:
      settings - the settings to initialize the builder
      Returns:
      the AuthorizationServerSettings.Builder