Interface OAuth2Token

All Known Implementing Classes:
AbstractOAuth2Token, Jwt, OAuth2AccessToken, OAuth2DeviceCode, OAuth2RefreshToken, OAuth2UserCode, OidcIdToken, OidcLogoutToken

public interface OAuth2Token
Core interface representing an OAuth 2.0 Token.
Since:
5.5
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    default Instant
    Returns the expiration time on or after which the token MUST NOT be accepted.
    default Instant
    Returns the time at which the token was issued.
    Returns the token value.
  • Method Details

    • getTokenValue

      String getTokenValue()
      Returns the token value.
      Returns:
      the token value
    • getIssuedAt

      @Nullable default Instant getIssuedAt()
      Returns the time at which the token was issued.
      Returns:
      the time the token was issued or null
    • getExpiresAt

      @Nullable default Instant getExpiresAt()
      Returns the expiration time on or after which the token MUST NOT be accepted.
      Returns:
      the token expiration time or null