Package org.opencms.security.twofactor
Class CmsSecondFactorInfo
- java.lang.Object
-
- org.opencms.security.twofactor.CmsSecondFactorInfo
-
public class CmsSecondFactorInfo extends java.lang.Object
Second factor information for login.
-
-
Constructor Summary
Constructors Constructor Description CmsSecondFactorInfo(java.lang.String code)
Creates a new instance.CmsSecondFactorInfo(java.lang.String secret, java.lang.String code)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.String
getCode()
Gets the verification code (normally generated and entered by the user).java.lang.String
getSecret()
Gets the secret (usually null, only used for second factor setup).int
hashCode()
java.lang.String
toString()
-
-
-
Constructor Detail
-
CmsSecondFactorInfo
public CmsSecondFactorInfo(java.lang.String code)
Creates a new instance.- Parameters:
code
- the verification code
-
CmsSecondFactorInfo
public CmsSecondFactorInfo(java.lang.String secret, java.lang.String code)
Creates a new instance.- Parameters:
secret
- the secretcode
- the verification code
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
- See Also:
Object.equals(java.lang.Object)
-
getCode
public java.lang.String getCode()
Gets the verification code (normally generated and entered by the user).- Returns:
- the verification code
-
getSecret
public java.lang.String getSecret()
Gets the secret (usually null, only used for second factor setup).- Returns:
- the secret
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
- See Also:
Object.hashCode()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
- See Also:
Object.toString()
-
-