Uses of Enum Class
io.github.pratiyush.totp.Algorithm
Packages that use Algorithm
Package
Description
Production-Ready TOTP Library - Null Safety Declaration.
Internal implementation classes for the TOTP library.
-
Uses of Algorithm in io.github.pratiyush.totp
Methods in io.github.pratiyush.totp that return AlgorithmModifier and TypeMethodDescriptionstatic AlgorithmParses an algorithm from its JCA name or enum name.TOTPConfig.getAlgorithm()Returns the HMAC algorithm.static AlgorithmReturns the enum constant of this class with the specified name.static Algorithm[]Algorithm.values()Returns an array containing the constants of this enum class, in the order they are declared.Methods in io.github.pratiyush.totp with parameters of type AlgorithmModifier and TypeMethodDescriptionSets the algorithm.Sets the HMAC algorithm.static StringGenerates a secret with appropriate length for the specified algorithm.static intSecretGenerator.recommendedLength(Algorithm algorithm) Returns the recommended secret length for a given algorithm. -
Uses of Algorithm in io.github.pratiyush.totp.internal
Methods in io.github.pratiyush.totp.internal with parameters of type AlgorithmModifier and TypeMethodDescriptionstatic byte[]Computes HMAC using the specified algorithm.static booleanHMACProvider.isAlgorithmAvailable(Algorithm algorithm) Checks if an algorithm is available in the current JVM.