Class OAuth2AuthorizationServerMetadata
java.lang.Object
org.springframework.security.oauth2.server.authorization.AbstractOAuth2AuthorizationServerMetadata
org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationServerMetadata
- All Implemented Interfaces:
Serializable,org.springframework.security.oauth2.core.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:
- 0.1.1
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHelps configure anOAuth2AuthorizationServerMetadata.Nested classes/interfaces inherited from class org.springframework.security.oauth2.server.authorization.AbstractOAuth2AuthorizationServerMetadata
AbstractOAuth2AuthorizationServerMetadata.AbstractBuilder<T extends AbstractOAuth2AuthorizationServerMetadata,B extends 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 org.springframework.security.oauth2.server.authorization.AbstractOAuth2AuthorizationServerMetadata
getClaimsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.security.oauth2.core.ClaimAccessor
getClaim, getClaimAsBoolean, getClaimAsInstant, getClaimAsMap, getClaimAsString, getClaimAsStringList, getClaimAsURL, hasClaimMethods inherited from interface org.springframework.security.oauth2.server.authorization.OAuth2AuthorizationServerMetadataClaimAccessor
getAuthorizationEndpoint, getClientRegistrationEndpoint, getCodeChallengeMethods, getDeviceAuthorizationEndpoint, getGrantTypes, getIssuer, getJwkSetUrl, 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
-