CompleteAuthenticateManagementKeyCommand Constructor
CompleteAuthenticateManagementKeyCommand(InitializeAuthenticateManagementKeyResponse, ReadOnlySpan<Byte>)
Build a new instance of the
CompleteAuthenticateManagementKeyCommand
class for the
algorithm specified in initializeAuthenticationResponse
.
public CompleteAuthenticateManagementKeyCommand(InitializeAuthenticateManagementKeyResponse initializeAuthenticationResponse, ReadOnlySpan<byte> managementKey)
Parameters
Type | Name | Description |
---|---|---|
InitializeAuthenticateManagementKeyResponse | initializeAuthenticationResponse | The Response Object from Step 1. |
System.ReadOnlySpan<System.Byte> | managementKey | The bytes of the management key. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | The |
System.InvalidOperationException | The |
System.ArgumentException | The |
System.Security.Cryptography.CryptographicException | The Triple-DES or AES operation failed. |
Remarks
The input Response Object is the successful Response from step 1. The response has information on whether the process was initiated for single or mutual authentication, along with the management key's algorithm. The object created using this constructor will therefore be able to perform the appropriate operations and build the appropriate APDU based on how the process was initiated.
This class will use the random number generator and Triple-DES or AES classes from CryptographyProviders. If you want this class to use classes other than the defaults, change them. See also the user's manual entry on alternate crypto for information on how to do so.