Index

C D G H T U 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form

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(Key, long) - Method in class com.eatthepath.otp.HmacOneTimePasswordGenerator
Generates a one-time password using the given key and counter value.
generateOneTimePassword(Key, Instant) - Method in class com.eatthepath.otp.TimeBasedOneTimePasswordGenerator
Generates a one-time password using the given key and timestamp.
generateOneTimePasswordString(Key, 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(Key, 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(Key, 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(Key, 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.
getCause() - Method in exception class com.eatthepath.otp.UncheckedNoSuchAlgorithmException
Returns the underlying NoSuchAlgorithmException that caused this exception.
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.

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

UncheckedNoSuchAlgorithmException - Exception Class in com.eatthepath.otp
Wraps a NoSuchAlgorithmException with an unchecked exception.
C D G H T U 
All Classes and Interfaces|All Packages|Constant Field Values|Serialized Form