Class OAuth2TokenClaimsSet
java.lang.Object
org.springframework.security.oauth2.server.authorization.token.OAuth2TokenClaimsSet
- All Implemented Interfaces:
ClaimAccessor,OAuth2TokenClaimAccessor
A representation of a set of claims that are associated to an
OAuth2Token.- Since:
- 7.0
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic OAuth2TokenClaimsSet.Builderbuilder()Returns a newOAuth2TokenClaimsSet.Builder.Returns a set of claims that may be used for assertions.Methods 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.token.OAuth2TokenClaimAccessor
getAudience, getExpiresAt, getId, getIssuedAt, getIssuer, getNotBefore, getSubject
-
Method Details
-
getClaims
Description copied from interface:ClaimAccessorReturns a set of claims that may be used for assertions.- Specified by:
getClaimsin interfaceClaimAccessor- Returns:
- a
Mapof claims
-
builder
Returns a newOAuth2TokenClaimsSet.Builder.- Returns:
- the
OAuth2TokenClaimsSet.Builder
-