Package com.atlassian.bamboo.accesstoken
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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull Date
getCreationDate()
@Nullable Integer
getDaysUntilExpiry()
@NotNull String
getName()
@NotNull Set<AccessTokenPermission>
getPermissions()
@NotNull String
getTokenId()
@NotNull String
getUserName()
AccessToken
toAccessToken()
-
-
-
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
-
-