Uses of Record Class
com.irurueta.authserver.authorization.domain.mfa.SecondFactorLockout
Packages that use SecondFactorLockout
Package
Description
Multi-factor authentication: the authentication factors, the policy that decides when an authentication is strong
enough, trusted devices, the audit trail and the failed-attempt lockout of the second factor.
-
Uses of SecondFactorLockout in com.irurueta.authserver.authorization.domain.mfa
Methods in com.irurueta.authserver.authorization.domain.mfa that return SecondFactorLockoutModifier and TypeMethodDescriptionReads the state of a user.SecondFactorAttemptRepository.lockForUpdate(UUID userId) Reads the state of a user and locks it until the end of the current transaction, creating a clean state first when nothing was recorded, so that concurrent verifications of the same user's second factor run one after the other instead of all passing the lockout check before any of their failures is counted.static SecondFactorLockoutSecondFactorLockout.none()Creates the state of a user with no failed attempts.SecondFactorAttemptRepository.recordFailure(UUID userId, int maxAttempts, Duration lockout, Instant now) Records one failed attempt and, when the counter reaches the maximum, locks the second factor.