Class 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()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • 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 secret
        code - the verification code
    • Method Detail

      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.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 class java.lang.Object
        See Also:
        Object.hashCode()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
        See Also:
        Object.toString()