Interface MutableAccessToken

All Superinterfaces:
AccessToken, BambooIdProvider, BambooObject
All Known Implementing Classes:
MutableAccessTokenImpl

public interface MutableAccessToken extends AccessToken, BambooObject
Represents AccessToken which will be stored in database
Since:
6.10
  • Method Details

    • getHashedToken

      @NotNull @NotNull String getHashedToken()
      Returns:
      Hashed token value
    • setHashedToken

      void setHashedToken(@NotNull @NotNull String hashedToken)
      Set hashed token value
      Parameters:
      hashedToken -
    • setTokenId

      void setTokenId(@NotNull @NotNull String tokenId)
      Set token unique id
      Parameters:
      tokenId -
    • setUserName

      void setUserName(@NotNull @NotNull String userName)
      Set token owner
      Parameters:
      userName -
    • setName

      void setName(@NotNull @NotNull String name)
      Set token name
      Parameters:
      name -
    • setCreationDate

      void setCreationDate(Date creationDate)
      Set creation date
      Parameters:
      creationDate -
    • setPermissions

      void setPermissions(@NotNull @NotNull Iterable<AccessTokenPermission> permissions)
      Set token permissions
      Parameters:
      permissions -
    • getPermissionsMask

      int getPermissionsMask()
      Get token permissions as mask.
    • setPermissionsMask

      void setPermissionsMask(int permissionsMask)
      Set token permissions as mask.
      Parameters:
      permissionsMask -
    • setDaysUntilExpiry

      void setDaysUntilExpiry(@Nullable @Nullable Integer daysUntilExpiry)
      Set number of days until the token expires since its creation date
      Parameters:
      daysUntilExpiry -
      Since:
      9.4.0