Interface OAuth2IntrospectionClaimAccessor
-
- All Superinterfaces:
org.springframework.security.oauth2.core.ClaimAccessor
- All Known Implementing Classes:
OAuth2IntrospectionAuthenticatedPrincipal
public interface OAuth2IntrospectionClaimAccessor extends org.springframework.security.oauth2.core.ClaimAccessorDeprecated.UseOAuth2TokenIntrospectionClaimAccessorinsteadAClaimAccessorfor the "claims" that may be contained in the Introspection Response.- Since:
- 5.4
- See Also:
ClaimAccessor,OAuth2IntrospectionClaimNames,OAuth2IntrospectionAuthenticatedPrincipal, Introspection Response
-
-
Method Summary
All Methods Instance Methods Default Methods Deprecated Methods Modifier and Type Method Description default java.util.List<java.lang.String>getAudience()Deprecated.Returns the intended audience(aud)for the tokendefault java.lang.StringgetClientId()Deprecated.Returns the client identifier(client_id)for the tokendefault java.time.InstantgetExpiresAt()Deprecated.Returns a timestamp(exp)indicating when the token expiresdefault java.lang.StringgetId()Deprecated.Returns the identifier(jti)for the tokendefault java.time.InstantgetIssuedAt()Deprecated.Returns a timestamp(iat)indicating when the token was issueddefault java.net.URLgetIssuer()Deprecated.Returns the issuer(iss)of the tokendefault java.time.InstantgetNotBefore()Deprecated.Returns a timestamp(nbf)indicating when the token is not to be used beforedefault java.lang.StringgetScope()Deprecated.Returns the scopes(scope)associated with the tokendefault java.lang.StringgetSubject()Deprecated.Returns usually a machine-readable identifier(sub)of the resource owner who authorized the tokendefault java.lang.StringgetTokenType()Deprecated.Returns the type of the token(token_type), for examplebearer.default java.lang.StringgetUsername()Deprecated.Returns a human-readable identifier(username)for the resource owner that authorized the tokendefault booleanisActive()Deprecated.Returns the indicator(active)whether or not the token is currently active
-
-
-
Method Detail
-
isActive
default boolean isActive()
Deprecated.Returns the indicator(active)whether or not the token is currently active- Returns:
- the indicator whether or not the token is currently active
-
getScope
default java.lang.String getScope()
Deprecated.Returns the scopes(scope)associated with the token- Returns:
- the scopes associated with the token
-
getClientId
default java.lang.String getClientId()
Deprecated.Returns the client identifier(client_id)for the token- Returns:
- the client identifier for the token
-
getUsername
default java.lang.String getUsername()
Deprecated.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
-
getTokenType
default java.lang.String getTokenType()
Deprecated.Returns the type of the token(token_type), for examplebearer.- Returns:
- the type of the token, for example
bearer.
-
getExpiresAt
default java.time.Instant getExpiresAt()
Deprecated.Returns a timestamp(exp)indicating when the token expires- Returns:
- a timestamp indicating when the token expires
-
getIssuedAt
default java.time.Instant getIssuedAt()
Deprecated.Returns a timestamp(iat)indicating when the token was issued- Returns:
- a timestamp indicating when the token was issued
-
getNotBefore
default java.time.Instant getNotBefore()
Deprecated.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
default java.lang.String getSubject()
Deprecated.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
default java.util.List<java.lang.String> getAudience()
Deprecated.Returns the intended audience(aud)for the token- Returns:
- the intended audience for the token
-
getIssuer
default java.net.URL getIssuer()
Deprecated.Returns the issuer(iss)of the token- Returns:
- the issuer of the token
-
getId
default java.lang.String getId()
Deprecated.Returns the identifier(jti)for the token- Returns:
- the identifier for the token
-
-