InitializeAuthenticateManagementKeyCommand Constructor
InitializeAuthenticateManagementKeyCommand()
Initializes a new instance of the InitializeAuthenticateManagementKeyCommand class for Mutual Authentication, and a Triple-DES management key.
public InitializeAuthenticateManagementKeyCommand()
Remarks
Using this constructor is equivalent to
new InitializeAuthenticateManagementKeyCommand(true);
InitializeAuthenticateManagementKeyCommand(Boolean)
Initializes a new instance of the InitializeAuthenticateManagementKeyCommand class for the specified mutual or single authentication, and a Triple-DES management key.
public InitializeAuthenticateManagementKeyCommand(bool mutualAuthentication)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | mutualAuthentication |
|
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(Boolean, PivAlgorithm)
Initializes a new instance of the InitializeAuthenticateManagementKeyCommand class for the specified mutual or single authentication, and a management key of the specified algorithm.
public InitializeAuthenticateManagementKeyCommand(bool mutualAuthentication, PivAlgorithm algorithm)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | mutualAuthentication |
|
PivAlgorithm | algorithm | The algorithm of the management key. It must be |
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.