public final class GoogleAuthenticatorKey extends Object
GoogleAuthenticator| Modifier and Type | Method and Description |
|---|---|
String |
getKey()
Returns the secret key in Base32 encoding.
|
static String |
getQRBarcodeURL(String user,
String host,
String secret)
Deprecated.
Use GoogleAuthenticatorQRGenerator##getOtpAuthURL instead.
|
List<Integer> |
getScratchCodes()
Get the list of scratch codes.
|
int |
getVerificationCode()
Returns the verification code at time = 0 (the UNIX epoch).
|
public static String getQRBarcodeURL(String user, String host, String secret)
user - the user to assign the secret key to.host - the host to assign the secret key to.secret - the secret key in Base32 encoding.public List<Integer> getScratchCodes()
public String getKey()
public int getVerificationCode()
Copyright © 2017. All rights reserved.