public static class AuthenticatorKey.Builder extends Object
AuthenticatorKey class.| 限定符和类型 | 方法和说明 |
|---|---|
AuthenticatorKey |
build()
Creates an instance of the
AuthenticatorKey class. |
AuthenticatorKey.Builder |
setConfig(AuthenticatorConfig config)
Sets the config of the TOTP algorithm for this key.
|
AuthenticatorKey.Builder |
setKey(String key)
Sets the secret key.
|
AuthenticatorKey.Builder |
setScratchCodes(List<Integer> scratchCodes)
Sets the scratch codes.
|
AuthenticatorKey.Builder |
setVerificationCode(int verificationCode)
Sets the verification code.
|
public Builder(String key)
key - the secret key in Base32 encoding.AuthenticatorKey.AuthenticatorKey(AuthenticatorConfig, String, int, List)public AuthenticatorKey build()
AuthenticatorKey class.AuthenticatorKey class initialized with the properties set in this builder.AuthenticatorKey.AuthenticatorKey(AuthenticatorConfig, String, int, List)public AuthenticatorKey.Builder setConfig(AuthenticatorConfig config)
config - the config of the TOTP algorithm for this key.AuthenticatorKey.AuthenticatorKey(AuthenticatorConfig, String, int, List)public AuthenticatorKey.Builder setKey(String key)
key - the secret key.AuthenticatorKey.AuthenticatorKey(AuthenticatorConfig, String, int, List)public AuthenticatorKey.Builder setVerificationCode(int verificationCode)
verificationCode - the verification code.AuthenticatorKey.AuthenticatorKey(AuthenticatorConfig, String, int, List)public AuthenticatorKey.Builder setScratchCodes(List<Integer> scratchCodes)
scratchCodes - the scratch codes.AuthenticatorKey.AuthenticatorKey(AuthenticatorConfig, String, int, List)Copyright © 2025 fossc. All rights reserved.