final class TotpProvisioningUriFactory (View source)

Builds a standard otpauth URI and leaves QR rendering and delivery entirely to the consumer.

Methods

string
create(string $issuer, string $accountLabel, TotpSecret $secret, TotpConfiguration $configuration)

Encodes a host-owned issuer and account label together with the selected credential settings.

string

Details

create

string create(string $issuer, string $accountLabel, TotpSecret $secret, TotpConfiguration $configuration)

Encodes a host-owned issuer and account label together with the selected credential settings.

Parameters

string $issuer
string $accountLabel
TotpSecret $secret
TotpConfiguration $configuration

Return Value

string

Exceptions

InvalidArgumentException