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