Uses of Enum Class
io.mangoo.enums.HmacShaAlgorithm
Packages that use HmacShaAlgorithm
-
Uses of HmacShaAlgorithm in io.mangoo.crypto.totp
Methods in io.mangoo.crypto.totp that return HmacShaAlgorithmModifier and TypeMethodDescriptionTOTP.hmacShaAlgorithm()Returns theHmacShaAlgorithmused to generate thisTOTP.Methods in io.mangoo.crypto.totp with parameters of type HmacShaAlgorithmModifier and TypeMethodDescriptionTOTPBuilder.hmacSha(HmacShaAlgorithm algorithm) Returns thisTOTPBuilderinstance initialized with the specified HMAC-SHAalgorithm.booleanTOTPValidator.isValid(byte[] key, long timeStep, int digits, HmacShaAlgorithm hmacShaAlgorithm, String value) Returnstrueif the specified TOTPvaluematches the value of the TOTP generated at validation, otherwisefalse.booleanTOTPValidator.isValid(byte[] key, long timeStep, int digits, HmacShaAlgorithm hmacShaAlgorithm, String value, long validationTime) Returnstrueif the specified TOTPvaluematches the value of the TOTP generated at validation, otherwisefalse. -
Uses of HmacShaAlgorithm in io.mangoo.enums
Methods in io.mangoo.enums that return HmacShaAlgorithmModifier and TypeMethodDescriptionstatic HmacShaAlgorithmstatic HmacShaAlgorithmReturns the enum constant of this class with the specified name.static HmacShaAlgorithm[]HmacShaAlgorithm.values()Returns an array containing the constants of this enum class, in the order they are declared. -
Uses of HmacShaAlgorithm in io.mangoo.utils
Methods in io.mangoo.utils with parameters of type HmacShaAlgorithmModifier and TypeMethodDescriptionstatic StringTotpUtils.getOtpauthURL(String name, String issuer, String secret, HmacShaAlgorithm algorithm, String digits, String period) Generates an otpauth code to share a secret with a userstatic StringTotpUtils.getQRCode(String name, String issuer, String secret, HmacShaAlgorithm algorithm, String digits, String period) Generates a QR code link from Google charts API to share a secret with a userstatic StringTotpUtils.getTotp(String secret, HmacShaAlgorithm algorithm, int digits, int period) Creates the current TOTP based on the given parameters