Package com.iizix.totp
package com.iizix.totp
- ClassDescriptionThrown when a code cannot be generated, e.g.Generates the n-digit code for a shared secret and a counter (RFC 4226 HOTP; RFC 6238 TOTP uses the time bucket as the counter).The RFC 4226 / RFC 6238 code generator: HMAC of the big-endian 8-byte counter with the Base32-decoded secret, dynamic truncation, modulo 10^digits, zero-padded.Verifies a code against a shared secret for the current time period and the allowed discrepancy either side of it (RFC 6238 section 5.2).Generates a random Base32 encoded shared secret from the IIZI secure random source.The HMAC hashing algorithms of RFC 6238.The data of an enrolment QR code: the
otpauth://totp/URI parameters.The builder class.Generates the recovery codes of a user with a second factor: the codes that sign the user in when the authenticator app is lost.The time provider reading the system clock, in epoch seconds.The time source of a code verifier.Thrown by aTimeProviderthat cannot provide the time.