Class OAuth2TokenIntrospection
java.lang.Object
org.springframework.security.oauth2.server.authorization.OAuth2TokenIntrospection
- All Implemented Interfaces:
Serializable
,org.springframework.security.oauth2.core.ClaimAccessor
,org.springframework.security.oauth2.core.OAuth2TokenIntrospectionClaimAccessor
public final class OAuth2TokenIntrospection
extends Object
implements org.springframework.security.oauth2.core.OAuth2TokenIntrospectionClaimAccessor, Serializable
A representation of the claims returned in an OAuth 2.0 Token Introspection Response.
- Since:
- 0.1.1
- See Also:
-
OAuth2TokenIntrospectionClaimAccessor
- Section 2.2 Introspection Response
- Serialized Form
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
builder
(boolean active) Constructs a newOAuth2TokenIntrospection.Builder
initialized with the providedactive
claim.Returns the claims in the Token Introspection Response.withClaims
(Map<String, Object> claims) Constructs a newOAuth2TokenIntrospection.Builder
initialized with the provided 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.core.OAuth2TokenIntrospectionClaimAccessor
getAudience, getClientId, getExpiresAt, getId, getIssuedAt, getIssuer, getNotBefore, getScopes, getSubject, getTokenType, getUsername, isActive
-
Method Details
-
getClaims
Returns the claims in the Token Introspection Response.- Specified by:
getClaims
in interfaceorg.springframework.security.oauth2.core.ClaimAccessor
- Returns:
- a
Map
of the claims
-
builder
- Returns:
- the
OAuth2TokenIntrospection.Builder
-
builder
Constructs a newOAuth2TokenIntrospection.Builder
initialized with the providedactive
claim.- Parameters:
active
-true
if the token is currently active,false
otherwise- Returns:
- the
OAuth2TokenIntrospection.Builder
-
withClaims
Constructs a newOAuth2TokenIntrospection.Builder
initialized with the provided claims.- Parameters:
claims
- the claims to initialize the builder- Returns:
- the
OAuth2TokenIntrospection.Builder
-