Interface OAuth2TokenIntrospectionClaimAccessor
- All Superinterfaces:
ClaimAccessor
- All Known Implementing Classes:
OAuth2IntrospectionAuthenticatedPrincipal, OAuth2TokenIntrospection
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 token, ornullif it does not exist.default @Nullable StringReturns the client identifier(client_id)for the token, ornullif it does not exist.default @Nullable InstantReturns a timestamp(exp)indicating when the token expires, ornullif it does not exist.default @Nullable StringgetId()Returns the identifier(jti)for the token, ornullif it does not exist.default @Nullable InstantReturns a timestamp(iat)indicating when the token was issued, ornullif it does not exist.default @Nullable URLReturns the issuer(iss)of the token, ornullif it does not exist.default @Nullable InstantReturns a timestamp(nbf)indicating when the token is not to be used before, ornullif it does not exist.Returns the scopes(scope)associated with the token, ornullif it does not exist.default @Nullable StringReturns usually a machine-readable identifier(sub)of the resource owner who authorized the token, ornullif it does not exist.default @Nullable StringReturns the type of the token(token_type), for examplebearer, ornullif it does not exist.default @Nullable StringReturns a human-readable identifier(username)for the resource owner that authorized the token, ornullif it does not exist.default booleanisActive()Returns the indicator(active)whether or not the token is currently active.Methods inherited from interface 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, ornullif it does not exist.- Returns:
- a human-readable identifier for the resource owner that authorized the
token, or
nullif it does not exist
-
getClientId
Returns the client identifier(client_id)for the token, ornullif it does not exist.- Returns:
- the client identifier for the token, or
nullif it does not exist.
-
getScopes
-
getTokenType
Returns the type of the token(token_type), for examplebearer, ornullif it does not exist.- Returns:
- the type of the token, for example
bearer, ornullif it does not exist
-
getExpiresAt
Returns a timestamp(exp)indicating when the token expires, ornullif it does not exist.- Returns:
- a timestamp indicating when the token expires, or
nullif it does not exist.
-
getIssuedAt
Returns a timestamp(iat)indicating when the token was issued, ornullif it does not exist.- Returns:
- a timestamp indicating when the token was issued, or
nullif it does not exist.
-
getNotBefore
Returns a timestamp(nbf)indicating when the token is not to be used before, ornullif it does not exist.- Returns:
- a timestamp indicating when the token is not to be used before, or
nullif it does not exist.
-
getSubject
Returns usually a machine-readable identifier(sub)of the resource owner who authorized the token, ornullif it does not exist.- Returns:
- usually a machine-readable identifier of the resource owner who authorized
the token, or
nullif it does not exist
-
getAudience
-
getIssuer
Returns the issuer(iss)of the token, ornullif it does not exist.- Returns:
- the issuer of the token, or
nullif it does not exist.
-
getId
Returns the identifier(jti)for the token, ornullif it does not exist.- Returns:
- the identifier for the token, or
nullif it does not exist.
-