Index
A B C D F G H O P Q S T U V W
All Classes|All Packages
All Classes|All Packages
All Classes|All Packages
A
- algorithm - Variable in class com.bastiaanjansen.otp.OTPGenerator
-
Hashing algorithm used to generate code, defaults to SHA1
- algorithm - Variable in class com.bastiaanjansen.otp.OTPGenerator.Builder
-
Hashing algorithm used to generate code, defaults to SHA1
- ALGORITHM - Static variable in class com.bastiaanjansen.otp.helpers.URIHelper
B
- build() - Method in class com.bastiaanjansen.otp.HOTPGenerator.Builder
-
Build the generator with specified options
- build() - Method in class com.bastiaanjansen.otp.OTPGenerator.Builder
- build() - Method in class com.bastiaanjansen.otp.TOTPGenerator.Builder
-
Build the generator with specified options
- Builder(byte[]) - Constructor for class com.bastiaanjansen.otp.HOTPGenerator.Builder
- Builder(byte[]) - Constructor for class com.bastiaanjansen.otp.OTPGenerator.Builder
- Builder(byte[]) - Constructor for class com.bastiaanjansen.otp.TOTPGenerator.Builder
-
Constructs a TOTPGenerator builder
C
- com.bastiaanjansen.otp - package com.bastiaanjansen.otp
- com.bastiaanjansen.otp.helpers - package com.bastiaanjansen.otp.helpers
- COUNTER - Static variable in class com.bastiaanjansen.otp.helpers.URIHelper
- 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.OTPGenerator.Builder
-
Default value for HMAC Algorithm
- DEFAULT_PASSWORD_LENGTH - Static variable in class com.bastiaanjansen.otp.OTPGenerator.Builder
-
Default value for password length
- DEFAULT_PERIOD - Static variable in class com.bastiaanjansen.otp.TOTPGenerator.Builder
-
Default time interval for a time-based one-time password
- DIGITS - Static variable in class com.bastiaanjansen.otp.helpers.URIHelper
F
- fromOTPAuthURI(URI) - Static method in class com.bastiaanjansen.otp.HOTPGenerator.Builder
-
Build a TOTPGenerator from an OTPAuth URI
- fromOTPAuthURI(URI) - Static method in class com.bastiaanjansen.otp.TOTPGenerator.Builder
-
Build a TOTPGenerator from an OTPAuth URI
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(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
- generateCode(long) - Method in class com.bastiaanjansen.otp.OTPGenerator
-
Generate a code
- getAlgorithm() - Method in class com.bastiaanjansen.otp.OTPGenerator.Builder
- getAlgorithm() - Method in class com.bastiaanjansen.otp.OTPGenerator
- getBuilder() - Method in class com.bastiaanjansen.otp.HOTPGenerator.Builder
- getBuilder() - Method in class com.bastiaanjansen.otp.OTPGenerator.Builder
- getBuilder() - Method in class com.bastiaanjansen.otp.TOTPGenerator.Builder
- getHMACName() - Method in enum com.bastiaanjansen.otp.HMACAlgorithm
- getPasswordLength() - Method in class com.bastiaanjansen.otp.OTPGenerator.Builder
- getPasswordLength() - Method in class com.bastiaanjansen.otp.OTPGenerator
- getPeriod() - Method in class com.bastiaanjansen.otp.TOTPGenerator.Builder
- getPeriod() - Method in class com.bastiaanjansen.otp.TOTPGenerator
- getSecret() - Method in class com.bastiaanjansen.otp.OTPGenerator.Builder
- getSecret() - Method in class com.bastiaanjansen.otp.OTPGenerator
- 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 on-boarding 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.OTPGenerator
-
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, HMACAlgorithm, byte[]) - Constructor for class com.bastiaanjansen.otp.HOTPGenerator
-
Constructs generator with custom password length
- HOTPGenerator.Builder - Class in com.bastiaanjansen.otp
O
- OTPGenerator - Class in com.bastiaanjansen.otp
-
Generates one-time passwords
- OTPGenerator(int, HMACAlgorithm, byte[]) - Constructor for class com.bastiaanjansen.otp.OTPGenerator
-
Constructs the generator with custom password length and hashing algorithm
- OTPGenerator.Builder<B,G> - Class in com.bastiaanjansen.otp
-
Abstract OTP builder
P
- passwordLength - Variable in class com.bastiaanjansen.otp.OTPGenerator.Builder
-
Number of digits for generated code in range 6...8, defaults to 6
- passwordLength - Variable in class com.bastiaanjansen.otp.OTPGenerator
-
Number of digits for generated code in range 6...8, defaults to 6
- PERIOD - Static variable in class com.bastiaanjansen.otp.helpers.URIHelper
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.OTPGenerator.Builder
-
Secret key used to generate the code, this should be a base32 string
- secret - Variable in class com.bastiaanjansen.otp.OTPGenerator
-
Secret key used to generate the code, this should be a base32 string
- SECRET - Static variable in class com.bastiaanjansen.otp.helpers.URIHelper
- 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, Duration, HMACAlgorithm, byte[]) - Constructor for class com.bastiaanjansen.otp.TOTPGenerator
-
Constructs generator with custom password length, time interval and hashing algorithm
- TOTPGenerator.Builder - Class in com.bastiaanjansen.otp
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.OTPGenerator
-
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.OTPGenerator
-
Checks whether a code is valid for a specific counter taking a delay window into account
W
- withAlgorithm(HMACAlgorithm) - Method in class com.bastiaanjansen.otp.OTPGenerator.Builder
-
Change hashing algorithm
- withDefaultValues(byte[]) - Static method in class com.bastiaanjansen.otp.HOTPGenerator.Builder
-
Create a HOTPGenerator with default values
- withDefaultValues(byte[]) - Static method in class com.bastiaanjansen.otp.TOTPGenerator.Builder
-
Create a TOTPGenerator with default values
- withPasswordLength(int) - Method in class com.bastiaanjansen.otp.OTPGenerator.Builder
-
Change password length of code
- withPeriod(Duration) - Method in class com.bastiaanjansen.otp.TOTPGenerator.Builder
-
Change period
All Classes|All Packages