Index

C D G H L T U V 
All Classes and Interfaces|All Packages|Constant Field Values

C

com.eatthepath.otp - package com.eatthepath.otp
Contains classes for generating one-time passwords using either the HOTP (RFC 4226) or TOTP (RFC 6328) algorithms.

D

DEFAULT_PASSWORD_LENGTH - Static variable in class com.eatthepath.otp.HmacOneTimePasswordGenerator
The default length, in decimal digits, for one-time passwords.
DEFAULT_TIME_STEP - Static variable in class com.eatthepath.otp.TimeBasedOneTimePasswordGenerator
The default time-step for a time-based one-time password generator (30 seconds).

G

generateOneTimePassword(SecretKey, long) - Method in class com.eatthepath.otp.HmacOneTimePasswordGenerator
Generates a one-time password using the given key and counter value.
generateOneTimePassword(SecretKey, Instant) - Method in class com.eatthepath.otp.TimeBasedOneTimePasswordGenerator
Generates a one-time password using the given key and timestamp.
generateOneTimePasswordString(SecretKey, long) - Method in class com.eatthepath.otp.HmacOneTimePasswordGenerator
Generates a one-time password using the given key and counter value and formats it as a string using the system default locale.
generateOneTimePasswordString(SecretKey, long, Locale) - Method in class com.eatthepath.otp.HmacOneTimePasswordGenerator
Generates a one-time password using the given key and counter value and formats it as a string using the given locale.
generateOneTimePasswordString(SecretKey, Instant) - Method in class com.eatthepath.otp.TimeBasedOneTimePasswordGenerator
Generates a one-time password using the given key and timestamp and formats it as a string with the system default locale.
generateOneTimePasswordString(SecretKey, Instant, Locale) - Method in class com.eatthepath.otp.TimeBasedOneTimePasswordGenerator
Generates a one-time password using the given key and timestamp and formats it as a string with the given locale.
getAlgorithm() - Method in class com.eatthepath.otp.HmacOneTimePasswordGenerator
Returns the name of the HMAC algorithm used by this generator.
getAlgorithm() - Method in class com.eatthepath.otp.TimeBasedOneTimePasswordGenerator
Returns the name of the HMAC algorithm used by this generator.
getPasswordLength() - Method in class com.eatthepath.otp.HmacOneTimePasswordGenerator
Returns the length, in decimal digits, of passwords produced by this generator.
getPasswordLength() - Method in class com.eatthepath.otp.TimeBasedOneTimePasswordGenerator
Returns the length, in decimal digits, of passwords produced by this generator.
getTimeStep() - Method in class com.eatthepath.otp.TimeBasedOneTimePasswordGenerator
Returns the time step used by this generator.

H

HmacOneTimePasswordGenerator - Class in com.eatthepath.otp
Generates HMAC-based one-time passwords (HOTP) as specified in RFC 4226.
HmacOneTimePasswordGenerator() - Constructor for class com.eatthepath.otp.HmacOneTimePasswordGenerator
Creates a new HMAC-based one-time password (HOTP) generator using a default password length (6 digits).
HmacOneTimePasswordGenerator(int) - Constructor for class com.eatthepath.otp.HmacOneTimePasswordGenerator
Creates a new HMAC-based one-time password (HOTP) generator using the given password length.

L

License and copyright - Section in Overview
 

T

TimeBasedOneTimePasswordGenerator - Class in com.eatthepath.otp
Generates time-based one-time passwords (TOTP) as specified in RFC 6238.
TimeBasedOneTimePasswordGenerator() - Constructor for class com.eatthepath.otp.TimeBasedOneTimePasswordGenerator
Constructs a new time-based one-time password generator with a default time-step (30 seconds), password length (6 decimal digits), and HMAC algorithm ("HmacSHA1").
TimeBasedOneTimePasswordGenerator(Duration) - Constructor for class com.eatthepath.otp.TimeBasedOneTimePasswordGenerator
Constructs a new time-based one-time password generator with the given time-step and a default password length (6 decimal digits) and HMAC algorithm ("HmacSHA1").
TimeBasedOneTimePasswordGenerator(Duration, int) - Constructor for class com.eatthepath.otp.TimeBasedOneTimePasswordGenerator
Constructs a new time-based one-time password generator with the given time-step and password length and a default HMAC algorithm ("HmacSHA1").
TimeBasedOneTimePasswordGenerator(Duration, int, String) - Constructor for class com.eatthepath.otp.TimeBasedOneTimePasswordGenerator
Constructs a new time-based one-time password generator with the given time-step, password length, and HMAC algorithm.
TOTP_ALGORITHM_HMAC_SHA1 - Static variable in class com.eatthepath.otp.TimeBasedOneTimePasswordGenerator
A string identifier for the HMAC-SHA1 algorithm; HMAC-SHA1 is the default algorithm for TOTP.
TOTP_ALGORITHM_HMAC_SHA256 - Static variable in class com.eatthepath.otp.TimeBasedOneTimePasswordGenerator
A string identifier for the HMAC-SHA256 algorithm.
TOTP_ALGORITHM_HMAC_SHA512 - Static variable in class com.eatthepath.otp.TimeBasedOneTimePasswordGenerator
A string identifier for the HMAC-SHA512 algorithm.

U

Usage - Section in Overview
 

V

validateOneTimePassword(SecretKey, long, int) - Method in class com.eatthepath.otp.HmacOneTimePasswordGenerator
Checks whether a given one-time password matches the one-time password generated for the given key and counter value.
validateOneTimePassword(SecretKey, long, String) - Method in class com.eatthepath.otp.HmacOneTimePasswordGenerator
Checks whether a given one-time password matches the one-time password generated for the given key and counter value.
validateOneTimePassword(SecretKey, Instant, int) - Method in class com.eatthepath.otp.TimeBasedOneTimePasswordGenerator
Checks whether a given one-time password matches the one-time password generated for the given key and timestamp.
validateOneTimePassword(SecretKey, Instant, String) - Method in class com.eatthepath.otp.TimeBasedOneTimePasswordGenerator
Checks whether a given one-time password matches the one-time password generated for the given key and timestamp.
C D G H L T U V 
All Classes and Interfaces|All Packages|Constant Field Values