Class EmailToken
java.lang.Object
com.ericbouchut.learndev.auth.entity.EmailToken
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisUsable(OffsetDateTime now) True when the token can still be consumed (not used, not expired).
-
Constructor Details
-
EmailToken
public EmailToken()
-
-
Method Details
-
isUsable
True when the token can still be consumed (not used, not expired).
-