Uses of Enum
com.bastiaanjansen.otp.HMACAlgorithm
Packages that use HMACAlgorithm
-
Uses of HMACAlgorithm in com.bastiaanjansen.otp
Fields in com.bastiaanjansen.otp declared as HMACAlgorithmModifier and TypeFieldDescriptionprotected final HMACAlgorithmOTPGenerator.algorithmHashing algorithm used to generate code, defaults to SHA1protected HMACAlgorithmOTPGenerator.Builder.algorithmHashing algorithm used to generate code, defaults to SHA1static final HMACAlgorithmOTPGenerator.Builder.DEFAULT_HMAC_ALGORITHMDefault value for HMAC AlgorithmMethods in com.bastiaanjansen.otp that return HMACAlgorithmModifier and TypeMethodDescriptionOTPGenerator.Builder.getAlgorithm()OTPGenerator.getAlgorithm()static HMACAlgorithmReturns 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 HMACAlgorithmModifier and TypeMethodDescriptionOTPGenerator.Builder.withAlgorithm(HMACAlgorithm algorithm) Change hashing algorithmConstructors in com.bastiaanjansen.otp with parameters of type HMACAlgorithmModifierConstructorDescriptionHOTPGenerator(int passwordLength, HMACAlgorithm algorithm, byte[] secret) Constructs generator with custom password lengthprotectedOTPGenerator(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