OathClient
Implementation of OathClient that provides OATH functionality. This client handles TOTP and HOTP credential management and code generation.
Parameters
configuration
The OATH configuration.
storage
The OathStorage implementation to use. If null, a default SQLOathStorage will be created.
Functions
Link copied to clipboard
Creates an OATH Credential from a standard otpauth:// URI (typically from a QR code).
Link copied to clipboard
Delete an OATH credential by ID.
Link copied to clipboard
Generate an OTP code for an OATH credential.
Link copied to clipboard
Generate an OTP code for an OATH credential and get its time validity information.
Link copied to clipboard
Get an OATH credential by ID.
Link copied to clipboard
Get all OATH credentials.
Link copied to clipboard
Initialize the OATH client.
Link copied to clipboard
Save an OATH credential.