A B C D F G H I N P Q S T U V W
All Classes All Packages
All Classes All Packages
All Classes All Packages
A
- ALGORITHM - Static variable in class com.bastiaanjansen.otp.helpers.URIHelper
- at(long) - Method in class com.bastiaanjansen.otp.TOTP
-
Generate a time-based one-time password for a specific time based on seconds past 1970
- at(long) - Method in interface com.bastiaanjansen.otp.TOTPGenerator
- at(Instant) - Method in class com.bastiaanjansen.otp.TOTP
-
Generate a time-based one-time password for a Java instant
- at(Instant) - Method in interface com.bastiaanjansen.otp.TOTPGenerator
- at(Date) - Method in class com.bastiaanjansen.otp.TOTP
-
Generate a time-based one-time password for a specific date
- at(Date) - Method in interface com.bastiaanjansen.otp.TOTPGenerator
B
- build() - Method in class com.bastiaanjansen.otp.HOTP.Builder
-
Build the generator with specified options
- build() - Method in class com.bastiaanjansen.otp.TOTP.Builder
-
Build the generator with specified options
- Builder(byte[]) - Constructor for class com.bastiaanjansen.otp.HOTP.Builder
- Builder(byte[]) - Constructor for class com.bastiaanjansen.otp.TOTP.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
- DIGITS - Static variable in class com.bastiaanjansen.otp.helpers.URIHelper
F
- fromURI(URI) - Static method in class com.bastiaanjansen.otp.HOTP
-
Build a TOTPGenerator from an OTPAuth URI
- fromURI(URI) - Static method in class com.bastiaanjansen.otp.TOTP
-
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(int) - Static method in class com.bastiaanjansen.otp.SecretGenerator
-
Generate an OTP base32 secret
- generate(long) - Method in class com.bastiaanjansen.otp.HOTP
-
Generate a counter-based one-time password
- generate(long) - Method in interface com.bastiaanjansen.otp.HOTPGenerator
- getBuilder() - Method in class com.bastiaanjansen.otp.HOTP.Builder
- getBuilder() - Method in class com.bastiaanjansen.otp.TOTP.Builder
- getHMACName() - Method in enum com.bastiaanjansen.otp.HMACAlgorithm
- getPeriod() - Method in class com.bastiaanjansen.otp.TOTP
- getURI(int, String) - Method in class com.bastiaanjansen.otp.HOTP
-
Create an OTPAuth URI for easy user on-boarding with only an issuer
- getURI(int, String, String) - Method in class com.bastiaanjansen.otp.HOTP
-
Create an OTPAuth URI for easy user on-boarding with an issuer and account name
- getURI(String) - Method in class com.bastiaanjansen.otp.TOTP
-
Create a OTPAuth URI for easy on-boarding with only an issuer
- getURI(String) - Method in interface com.bastiaanjansen.otp.TOTPGenerator
- getURI(String, String) - Method in class com.bastiaanjansen.otp.TOTP
-
Create a OTPAuth URI for easy user on-boarding with an issuer and account name
- getURI(String, String) - Method in interface com.bastiaanjansen.otp.TOTPGenerator
H
- HMACAlgorithm - Enum in com.bastiaanjansen.otp
-
HMAC algorithm enum
- HOTP - Class in com.bastiaanjansen.otp
-
Generates counter-based one-time passwords
- HOTP.Builder - Class in com.bastiaanjansen.otp
- HOTPGenerator - Interface in com.bastiaanjansen.otp
- HOTPVerifier - Interface in com.bastiaanjansen.otp
I
N
- now() - Method in class com.bastiaanjansen.otp.TOTP
-
Generate a time-based one-time password for current time interval instant
- now() - Method in interface com.bastiaanjansen.otp.TOTPGenerator
P
Q
- queryItems(URI) - Static method in class com.bastiaanjansen.otp.helpers.URIHelper
-
Get a map of query items from URI
S
- SECRET - Static variable in class com.bastiaanjansen.otp.helpers.URIHelper
- SecretGenerator - Class in com.bastiaanjansen.otp
-
A secret generator to generate OTP secrets
- SHA1 - com.bastiaanjansen.otp.HMACAlgorithm
-
HMAC hashing algorithm options
- SHA256 - com.bastiaanjansen.otp.HMACAlgorithm
- SHA512 - com.bastiaanjansen.otp.HMACAlgorithm
T
- TOTP - Class in com.bastiaanjansen.otp
-
Generates time-based one-time passwords
- TOTP.Builder - Class in com.bastiaanjansen.otp
- TOTPGenerator - Interface in com.bastiaanjansen.otp
- TOTPVerifier - Interface in com.bastiaanjansen.otp
U
- URIHelper - Class in com.bastiaanjansen.otp.helpers
-
A URI utility class with helper methods
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.TOTP
-
Checks whether a code is valid for a specific counter
- verify(String) - Method in interface com.bastiaanjansen.otp.TOTPVerifier
- verify(String, int) - Method in class com.bastiaanjansen.otp.TOTP
-
Checks whether a code is valid for a specific counter taking a delay window into account
- verify(String, int) - Method in interface com.bastiaanjansen.otp.TOTPVerifier
- verify(String, long) - Method in interface com.bastiaanjansen.otp.HOTPVerifier
- verify(String, long, int) - Method in interface com.bastiaanjansen.otp.HOTPVerifier
W
- withDefaultValues(byte[]) - Static method in class com.bastiaanjansen.otp.HOTP
-
Create a com.bastiaanjansen.otp.HOTPGenerator with default values
- withDefaultValues(byte[]) - Static method in class com.bastiaanjansen.otp.TOTP
-
Create a TOTPGenerator with default values
- withPeriod(Duration) - Method in class com.bastiaanjansen.otp.TOTP.Builder
-
Change period
All Classes All Packages