Package com.irurueta.authserver.authorization.application.ott
package com.irurueta.authserver.authorization.application.ott
Use cases of the one-time-code (e-mail and SMS) authentication factor: requesting, verifying and cleaning up codes,
and the policy beans they share.
-
ClassDescriptionDeletes what the one-time-code and SMS features leave behind: expired codes, expired pending phone verifications, cost ledger rows older than the retention and expired magic-link tokens.Delivers what the one-time token use cases asked for: an e-mailed code or link, or a text message whose cost was already recorded.Event published when a one-time code must be e-mailed.Event published when a magic link must be e-mailed.Outcome of a request for a one-time code.Number of rows removed by a cleanup run.Declares the collaborators of the one-time-code use cases as beans, so they can be replaced and mocked.Where a one-time code of a user is delivered.Settings of the one-time codes, bound from
authserver.ott.*once and validated at startup.Outcome of the verification of a one-time code.What happened when a code was verified.Sends a magic link to the verified e-mail address of an enabled account.Sends a one-time code to a user, by e-mail or SMS.Finds where a one-time code of a user may be delivered: the verified e-mail address or the verified phone of an enabled account.Generates numeric one-time codes with a cryptographically strong random number generator.Hashes one-time codes with SHA-256 (lower-case hex) and compares them in constant time.Verifies a one-time code.