Interface OAuth2Token
-
- All Known Implementing Classes:
AbstractOAuth2Token
,Jwt
,OAuth2AccessToken
,OAuth2RefreshToken
,OidcIdToken
public interface OAuth2Token
Core interface representing an OAuth 2.0 Token.- Since:
- 5.5
- See Also:
AbstractOAuth2Token
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default java.time.Instant
getExpiresAt()
Returns the expiration time on or after which the token MUST NOT be accepted.default java.time.Instant
getIssuedAt()
Returns the time at which the token was issued.java.lang.String
getTokenValue()
Returns the token value.
-
-
-
Method Detail
-
getTokenValue
java.lang.String getTokenValue()
Returns the token value.- Returns:
- the token value
-
getIssuedAt
@Nullable default java.time.Instant getIssuedAt()
Returns the time at which the token was issued.- Returns:
- the time the token was issued or
null
-
getExpiresAt
@Nullable default java.time.Instant getExpiresAt()
Returns the expiration time on or after which the token MUST NOT be accepted.- Returns:
- the token expiration time or
null
-
-