Class OAuth2AuthorizationServerMetadata
java.lang.Object
org.springframework.security.oauth2.server.authorization.AbstractOAuth2AuthorizationServerMetadata
org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationServerMetadata
- All Implemented Interfaces:
Serializable, ClaimAccessor, OAuth2AuthorizationServerMetadataClaimAccessor
public final class OAuth2AuthorizationServerMetadata
extends AbstractOAuth2AuthorizationServerMetadata
A representation of an OAuth 2.0 Authorization Server Metadata response, which is
returned from an OAuth 2.0 Authorization Server's Metadata Endpoint, and contains a set
of claims about the Authorization Server's configuration. The claims are defined by the
OAuth 2.0 Authorization Server Metadata specification (RFC 8414).
- Since:
- 7.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHelps configure anOAuth2AuthorizationServerMetadata.Nested classes/interfaces inherited from class AbstractOAuth2AuthorizationServerMetadata
AbstractOAuth2AuthorizationServerMetadata.AbstractBuilder<T,B> -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Constructs a newOAuth2AuthorizationServerMetadata.Builderwith empty claims.withClaims(Map<String, Object> claims) Constructs a newOAuth2AuthorizationServerMetadata.Builderwith the provided claims.Methods inherited from class AbstractOAuth2AuthorizationServerMetadata
getClaimsMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ClaimAccessor
getClaim, getClaimAsBoolean, getClaimAsInstant, getClaimAsMap, getClaimAsString, getClaimAsStringList, getClaimAsURL, hasClaimMethods inherited from interface OAuth2AuthorizationServerMetadataClaimAccessor
getAuthorizationEndpoint, getClientRegistrationEndpoint, getCodeChallengeMethods, getDeviceAuthorizationEndpoint, getDPoPSigningAlgorithms, getGrantTypes, getIssuer, getJwkSetUrl, getPushedAuthorizationRequestEndpoint, getResponseTypes, getScopes, getTokenEndpoint, getTokenEndpointAuthenticationMethods, getTokenIntrospectionEndpoint, getTokenIntrospectionEndpointAuthenticationMethods, getTokenRevocationEndpoint, getTokenRevocationEndpointAuthenticationMethods, isTlsClientCertificateBoundAccessTokens
-
Method Details
-
builder
Constructs a newOAuth2AuthorizationServerMetadata.Builderwith empty claims.- Returns:
- the
OAuth2AuthorizationServerMetadata.Builder
-
withClaims
Constructs a newOAuth2AuthorizationServerMetadata.Builderwith the provided claims.- Parameters:
claims- the claims to initialize the builder- Returns:
- the
OAuth2AuthorizationServerMetadata.Builder
-