Interface OAuth2Token

All Known Implementing Classes:
AbstractOAuth2Token, Jwt, OAuth2AccessToken, OAuth2AuthorizationCode, 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 @Nullable Instant
    Returns the expiration time on or after which the token MUST NOT be accepted.
    default @Nullable 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

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

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