InitializeAuthenticateManagementKeyResponse Class
Namespace: Yubico.YubiKey.Piv.Commands Assembly: Yubico.YubiKey.dllThe response to the initialize authenticate management key command.
public sealed class InitializeAuthenticateManagementKeyResponse : PivResponse, IYubiKeyResponseWithData<(bool, ReadOnlyMemory<byte>)>, IYubiKeyResponse
Implements
Remarks
This is the partner Response class to InitializeAuthenticateManagementKeyCommand.
The data returned is a tuple consisting of a boolean and a
ReadOnlyMemory<byte>
. The boolean indicates if this is mutual
authentication or not, true
for mutual auth, false
for
single. The byte array is "Client Authentication Challenge".
See the comments for the class InitializeAuthenticateManagementKeyCommand, there is a lengthy discussion of the process of authenticating the management key, including descriptions of the challenges and responses.
It is likely that you will never need to call GetData
in this
class. You will pass an instance of this class to the constructor for
CompleteAuthenticateManagementKeyCommand, which will process the
challenge.
Constructors
Name | Description |
---|---|
InitializeAuthenticateManagementKeyResponse(ResponseApdu) | Constructs an InitializeAuthenticateManagementKeyResponse based on a ResponseApdu received from the YubiKey for the Triple-DES algorithm. |
InitializeAuthenticateManagementKeyResponse(ResponseApdu, PivAlgorithm) | Constructs an InitializeAuthenticateManagementKeyResponse based on a ResponseApdu received from the YubiKey for the specified algorithm. |
Properties
Name | Description |
---|---|
Algorithm | Which algorithm is the management key. |
Methods
Name | Description |
---|---|
GetData() | Return the boolean indicating mutual auth or not, along with the value portion of the Response Data, namely, Client Authentication Challenge. |