Class ApiTokenStore.HashedToken

java.lang.Object
jenkins.security.apitoken.ApiTokenStore.HashedToken
All Implemented Interfaces:
Serializable
Enclosing class:
ApiTokenStore

public static class ApiTokenStore.HashedToken extends Object implements Serializable
See Also:
  • Method Details

    • buildNew

      @NonNull public static ApiTokenStore.HashedToken buildNew(@NonNull String name, @NonNull jenkins.security.apitoken.ApiTokenStore.HashValue value)
    • buildNewFromLegacy

      @NonNull public static ApiTokenStore.HashedToken buildNewFromLegacy(@NonNull jenkins.security.apitoken.ApiTokenStore.HashValue value, boolean migrationFromExistingLegacy)
    • rename

      public void rename(String newName)
    • match

      public boolean match(byte[] hashedBytes)
    • getName

      public String getName()
    • getCreationDate

      public Date getCreationDate()
    • getNumDaysCreation

      public long getNumDaysCreation()
      Relevant only if the lastUseDate is not null
    • getUuid

      public String getUuid()
    • isLegacy

      public boolean isLegacy()
    • setName

      public void setName(String name)