public final class GoogleAuthenticatorQRGenerator extends Object
| Constructor and Description |
|---|
GoogleAuthenticatorQRGenerator() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getOtpAuthTotpURL(String issuer,
String accountName,
GoogleAuthenticatorKey credentials)
Returns the basic otpauth TOTP URI.
|
static String |
getOtpAuthURL(String issuer,
String accountName,
GoogleAuthenticatorKey credentials)
Returns the URL of a Google Chart API call to generate a QR barcode to
be loaded into the Google Authenticator application.
|
public static String getOtpAuthURL(String issuer, String accountName, GoogleAuthenticatorKey credentials)
issuer - The issuer name. This parameter cannot contain the colon
(:) character. This parameter can be null.accountName - The account name. This parameter shall not be null.credentials - The generated credentials. This parameter shall not be null.public static String getOtpAuthTotpURL(String issuer, String accountName, GoogleAuthenticatorKey credentials)
issuer - The issuer name. This parameter cannot contain the colon
(:) character. This parameter can be null.accountName - The account name. This parameter shall not be null.credentials - The generated credentials. This parameter shall not be null.Copyright © 2017. All rights reserved.