Index

A C D G H O P Q S T U V 
All Classes|All Packages

A

algorithm - Variable in class com.bastiaanjansen.otp.OneTimePasswordGenerator
Hashing algorithm used to generate code, defaults to SHA1

C

com.bastiaanjansen.otp - package com.bastiaanjansen.otp
 
com.bastiaanjansen.otp.helpers - package com.bastiaanjansen.otp.helpers
 
createURI(String, String, String, Map<String, String>) - Static method in class com.bastiaanjansen.otp.helpers.URIHelper
Create a URI based on a scheme, host, path and query items

D

DEFAULT_BITS - Static variable in class com.bastiaanjansen.otp.SecretGenerator
Default amount of bits for secret generation
DEFAULT_HMAC_ALGORITHM - Static variable in class com.bastiaanjansen.otp.OneTimePasswordGenerator
Default value for HMAC Algorithm
DEFAULT_PASSWORD_LENGTH - Static variable in class com.bastiaanjansen.otp.OneTimePasswordGenerator
Default value for password length
DEFAULT_PERIOD - Static variable in class com.bastiaanjansen.otp.TOTPGenerator
Default time interval for a time-based one-time password

G

generate() - Static method in class com.bastiaanjansen.otp.SecretGenerator
Generate an OTP base32 secret with default amount of bits
generate() - Method in class com.bastiaanjansen.otp.TOTPGenerator
Generate a time-based one-time password for current time interval instant
generate(int) - Static method in class com.bastiaanjansen.otp.SecretGenerator
Generate an OTP base32 secret
generate(long) - Method in class com.bastiaanjansen.otp.HOTPGenerator
Generate a counter-based one-time password
generate(long) - Method in class com.bastiaanjansen.otp.TOTPGenerator
Generate a time-based one-time password for a specific time based on seconds past 1970
generate(BigInteger) - Method in class com.bastiaanjansen.otp.OneTimePasswordGenerator
Generate a code
generate(Instant) - Method in class com.bastiaanjansen.otp.TOTPGenerator
Generate a time-based one-time password for a Java instant
generate(Date) - Method in class com.bastiaanjansen.otp.TOTPGenerator
Generate a time-based one-time password for a specific date
getAlgorithm() - Method in class com.bastiaanjansen.otp.OneTimePasswordGenerator
 
getHMACName() - Method in enum com.bastiaanjansen.otp.HMACAlgorithm
 
getPasswordLength() - Method in class com.bastiaanjansen.otp.OneTimePasswordGenerator
 
getPeriod() - Method in class com.bastiaanjansen.otp.TOTPGenerator
 
getSecret() - Method in class com.bastiaanjansen.otp.OneTimePasswordGenerator
 
getURI(int, String) - Method in class com.bastiaanjansen.otp.HOTPGenerator
Create an OTPAuth URI for easy user on-boarding with only an issuer
getURI(int, String, String) - Method in class com.bastiaanjansen.otp.HOTPGenerator
Create an OTPAuth URI for easy user on-boarding with an issuer and account name
getURI(String) - Method in class com.bastiaanjansen.otp.TOTPGenerator
Create a OTPAuth URI for easy onboarding with only an issuer
getURI(String, String) - Method in class com.bastiaanjansen.otp.TOTPGenerator
Create a OTPAuth URI for easy user on-boarding with an issuer and account name
getURI(String, String, Map<String, String>) - Method in class com.bastiaanjansen.otp.OneTimePasswordGenerator
Generate an OTPAuth URI

H

HMACAlgorithm - Enum in com.bastiaanjansen.otp
HMAC algorithm enum
HOTPGenerator - Class in com.bastiaanjansen.otp
Generates counter-based one-time passwords
HOTPGenerator(int, String) - Constructor for class com.bastiaanjansen.otp.HOTPGenerator
Constructs generator with custom password length
HOTPGenerator(String) - Constructor for class com.bastiaanjansen.otp.HOTPGenerator
Constructs generator with default values
HOTPGenerator(URI) - Constructor for class com.bastiaanjansen.otp.HOTPGenerator
Constructs generator from a OTPAuth URI

O

OneTimePasswordGenerator - Class in com.bastiaanjansen.otp
Generates one-time passwords
OneTimePasswordGenerator(int, HMACAlgorithm, String) - Constructor for class com.bastiaanjansen.otp.OneTimePasswordGenerator
Constructs the generator with custom password length and hashing algorithm
OneTimePasswordGenerator(int, String) - Constructor for class com.bastiaanjansen.otp.OneTimePasswordGenerator
Constructs generator with a custom password length and default hashing algorithm
OneTimePasswordGenerator(HMACAlgorithm, String) - Constructor for class com.bastiaanjansen.otp.OneTimePasswordGenerator
Constructs generator with a custom hashing algorithm and default password length
OneTimePasswordGenerator(String) - Constructor for class com.bastiaanjansen.otp.OneTimePasswordGenerator
Constructs generator with default values
OneTimePasswordGenerator(URI) - Constructor for class com.bastiaanjansen.otp.OneTimePasswordGenerator
Constructs generator from a OTPAuth URI

P

passwordLength - Variable in class com.bastiaanjansen.otp.OneTimePasswordGenerator
Number of digits for generated code in range 6...8, defaults to 6

Q

queryItems(URI) - Static method in class com.bastiaanjansen.otp.helpers.URIHelper
Get a map of query items from URI

S

secret - Variable in class com.bastiaanjansen.otp.OneTimePasswordGenerator
Secret key used to generate the code, this should be a base32 string
SecretGenerator - Class in com.bastiaanjansen.otp
A secret generator to generate OTP secrets
SecretGenerator() - Constructor for class com.bastiaanjansen.otp.SecretGenerator
 
SHA1 - com.bastiaanjansen.otp.HMACAlgorithm
HMAC hashing algorithm options
SHA256 - com.bastiaanjansen.otp.HMACAlgorithm
 
SHA512 - com.bastiaanjansen.otp.HMACAlgorithm
 

T

TOTPGenerator - Class in com.bastiaanjansen.otp
Generates time-based one-time passwords
TOTPGenerator(int, HMACAlgorithm, String) - Constructor for class com.bastiaanjansen.otp.TOTPGenerator
Constructs generator with custom password length and hashing algorithm
TOTPGenerator(int, String) - Constructor for class com.bastiaanjansen.otp.TOTPGenerator
Constructs generator with custom password length
TOTPGenerator(int, Duration, HMACAlgorithm, String) - Constructor for class com.bastiaanjansen.otp.TOTPGenerator
Constructs generator with custom password length, time interval and hashing algorithm
TOTPGenerator(int, Duration, String) - Constructor for class com.bastiaanjansen.otp.TOTPGenerator
Constructs generator with custom password length and period
TOTPGenerator(HMACAlgorithm, String) - Constructor for class com.bastiaanjansen.otp.TOTPGenerator
Constructs generator with custom hashing algorithm and default time interval
TOTPGenerator(String) - Constructor for class com.bastiaanjansen.otp.TOTPGenerator
Constructs generator
TOTPGenerator(URI) - Constructor for class com.bastiaanjansen.otp.TOTPGenerator
Constructs generator from a OTPAuth URI
TOTPGenerator(Duration, HMACAlgorithm, String) - Constructor for class com.bastiaanjansen.otp.TOTPGenerator
Constructs generator with custom time interval and hashing algorithm
TOTPGenerator(Duration, String) - Constructor for class com.bastiaanjansen.otp.TOTPGenerator
Constructs generator with custom time interval

U

URIHelper - Class in com.bastiaanjansen.otp.helpers
A URI utility class with helper methods
URIHelper() - Constructor for class com.bastiaanjansen.otp.helpers.URIHelper
 

V

valueOf(String) - Static method in enum com.bastiaanjansen.otp.HMACAlgorithm
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.bastiaanjansen.otp.HMACAlgorithm
Returns an array containing the constants of this enum type, in the order they are declared.
verify(String) - Method in class com.bastiaanjansen.otp.TOTPGenerator
Checks whether a code is valid for a specific counter
verify(String, int) - Method in class com.bastiaanjansen.otp.TOTPGenerator
Checks whether a code is valid for a specific counter taking a delay window into account
verify(String, long) - Method in class com.bastiaanjansen.otp.OneTimePasswordGenerator
Checks whether a code is valid for a specific counter with a delay window of 0
verify(String, long, int) - Method in class com.bastiaanjansen.otp.OneTimePasswordGenerator
Checks whether a code is valid for a specific counter taking a delay window into account
A C D G H O P Q S T U V 
All Classes|All Packages