Class ConfirmationToken
java.lang.Object
com.example.demo.registration.token.ConfirmationToken
JPA Entity representing a confirmation token.
This token is created upon user registration and sent via email to verify
the user's account before it can be enabled.
-
Constructor Summary
ConstructorsConstructorDescriptionConfirmationToken(String token, LocalDateTime createdAt, LocalDateTime expiresAt, AppUser appUser) Constructs a new ConfirmationToken instance. -
Method Summary
-
Constructor Details
-
ConfirmationToken
public ConfirmationToken(String token, LocalDateTime createdAt, LocalDateTime expiresAt, AppUser appUser) Constructs a new ConfirmationToken instance. The time is initially set tonull.- Parameters:
token- The unique token string.createdAt- The token creation time.expiresAt- The token expiration time.appUser- The user associated with this token.
-