Class OAuth2ProtectedResourceMetadata
java.lang.Object
org.springframework.security.oauth2.server.resource.OAuth2ProtectedResourceMetadata
- All Implemented Interfaces:
Serializable, ClaimAccessor, OAuth2ProtectedResourceMetadataClaimAccessor
public final class OAuth2ProtectedResourceMetadata
extends Object
implements OAuth2ProtectedResourceMetadataClaimAccessor, Serializable
A representation of an OAuth 2.0 Protected Resource Metadata response, which is
returned from an OAuth 2.0 Resource Server's Metadata Endpoint, and contains a set of
claims about the Resource Server's configuration. The claims are defined by the OAuth
2.0 Protected Resource Metadata specification (RFC 9728).
- Since:
- 7.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classHelps configure anOAuth2ProtectedResourceMetadata. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Constructs a newOAuth2ProtectedResourceMetadata.Builderwith empty claims.Returns the metadata as claims.Methods 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 OAuth2ProtectedResourceMetadataClaimAccessor
getAuthorizationServers, getBearerMethodsSupported, getResource, getResourceName, getScopes, isTlsClientCertificateBoundAccessTokens
-
Method Details
-
getClaims
Returns the metadata as claims.- Specified by:
getClaimsin interfaceClaimAccessor- Returns:
- a
Mapof the metadata as claims
-
builder
Constructs a newOAuth2ProtectedResourceMetadata.Builderwith empty claims.- Returns:
- the
OAuth2ProtectedResourceMetadata.Builder
-