Show / Hide Table of Contents

InitializeAuthenticateManagementKeyCommand Constructor

InitializeAuthenticateManagementKeyCommand()

C#
[Obsolete("This constructor is deprecated. Users must specify management key algorithm type, as it cannot be assumed.")]
public InitializeAuthenticateManagementKeyCommand()

InitializeAuthenticateManagementKeyCommand(PivAlgorithm)

Initializes a new instance of the InitializeAuthenticateManagementKeyCommand class for Mutual Authentication.

C#
public InitializeAuthenticateManagementKeyCommand(PivAlgorithm algorithm)

Parameters

Type Name Description
PivAlgorithm algorithm

Remarks

Using this constructor is equivalent to

new InitializeAuthenticateManagementKeyCommand(true, PivAlgorithm.algorithm);

InitializeAuthenticateManagementKeyCommand(bool)

Initializes a new instance of the InitializeAuthenticateManagementKeyCommand class for the specified mutual or single authentication, and a Triple-DES management key.

C#
[Obsolete("This constructor is deprecated. Users must specify management key algorithm type, as it cannot be assumed.")]
public InitializeAuthenticateManagementKeyCommand(bool mutualAuthentication)

Parameters

Type Name Description
bool mutualAuthentication

True for mutual authentication, false for single.

Remarks

This will build a Command object that can initiate the authentication process. If you want to initiate for mutual authentication, pass in true for the mutualAuthentication argument. To initiate single authentication, pass in false.

InitializeAuthenticateManagementKeyCommand(bool, PivAlgorithm)

Initializes a new instance of the InitializeAuthenticateManagementKeyCommand class for the specified mutual or single authentication, and a management key of the specified algorithm.

C#
public InitializeAuthenticateManagementKeyCommand(bool mutualAuthentication, PivAlgorithm algorithm)

Parameters

Type Name Description
bool mutualAuthentication

True for mutual authentication, false for single.

PivAlgorithm algorithm

The algorithm of the management key. It must be TripleDes, Aes128, Aes192, or Aes256,

Remarks

This will build a Command object that can initiate the authentication process. If you want to initiate for mutual authentication, pass in true for the mutualAuthentication argument. To initiate single authentication, pass in false.

Note that you must know the management key's algorithm before calling this constructor. If the YubiKey's version is before 5.4.2, the algorithm is TripleDes. For 5.4.2 and later YubiKeys, the algorithm can be ascertained by getting the metadata.

In this article
Back to top Generated by DocFX