Uses of Class
io.mangoo.enums.HmacShaAlgorithm
-
Packages that use HmacShaAlgorithm Package Description io.mangoo.crypto.totp io.mangoo.enums io.mangoo.utils -
-
Uses of HmacShaAlgorithm in io.mangoo.crypto.totp
Methods in io.mangoo.crypto.totp that return HmacShaAlgorithm Modifier and Type Method Description HmacShaAlgorithmTOTP. hmacShaAlgorithm()Returns theHmacShaAlgorithmused to generate thisTOTP.Methods in io.mangoo.crypto.totp with parameters of type HmacShaAlgorithm Modifier and Type Method Description TOTPBuilderTOTPBuilder. 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 HmacShaAlgorithm Modifier and Type Method Description static HmacShaAlgorithmHmacShaAlgorithm. from(String algorithm)static HmacShaAlgorithmHmacShaAlgorithm. valueOf(String name)Returns the enum constant of this type with the specified name.static HmacShaAlgorithm[]HmacShaAlgorithm. values()Returns an array containing the constants of this enum type, in the order they are declared. -
Uses of HmacShaAlgorithm in io.mangoo.utils
Methods in io.mangoo.utils with parameters of type HmacShaAlgorithm Modifier and Type Method Description static StringTotpUtils. getOtpauthURL(String name, String issuer, String secret, HmacShaAlgorithm algorithm, String digits, String period)Generates a 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
-