@Component(value="verificationActions") public class VerificationActions extends Object
| Constructor and Description |
|---|
VerificationActions() |
| Modifier and Type | Method and Description |
|---|---|
void |
addVerificationEntry(String username,
String verificationCode,
Timestamp date)
Adds new row in the verification table
|
void |
deleteVerificationEntry(String username)
Delete a verification with a specific id
|
DataSourceConnector |
getDataSourceConnector() |
void |
setDataSourceConnector(DataSourceConnector dataSourceConnector) |
void |
updateVerificationEntry(String username,
String verificationCode,
Timestamp date)
Updates the row of verification table with the new date for the given username
|
boolean |
verificationCodeHasExpired(String username)
Checks if the verification code has expired
!!! Verification code expires in 24hours !!!
|
boolean |
verificationCodeIsCorrect(String username,
String verificationCode)
Checks if the verification row exists for the given username
|
boolean |
verificationEntryExists(String username)
Checks if the verification row exists for the given username
|
public void addVerificationEntry(String username, String verificationCode, Timestamp date)
public void updateVerificationEntry(String username, String verificationCode, Timestamp date)
public void deleteVerificationEntry(String username)
public boolean verificationEntryExists(String username)
public boolean verificationCodeIsCorrect(String username, String verificationCode)
public boolean verificationCodeHasExpired(String username)
public DataSourceConnector getDataSourceConnector()
public void setDataSourceConnector(DataSourceConnector dataSourceConnector)
Copyright © 2026. All rights reserved.