fromUri
Create an OathCredential from a URI. 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 (scheme mismatch, missing required parameters).
if a URI parameter value fails validation (e.g. digits not 6 or 8, period ≤ 0).