Class UserToken

java.lang.Object
io.goobi.viewer.model.security.user.UserToken

@Entity public class UserToken extends Object
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 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

      public Long getId()
    • getUser

      public User getUser()
    • setUser

      public void setUser(User user)
    • getTokenHash

      public String getTokenHash()
    • setTokenHash

      public void setTokenHash(String tokenHash)
    • getDateCreated

      public LocalDateTime getDateCreated()
    • setDateCreated

      public void setDateCreated(LocalDateTime dateCreated)
    • getExpirationDate

      public LocalDateTime getExpirationDate()
    • setExpirationDate

      public void setExpirationDate(LocalDateTime expirationDate)