Show / Hide Table of Contents

DeleteCredentialCommand Constructor

DeleteCredentialCommand(ReadOnlyMemory<byte>)

Constructs an instance of the DeleteCredentialCommand class.

C#
public DeleteCredentialCommand(ReadOnlyMemory<byte> managementKey)

Parameters

Type Name Description
ReadOnlyMemory<byte> managementKey

The secret used to authenticate to the application prior to adding or removing credentials. See ValidManagementKeyLength for its required length. The application has a default management key of all zeros.

Exceptions

Type Condition
ArgumentException

managementKey does not meet the length requirements.

Remarks

The Label will need to be set before calling CreateCommandApdu().

DeleteCredentialCommand(ReadOnlyMemory<byte>, string)

Constructs an instance of the DeleteCredentialCommand class.

C#
public DeleteCredentialCommand(ReadOnlyMemory<byte> managementKey, string label)

Parameters

Type Name Description
ReadOnlyMemory<byte> managementKey

The secret used to authenticate to the application prior to adding or removing credentials. See ValidManagementKeyLength for its required length. The application has a default management key of all zeros.

string label

The label of the credential to be deleted. The string must meet the same requirements as Label.

Exceptions

Type Condition
ArgumentException

managementKey does not meet the length requirements.

In this article
Back to top Generated by DocFX