Totp
A builder for a TOTP OTP Auth URI.
An instance should be created via forTotp or TimeBasedOneTimePasswordGenerator.otpAuthUriBuilder.
Constructors
Functions
Sets the algorithm query parameter, which is the uppercase name of the HMAC algorithms defined in HmacAlgorithm.
Builds the final OTP Auth URI as a ByteArray.
Builds the final OTP Auth URI as a String.
Builds the final OTP Auth URI as a URI.
Sets the digits query parameter, which is the length of the generated code.
Sets the issuer query parameter, which indicates the provider or service the account (for which the OTP code gets used) belongs to.
Sets the label path part of the URI, which consist of an account name and an optional issuer. Both values will be separated by a colon (:), which can be URL encoded by setting the parameter encodeSeparator.
Sets the period query parameter, which defines the validity of a TOTP code in seconds.