Show / Hide Table of Contents

CompleteAuthenticateManagementKeyCommand Constructor

CompleteAuthenticateManagementKeyCommand(InitializeAuthenticateManagementKeyResponse, ReadOnlySpan<byte>)

Build a new instance of the CompleteAuthenticateManagementKeyCommand class for the algorithm specified in initializeAuthenticationResponse.

C#
public CompleteAuthenticateManagementKeyCommand(InitializeAuthenticateManagementKeyResponse initializeAuthenticationResponse, ReadOnlySpan<byte> managementKey)

Parameters

Type Name Description
InitializeAuthenticateManagementKeyResponse initializeAuthenticationResponse

The Response Object from Step 1.

ReadOnlySpan<byte> managementKey

The bytes of the management key.

Exceptions

Type Condition
ArgumentNullException

The initializeAuthenticationResponse argument is null

InvalidOperationException

The initializeAuthenticationResponse argument does not represent a complete response.

ArgumentException

The managementKey argument is not a valid key, or the algorithm is not valid or does not match the data.

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.

In this article
Back to top Generated by DocFX