Class VerificationToken
java.lang.Object
de.gustavblass.fsu.fmi.roombooking.model.actor.VerificationToken
- Direct Known Subclasses:
EMailVerificationToken
Represents a kind of quasi-secret that is sent to those Actors who need to verify their
Actor.eMailAddresses after signing up.
If they click on the link containing such a token, it is searched for in the database to be confirmed.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Actorprivate LocalDateTimeWhen thisVerificationTokenwas generated, saved to the database and sent to theactor.private LocalDateTimeAfter thisLocalDateTime, thetokenwill become useless.private LongIdentifies thisVerificationTokenuniquely.private StringThe actual value of thisVerificationToken.static final @NonNull Duration -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
VALIDITY_TIME
-
id
Identifies thisVerificationTokenuniquely. -
token
The actual value of thisVerificationToken. -
createdAt
When thisVerificationTokenwas generated, saved to the database and sent to theactor. -
expiresAt
After thisLocalDateTime, thetokenwill become useless. -
actor
-
-
Constructor Details
-
VerificationToken
- Parameters:
validityDuration- For how long the newtokenshall be valid afterLocalDateTime.now().
-
-
Method Details
-
getToken
-