VerifyPassword Method
VerifyPassword()
Verify the password, throw an exception if the user cancels or the verification failed.
C#
public void VerifyPassword()
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | There is no |
System.Security.SecurityException | Unable to verify password either because |
Remarks
This is the same as TryVerifyPassword
, except this method will throw an exception
if the KeyCollector
indicates user cancellation or the verification failed due to
the authentication is not enabled for the YubiKey or the incorrect password was provided.
See the TryVerifyPassword() method for further documentation on this method.