Class CreateAccessTokenRequest

java.lang.Object
com.atlassian.bamboo.accesstoken.CreateAccessTokenRequest

public class CreateAccessTokenRequest extends Object
Request for creation new personal access token
Since:
6.10
  • Constructor Details

  • Method Details

    • getName

      @NotNull public @NotNull String getName()
      Returns:
      name of the token
    • getUserName

      @NotNull public @NotNull String getUserName()
    • getPermissions

      @NotNull public @NotNull Set<AccessTokenPermission> getPermissions()
      Returns:
      permissions granted to this token
    • getDaysUntilExpiry

      @Nullable public @Nullable Integer 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