Interface AccessToken

All Known Subinterfaces:
MutableAccessToken, RawAccessToken
All Known Implementing Classes:
MutableAccessTokenImpl

public interface AccessToken
Basic access token data without authentication token itself
Since:
6.10
  • Method Details

    • getTokenId

      @NotNull @NotNull String getTokenId()
      Returns:
      unique token id
    • getName

      @NotNull @NotNull String getName()
      Returns:
      name of the token
    • getUserName

      @NotNull @NotNull String getUserName()
      Returns:
      token owner user name
    • getCreationDate

      @NotNull @NotNull Date getCreationDate()
      Returns:
      token creation date
    • getPermissions

      @NotNull @NotNull Set<AccessTokenPermission> getPermissions()
      Returns:
      permissions granted to this token
    • getDaysUntilExpiry

      @Nullable @Nullable Integer getDaysUntilExpiry()
      Returns:
      number of days until the token expires since its creation date
      Since:
      9.4.0
    • toAccessToken

      AccessToken toAccessToken()
      Returns:
      safe version of access token without authentication token itself