public final class GoogleAuthenticatorQRGenerator extends Object
| 构造器和说明 |
|---|
GoogleAuthenticatorQRGenerator() |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
getOtpAuthTotpURL(String issuer,
String accountName,
GoogleAuthenticatorKey credentials)
返回基本otpauth TOTP URI。
|
static String |
getOtpAuthURL(String issuer,
String accountName,
GoogleAuthenticatorKey credentials,
Integer size)
返回Google Chart API调用的URL,以生成要加载到Google Authenticator应用程序中的QR条形码。
|
public static String getOtpAuthURL(String issuer, String accountName, GoogleAuthenticatorKey credentials, Integer size)
当前的实现支持以下功能:
issuer - 发行人名称。此参数不能包含冒号 (:) 字符。此参数可以为null。accountName - 帐户名称。此参数不应为null。credentials - 生成的凭据。此参数不应为null。size - 图片大小。此参数在10-1000之间,默认值在250px。public static String getOtpAuthTotpURL(String issuer, String accountName, GoogleAuthenticatorKey credentials)
当前的实现支持以下功能:
issuer - 发行人名称。此参数不能包含冒号 (:) 字符。此参数可以为null。accountName - 帐户名称。此参数不应为null。credentials - 生成的凭据。此参数不应为null。Copyright © 2024. All rights reserved.