Class GoogleAuthenticatorKey

java.lang.Object
sk.iway.iwcm.system.googleauth.GoogleAuthenticatorKey

public final class GoogleAuthenticatorKey extends Object
This class is a JavaBean used by the GoogleAuthenticator library to represent a secret key.

This class is immutable.

Instance of this class should only be constructed by the GoogleAuthenticator library.

Since:
1.0
See Also:
  • Method Details

    • getScratchCodes

      public List<Integer> getScratchCodes()
      Get the list of scratch codes.
      Returns:
      the list of scratch codes.
    • getKey

      public String getKey()
      Returns the secret key in Base32 encoding.
      Returns:
      the secret key in Base32 encoding.
    • getVerificationCode

      public int getVerificationCode()
      Returns the verification code at time = 0 (the UNIX epoch).
      Returns:
      the verificationCode at time = 0 (the UNIX epoch).