Package com.atlassian.bamboo.accesstoken
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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull String
getHashedToken()
int
getPermissionsMask()
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
setName(@NotNull String name)
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 owner-
Methods 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 Detail
-
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
-
-