Class UserToken
java.lang.Object
io.goobi.viewer.model.security.user.UserToken
A user-bound opaque authentication token. The plaintext token is returned once at login and
never persisted; only its SHA-256 hash is stored.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetId()getUser()booleanvoidsetDateCreated(LocalDateTime dateCreated) voidsetExpirationDate(LocalDateTime expirationDate) voidsetTokenHash(String tokenHash) void
-
Constructor Details
-
UserToken
public UserToken()
-
-
Method Details
-
isExpired
public boolean isExpired()- Returns:
- true if this token has an expiration date and it is in the past
-
getId
-
getUser
-
setUser
-
getTokenHash
-
setTokenHash
-
getDateCreated
-
setDateCreated
-
getExpirationDate
-
setExpirationDate
-