public final class AuthenticatorKey extends Object
This class is immutable.
Instance of this class should only be constructed by the GoogleAuthenticator library.
GoogleAuthenticator,
GoogleAuth| 限定符和类型 | 类和说明 |
|---|---|
static class |
AuthenticatorKey.Builder
This class is a builder to create instances of the
AuthenticatorKey class. |
| 限定符和类型 | 方法和说明 |
|---|---|
static AuthenticatorKey.Builder |
builder(String key) |
AuthenticatorConfig |
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 AuthenticatorConfig getConfig()
public String getKey()
public int getVerificationCode()
public static AuthenticatorKey.Builder builder(String key)
Copyright © 2025 fossc. All rights reserved.