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 class
Helps configure anOAuth2ProtectedResourceMetadata
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Constructs a newOAuth2ProtectedResourceMetadata.Builder
with empty claims.Returns the metadata as claims.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.security.oauth2.core.ClaimAccessor
getClaim, getClaimAsBoolean, getClaimAsInstant, getClaimAsMap, getClaimAsString, getClaimAsStringList, getClaimAsURL, hasClaim
Methods inherited from interface org.springframework.security.oauth2.server.resource.OAuth2ProtectedResourceMetadataClaimAccessor
getAuthorizationServers, getBearerMethodsSupported, getResource, getResourceName, getScopes, isTlsClientCertificateBoundAccessTokens
-
Method Details
-
getClaims
Returns the metadata as claims.- Specified by:
getClaims
in interfaceClaimAccessor
- Returns:
- a
Map
of the metadata as claims
-
builder
Constructs a newOAuth2ProtectedResourceMetadata.Builder
with empty claims.- Returns:
- the
OAuth2ProtectedResourceMetadata.Builder
-