public final class GoogleAuthenticatorKey extends Object
This class is immutable.
Instance of this class should only be constructed by the GoogleAuthenticator library.
GoogleAuthenticator| 限定符和类型 | 类和说明 |
|---|---|
static class |
GoogleAuthenticatorKey.Builder
This class is a builder to create instances of the
GoogleAuthenticatorKey class. |
| 限定符和类型 | 方法和说明 |
|---|---|
GoogleAuthenticatorConfig |
getConfig()
Get the config of this key.
|
String |
getKey()
Returns the secret key in Base32 encoding.
|
List<Integer> |
getScratchCodes()
Get the list of scratch codes.
|
int |
getVerificationCode()
Returns the verification code at time = 0 (the UNIX epoch).
|
public List<Integer> getScratchCodes()
public GoogleAuthenticatorConfig getConfig()
public String getKey()
public int getVerificationCode()
Copyright © 2024. All rights reserved.