Index
All Classes and Interfaces|All Packages|Constant Field Values
A
- ALGORITHM - Static variable in class dev.vink.jtotp.OtpUtils
-
Key for the algorithm parameter in the OTP URL.
B
- build() - Method in class dev.vink.jtotp.TOTPGenerator.Builder
-
Builds and returns a TOTPGenerator instance.
- Builder() - Constructor for class dev.vink.jtotp.TOTPGenerator.Builder
C
- calculateHMAC(byte[], byte[]) - Static method in class dev.vink.jtotp.HMACUtils
-
Calculates the HMAC of the given data using the default HMAC algorithm (HmacSHA1).
- calculateHMAC(byte[], byte[], String) - Static method in class dev.vink.jtotp.HMACUtils
-
Calculates the HMAC of the given data using the specified key and algorithm.
- createOtpUrl(String, String, Map<String, String>) - Static method in class dev.vink.jtotp.OtpUtils
-
Creates an OTP URL based on the specified type, label, and parameters.
D
- dev.vink.jtotp - package dev.vink.jtotp
- DIGITS - Static variable in class dev.vink.jtotp.OtpUtils
-
Key for the digits parameter in the OTP URL.
F
- fromOtpUrl(String) - Method in class dev.vink.jtotp.TOTPGenerator.Builder
-
Parses an OTP URL and configures the Builder instance.
G
- generate() - Static method in class dev.vink.jtotp.SecretKeyGenerator
-
Generates a random secret key with the default bit length (160 bits for HmacSHA1).
- generate(int) - Static method in class dev.vink.jtotp.SecretKeyGenerator
-
Generates a random secret key encoded in Base32 format.
- generateWithDrift(int) - Method in class dev.vink.jtotp.TOTPGenerator
-
Generates a TOTP with a custom drift in time steps.
- generateWithTime(long) - Method in class dev.vink.jtotp.TOTPGenerator
-
Generates a TOTP for a specific time.
H
- HMACUtils - Class in dev.vink.jtotp
-
Utility class for generating HMAC (Hash-based Message Authentication Code) and converting byte arrays to hexadecimal strings.
I
- ISSUER - Static variable in class dev.vink.jtotp.OtpUtils
-
Key for the issuer parameter in the OTP URL.
N
- next() - Method in class dev.vink.jtotp.TOTPGenerator
-
Generates the TOTP for the next time step.
- now() - Method in class dev.vink.jtotp.TOTPGenerator
-
Generates the current TOTP based on the current time.
O
- OtpUtils - Class in dev.vink.jtotp
-
Utility class for generating OTP (One-Time Password) URLs.
P
- PERIOD - Static variable in class dev.vink.jtotp.OtpUtils
-
Key for the period parameter in the OTP URL.
- previous() - Method in class dev.vink.jtotp.TOTPGenerator
-
Generates the TOTP for the previous time step.
S
- SECRET - Static variable in class dev.vink.jtotp.OtpUtils
-
Key for the shared secret parameter in the OTP URL.
- SecretKeyGenerator - Class in dev.vink.jtotp
-
Utility class for generating secret keys for OTP (One-Time Password) authentication.
- SHA1_ALGORITHM - Static variable in class dev.vink.jtotp.HMACUtils
-
Algorithm input for TOTP Builder for HMAC-SHA1.
- SHA1_BITS - Static variable in class dev.vink.jtotp.SecretKeyGenerator
-
Number of bits for generate function for SHA1 algorithm
- SHA256_ALGORITHM - Static variable in class dev.vink.jtotp.HMACUtils
-
Algorithm input for TOTP Builder for HMAC-SHA256.
- SHA256_BITS - Static variable in class dev.vink.jtotp.SecretKeyGenerator
-
Number of bits for generate function for SHA256 algorithm
- SHA512_ALGORITHM - Static variable in class dev.vink.jtotp.HMACUtils
-
Algorithm input for TOTP Builder for HMAC-SHA512.
- SHA512_BITS - Static variable in class dev.vink.jtotp.SecretKeyGenerator
-
Number of bits for generate function for SHA512 algorithm
T
- toHex(byte[]) - Static method in class dev.vink.jtotp.HMACUtils
-
Converts a byte array into a hexadecimal string.
- TOTPGenerator - Class in dev.vink.jtotp
-
Class for generating Time-based One-Time Passwords (TOTP) using HMAC values.
- TOTPGenerator.Builder - Class in dev.vink.jtotp
-
Builder class for constructing instances of TOTPGenerator.
W
- withAlgorithm(String) - Method in class dev.vink.jtotp.TOTPGenerator.Builder
-
Sets the HMAC algorithm for the TOTP generation.
- withDigits(int) - Method in class dev.vink.jtotp.TOTPGenerator.Builder
-
Sets the number of digits for the TOTP.
- withPeriod(int) - Method in class dev.vink.jtotp.TOTPGenerator.Builder
-
Sets the time period for the TOTP generation.
- withSecret(String) - Method in class dev.vink.jtotp.TOTPGenerator.Builder
-
Sets the shared secret for the TOTP generation.
All Classes and Interfaces|All Packages|Constant Field Values