Class EmailToken

java.lang.Object
com.ericbouchut.learndev.auth.entity.EmailToken

@Entity public class EmailToken extends Object
A single-use, expiring email-verification token (maps the email_tokens table). Like the password-reset token, the token column stores the SHA-256 hash of the raw secret sent by email, never the secret itself.
  • Constructor Details

    • EmailToken

      public EmailToken()
  • Method Details

    • isUsable

      public boolean isUsable(OffsetDateTime now)
      True when the token can still be consumed (not used, not expired).