Interface AccessToken

    • Method Detail

      • 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