Class QrData
java.lang.Object
com.iizix.totp.QrData
The data of an enrolment QR code: the
otpauth://totp/ URI parameters. Immutable; a verifier built from its algorithm, digits and period always matches what the authenticator app was enrolled with.Nested Class Summary
Nested ClassesMethod Summary
Method Details
getType
- Returns:
- The type, always "totp".
getLabel
- Returns:
- The label, generally the account name.
getSecret
- Returns:
- The Base32 shared secret.
getIssuer
- Returns:
- The issuer, generally the application name.
getAlgorithm
- Returns:
- The friendly name of the hashing algorithm, see
HashingAlgorithm.getFriendlyName().
getDigits
public int getDigits()- Returns:
- The number of digits of a code.
getPeriod
public int getPeriod()- Returns:
- The time period in seconds.
getUri
- Returns:
- The URI/message to encode into the QR image, in the format specified here: https://github.com/google/google-authenticator/wiki/Key-Uri-Format A space in the label is
%20, never+: the label is the path of the URI, where a plus sign is a plus sign, and the authenticator apps show it as one (CC-FIX-SIGNIN-TOTP-ENROL, UX-D-16).