Class OttCleanupJob
java.lang.Object
com.irurueta.authserver.authorization.api.web.ott.OttCleanupJob
Scheduled entry point that deletes what one-time tokens leave behind once it expired: the numeric codes, the pending
phone verifications, the SMS cost ledger entries past their retention and Spring's expired link tokens. The schedule
comes from
authserver.ott.cleanup.cron (default every hour, at quarter past). Scheduling itself is enabled
once for every feature by SchedulingConfiguration.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CleanupOttUseCaseDeletes the expired one-time token data. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
cleanupOttUseCase
Deletes the expired one-time token data.
-
-
Constructor Details
-
OttCleanupJob
public OttCleanupJob()
-
-
Method Details
-
run
@Scheduled(cron="${authserver.ott.cleanup.cron:0 15 * * * *}") public void run()Deletes the expired one-time token data.
-