Package jenkins.security.apitoken
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:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ApiTokenStore.HashedToken
buildNew(String name, jenkins.security.apitoken.ApiTokenStore.HashValue value)
static ApiTokenStore.HashedToken
buildNewFromLegacy(jenkins.security.apitoken.ApiTokenStore.HashValue value, boolean migrationFromExistingLegacy)
Date
getCreationDate()
String
getName()
long
getNumDaysCreation()
Relevant only if the lastUseDate is not nullString
getUuid()
boolean
isLegacy()
boolean
match(byte[] hashedBytes)
void
rename(String newName)
void
setName(String name)
-
-
-
Method Detail
-
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)
-
-