CompleteAuthenticateManagementKeyResponse Constructor
CompleteAuthenticateManagementKeyResponse(ResponseApdu, ReadOnlyMemory<Byte>)
Constructs a CompleteAuthenticateManagementKeyResponse based on a ResponseApdu received from the YubiKey.
C#
public CompleteAuthenticateManagementKeyResponse(ResponseApdu responseApdu, ReadOnlyMemory<byte> yubiKeyAuthenticationExpectedResponse)
Parameters
Type | Name | Description |
---|---|---|
ResponseApdu | responseApdu | The object containing the Response APDU returned by the YubiKey. |
System.ReadOnlyMemory<System.Byte> | yubiKeyAuthenticationExpectedResponse | The bytes the off-card app expects the YubiKey Authentication Response to be. |
Remarks
The caller must also pass in the YubiKey Authentication Expected Response. These arguments must all be non-null. However, in the case of single authentication, there will be no YubiKey Authentication Expected Response, so that argument will be "empty", with a Length of zero.
If there is data in the yubiKeyAuthenticationExpectedResponse
, it must be 8 bytes,
no more, no less.
If this is mutual authentication, the response APDU will contain the response to YubiKey Authentication Challenge.