Show / Hide Table of Contents

VerifyPassword Method

VerifyPassword()

Verify the password, throw an exception if the user cancels or the verification failed.

C#
public void VerifyPassword()

Exceptions

Type Condition
InvalidOperationException

There is no KeyCollector loaded.

SecurityException

Unable to verify password either because KeyCollector was canceled by the user or the authentication is not enabled on the YubiKey or the incorrect password was provided.

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.

In this article
Back to top Generated by DocFX