Package jenkins.security.apitoken
Class ApiTokenStore.HashedToken
java.lang.Object
jenkins.security.apitoken.ApiTokenStore.HashedToken
- All Implemented Interfaces:
Serializable
- Enclosing class:
- ApiTokenStore
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionstatic ApiTokenStore.HashedToken
static ApiTokenStore.HashedToken
buildNewFromLegacy
(jenkins.security.apitoken.ApiTokenStore.HashValue value, boolean migrationFromExistingLegacy) getName()
long
Relevant only if the lastUseDate is not nullgetUuid()
boolean
isLegacy()
boolean
match
(byte[] hashedBytes) void
void
-
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
-
match
public boolean match(byte[] hashedBytes) -
getName
-
getCreationDate
-
getNumDaysCreation
public long getNumDaysCreation()Relevant only if the lastUseDate is not null -
getUuid
-
isLegacy
public boolean isLegacy() -
setName
-