Interface OAuth2TokenIntrospectionClaimAccessor
- All Superinterfaces:
ClaimAccessor
- All Known Implementing Classes:
OAuth2IntrospectionAuthenticatedPrincipal
A
ClaimAccessor
for the "claims" that may be contained in the
Introspection Response.- Since:
- 5.6
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionReturns the intended audience(aud)
for the tokendefault String
Returns the client identifier(client_id)
for the tokendefault Instant
Returns a timestamp(exp)
indicating when the token expiresdefault String
getId()
Returns the identifier(jti)
for the tokendefault Instant
Returns a timestamp(iat)
indicating when the token was issueddefault URL
Returns the issuer(iss)
of the tokendefault Instant
Returns a timestamp(nbf)
indicating when the token is not to be used beforeReturns the scopes(scope)
associated with the tokendefault String
Returns usually a machine-readable identifier(sub)
of the resource owner who authorized the tokendefault String
Returns the type of the token(token_type)
, for examplebearer
.default String
Returns a human-readable identifier(username)
for the resource owner that authorized the tokendefault boolean
isActive()
Returns the indicator(active)
whether or not the token is currently activeMethods inherited from interface org.springframework.security.oauth2.core.ClaimAccessor
getClaim, getClaimAsBoolean, getClaimAsInstant, getClaimAsMap, getClaimAsString, getClaimAsStringList, getClaimAsURL, getClaims, hasClaim
-
Method Details
-
isActive
default boolean isActive()Returns the indicator(active)
whether or not the token is currently active- Returns:
- the indicator whether or not the token is currently active
-
getUsername
Returns a human-readable identifier(username)
for the resource owner that authorized the token- Returns:
- a human-readable identifier for the resource owner that authorized the token
-
getClientId
Returns the client identifier(client_id)
for the token- Returns:
- the client identifier for the token
-
getScopes
Returns the scopes(scope)
associated with the token- Returns:
- the scopes associated with the token
-
getTokenType
Returns the type of the token(token_type)
, for examplebearer
.- Returns:
- the type of the token, for example
bearer
.
-
getExpiresAt
Returns a timestamp(exp)
indicating when the token expires- Returns:
- a timestamp indicating when the token expires
-
getIssuedAt
Returns a timestamp(iat)
indicating when the token was issued- Returns:
- a timestamp indicating when the token was issued
-
getNotBefore
Returns a timestamp(nbf)
indicating when the token is not to be used before- Returns:
- a timestamp indicating when the token is not to be used before
-
getSubject
Returns usually a machine-readable identifier(sub)
of the resource owner who authorized the token- Returns:
- usually a machine-readable identifier of the resource owner who authorized the token
-
getAudience
Returns the intended audience(aud)
for the token- Returns:
- the intended audience for the token
-
getIssuer
Returns the issuer(iss)
of the token- Returns:
- the issuer of the token
-
getId
Returns the identifier(jti)
for the token- Returns:
- the identifier for the token
-