Package com.atlassian.bamboo.accesstoken
Interface MutableAccessToken
- All Superinterfaces:
AccessToken
,BambooIdProvider
,BambooObject
- All Known Implementing Classes:
MutableAccessTokenImpl
Represents AccessToken which will be stored in database
- Since:
- 6.10
-
Method Summary
Modifier and TypeMethodDescription@NotNull String
int
Get token permissions as mask.void
setCreationDate
(Date creationDate) Set creation datevoid
setDaysUntilExpiry
(@Nullable Integer daysUntilExpiry) Set number of days until the token expires since its creation datevoid
setHashedToken
(@NotNull String hashedToken) Set hashed token valuevoid
Set token namevoid
setPermissions
(@NotNull Iterable<AccessTokenPermission> permissions) Set token permissionsvoid
setPermissionsMask
(int permissionsMask) Set token permissions as mask.void
setTokenId
(@NotNull String tokenId) Set token unique idvoid
setUserName
(@NotNull String userName) Set token ownerMethods inherited from interface com.atlassian.bamboo.accesstoken.AccessToken
getCreationDate, getDaysUntilExpiry, getName, getPermissions, getTokenId, getUserName, toAccessToken
Methods inherited from interface com.atlassian.bamboo.core.BambooIdProvider
getId
Methods inherited from interface com.atlassian.bamboo.core.BambooObject
setId
-
Method Details
-
getHashedToken
- Returns:
- Hashed token value
-
setHashedToken
Set hashed token value- Parameters:
hashedToken
-
-
setTokenId
Set token unique id- Parameters:
tokenId
-
-
setUserName
Set token owner- Parameters:
userName
-
-
setName
Set token name- Parameters:
name
-
-
setCreationDate
Set creation date- Parameters:
creationDate
-
-
setPermissions
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
Set number of days until the token expires since its creation date- Parameters:
daysUntilExpiry
-- Since:
- 9.4.0
-