Uses of Class
com.bastiaanjansen.otp.HMACAlgorithm
| Package | Description |
|---|---|
| com.bastiaanjansen.otp |
-
Uses of HMACAlgorithm in com.bastiaanjansen.otp
Fields in com.bastiaanjansen.otp declared as HMACAlgorithm Modifier and Type Field Description protected HMACAlgorithmOTPGenerator. algorithmHashing algorithm used to generate code, defaults to SHA1protected HMACAlgorithmOTPGenerator.Builder. algorithmHashing algorithm used to generate code, defaults to SHA1static HMACAlgorithmOTPGenerator.Builder. DEFAULT_HMAC_ALGORITHMDefault value for HMAC AlgorithmMethods in com.bastiaanjansen.otp that return HMACAlgorithm Modifier and Type Method Description HMACAlgorithmOTPGenerator.Builder. getAlgorithm()HMACAlgorithmOTPGenerator. getAlgorithm()static HMACAlgorithmHMACAlgorithm. valueOf(String name)Returns the enum constant of this type with the specified name.static HMACAlgorithm[]HMACAlgorithm. values()Returns an array containing the constants of this enum type, in the order they are declared.Methods in com.bastiaanjansen.otp with parameters of type HMACAlgorithm Modifier and Type Method Description BOTPGenerator.Builder. withAlgorithm(HMACAlgorithm algorithm)Change hashing algorithmConstructors in com.bastiaanjansen.otp with parameters of type HMACAlgorithm Constructor Description HOTPGenerator(int passwordLength, HMACAlgorithm algorithm, byte[] secret)Constructs generator with custom password lengthOTPGenerator(int passwordLength, HMACAlgorithm algorithm, byte[] secret)Constructs the generator with custom password length and hashing algorithmTOTPGenerator(int passwordLength, java.time.Duration period, HMACAlgorithm algorithm, byte[] secret)Constructs generator with custom password length, time interval and hashing algorithm