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 SummaryNested ClassesModifier and TypeClassDescriptionstatic final classHelps configure anOAuth2ProtectedResourceMetadata.
- 
Method SummaryModifier and TypeMethodDescriptionbuilder()Constructs a newOAuth2ProtectedResourceMetadata.Builderwith empty claims.Returns the metadata as claims.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.security.oauth2.core.ClaimAccessorgetClaim, getClaimAsBoolean, getClaimAsInstant, getClaimAsMap, getClaimAsString, getClaimAsStringList, getClaimAsURL, hasClaimMethods inherited from interface org.springframework.security.oauth2.server.resource.OAuth2ProtectedResourceMetadataClaimAccessorgetAuthorizationServers, getBearerMethodsSupported, getResource, getResourceName, getScopes, isTlsClientCertificateBoundAccessTokens
- 
Method Details- 
getClaimsReturns the metadata as claims.- Specified by:
- getClaimsin interface- ClaimAccessor
- Returns:
- a Mapof the metadata as claims
 
- 
builderConstructs a newOAuth2ProtectedResourceMetadata.Builderwith empty claims.- Returns:
- the OAuth2ProtectedResourceMetadata.Builder
 
 
-