parse
Parse an OATH URI string into an OathCredential. Format: otpauth://totp/Issuer:AccountName?secret=SECRET&issuer=Issuer&algorithm=SHA1&digits=6&period=30 Format: otpauth://hotp/Issuer:AccountName?secret=SECRET&issuer=Issuer&algorithm=SHA1&digits=6&counter=0
Return
An OathCredential.
Parameters
uri
The URI string.
Throws
if the URI is structurally invalid (bad scheme, unknown OATH type, missing required parameters, or any unexpected parse failure).
if a parameter value fails validation (e.g. digits not 6 or 8, period ≤ 0, counter < 0).