Package com.atlassian.bamboo.accesstoken
Class CreateAccessTokenRequest
java.lang.Object
com.atlassian.bamboo.accesstoken.CreateAccessTokenRequest
Request for creation new personal access token
- Since:
- 6.10
-
Constructor Summary
ConstructorDescriptionCreateAccessTokenRequest
(@NotNull String name, @NotNull String userName, @NotNull Iterable<AccessTokenPermission> permissions, @Nullable Integer daysUntilExpiry) CreateAccessTokenRequest
(String name, String userName, Iterable<AccessTokenPermission> permissions) -
Method Summary
-
Constructor Details
-
CreateAccessTokenRequest
public CreateAccessTokenRequest(@NotNull @NotNull String name, @NotNull @NotNull String userName, @NotNull @NotNull Iterable<AccessTokenPermission> permissions, @Nullable @Nullable Integer daysUntilExpiry) -
CreateAccessTokenRequest
public CreateAccessTokenRequest(String name, String userName, Iterable<AccessTokenPermission> permissions)
-
-
Method Details
-
getName
- Returns:
- name of the token
-
getUserName
-
getPermissions
- Returns:
- permissions granted to this token
-
getDaysUntilExpiry
- Returns:
- number of days until the token expires since its creation date. Might be null if token doesn't expire.
- Since:
- 9.4.0
-