Class TotpFactor
java.lang.Object
com.irurueta.authserver.authorization.api.web.totp.TotpFactor
Registers the time-based one-time password (and the recovery codes that stand in for it) as an authentication
factor: a second one, which only counts once a primary factor has been presented.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeclares the TOTP factor.
-
Field Details
-
ID
Identifier of the factor.- See Also:
-
AMR_VALUE
RFC 8176amrvalue of a one-time password; recovery-code logins report it too.- See Also:
-
AUTHORITY
Authority granted once a TOTP code or a recovery code has been verified. Spring Security has no constant for it, so it is a custom factor authority (FACTOR_prefix included).- See Also:
-
-
Constructor Details
-
TotpFactor
public TotpFactor()
-
-
Method Details
-
totpAuthenticationFactor
Declares the TOTP factor.- Returns:
- the factor.
-