Show / Hide Table of Contents

AuthenticateManagementKey Method

AuthenticateManagementKey(bool)

Authenticate the management key, throw an exception if the user cancels.

C#
public void AuthenticateManagementKey(bool mutualAuthentication = true)

Parameters

Type Name Description
bool mutualAuthentication

Exceptions

Type Condition
InvalidOperationException

There is no KeyCollector loaded, the key provided was not a valid Triple-DES or AES key, or the YubiKey had some other error, such as unreliable connection.

MalformedYubiKeyResponseException

The YubiKey returned malformed data and authentication, either single or double, could not be performed.

OperationCanceledException

The user canceled management key collection.

SecurityException

Mutual authentication was performed and the YubiKey was not authenticated.

Remarks

This is the same as TryAuthenticateManagementKey, except this method will throw an exception if the KeyCollected indicates user cancellation.

See the TryAuthenticateManagementKey(bool) method for further documentation on this method.

In this article
Back to top Generated by DocFX