Package sk.iway.iwcm.system.googleauth
Class GoogleAuthenticatorKey
java.lang.Object
sk.iway.iwcm.system.googleauth.GoogleAuthenticatorKey
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 Summary
Modifier and TypeMethodDescriptiongetKey()
Returns the secret key in Base32 encoding.Get the list of scratch codes.int
Returns the verification code at time = 0 (the UNIX epoch).
-
Method Details
-
getScratchCodes
Get the list of scratch codes.- Returns:
- the list of scratch codes.
-
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).
-