Package com.irurueta.authserver.authorization.domain.totp
package com.irurueta.authserver.authorization.domain.totp
Time-based one-time passwords (RFC 6238) and single-use recovery codes: the credential, the algorithm and the ports
that store and protect the secrets.
-
ClassDescriptionBase32 encoding (RFC 4648) without padding, the form authenticator applications expect for a shared secret.Thrown when the code presented to confirm the enrolment of an authenticator app is wrong.A single-use code that replaces the second factor when the authenticator is lost.Port that stores the recovery codes of each user.Port that creates the shared secrets of TOTP credentials.Creates 160-bit secrets, the length RFC 4226 recommends for HMAC-SHA1, from a
SecureRandom.The time-based one-time password algorithm of RFC 6238 over HMAC-SHA1, with the parameters every authenticator application supports: 30 second steps and 6 digits.Thrown when a user who already confirmed an authenticator app tries to enrol another one.The TOTP credential of one user.Port that stores the TOTP credential of each user.Thrown when a user has no authenticator app being enrolled, so there is nothing to confirm.Port that protects TOTP secrets at rest.Builds theotpauth://URI that authenticator applications read from a QR code to enrol a secret.