| 程序包 | 说明 |
|---|---|
| com.ms.tools.security.authenticator | |
| com.ms.tools.security.authenticator.factory |
| 限定符和类型 | 方法和说明 |
|---|---|
static GoogleAuthenticatorKey |
GoogleAuthenticatorUtils.createCredentials()
创建凭据
|
GoogleAuthenticatorKey |
GoogleAuthenticatorSingleCase.createCredentials()
创建凭据
|
GoogleAuthenticatorKey |
GoogleAuthenticatorSingleCase.createCredentials(String credentials)
创建并使用接口保存凭据
|
| 限定符和类型 | 方法和说明 |
|---|---|
GoogleAuthenticatorKey |
GoogleAuthenticatorKey.Builder.build()
Creates an instance of the
GoogleAuthenticatorKey class. |
GoogleAuthenticatorKey |
IGoogleAuthenticator.createCredentials()
此方法生成一组新的凭证,包括:
密钥
验证代码
临时代码列表
The user must register this secret on their device.
|
GoogleAuthenticatorKey |
GoogleAuthenticator.createCredentials() |
GoogleAuthenticatorKey |
IGoogleAuthenticator.createCredentials(String userName)
此方法生成一组新的凭据,调用
#createCredentials method with no arguments. |
GoogleAuthenticatorKey |
GoogleAuthenticator.createCredentials(String userName) |
GoogleAuthenticatorKey |
GoogleAuthenticator.parseGoogleAuthenticatorKey(String secret) |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
GoogleAuthenticatorQRGenerator.getOtpAuthTotpURL(String issuer,
String accountName,
GoogleAuthenticatorKey credentials)
返回基本otpauth TOTP URI。
|
static String |
GoogleAuthenticatorQRGenerator.getOtpAuthURL(String issuer,
String accountName,
GoogleAuthenticatorKey credentials,
Integer size)
返回Google Chart API调用的URL,以生成要加载到Google Authenticator应用程序中的QR条形码。
|
Copyright © 2024. All rights reserved.