Class GoogleAuthenticator

java.lang.Object
com.warrenstrange.googleauth.GoogleAuthenticator
All Implemented Interfaces:
IGoogleAuthenticator

public final class GoogleAuthenticator
extends Object
implements IGoogleAuthenticator
This class implements the functionality described in RFC 6238 (TOTP: Time based one-time password algorithm) and has been tested again Google's implementation of such algorithm in its Google Authenticator application.

This class lets users create a new 16-bit base32-encoded secret key with the validation code calculated at time = 0 (the UNIX epoch) and the URL of a Google-provided QR barcode to let an user load the generated information into Google Authenticator.

The random number generator used by this class uses the default algorithm and provider. Users can override them by setting the following system properties to the algorithm and provider name of their choice:

This class does not store in any way either the generated keys nor the keys passed during the authorization process.

Java Server side class for Google Authenticator's TOTP generator was inspired by an author's blog post.

Since:
0.3.0
Version:
1.1.4
Author:
Enrico M. Crisostomo, Warren Strange
See Also:
, ,