Package org.opencms.security.twofactor
Class CmsSecondFactorInfo
java.lang.Object
org.opencms.security.twofactor.CmsSecondFactorInfo
Second factor information for login.
-
Constructor Summary
ConstructorDescriptionCmsSecondFactorInfo
(String code) Creates a new instance.CmsSecondFactorInfo
(String secret, String code) Creates a new instance. -
Method Summary
-
Constructor Details
-
CmsSecondFactorInfo
Creates a new instance.- Parameters:
code
- the verification code
-
CmsSecondFactorInfo
Creates a new instance.- Parameters:
secret
- the secretcode
- the verification code
-
-
Method Details
-
equals
-
getCode
Gets the verification code (normally generated and entered by the user).- Returns:
- the verification code
-
getSecret
Gets the secret (usually null, only used for second factor setup).- Returns:
- the secret
-
hashCode
-
toString
-