Show / Hide Table of Contents

DeleteCredentialCommand Class

Namespace: Yubico.YubiKey.YubiHsmAuth.Commands Assembly: Yubico.YubiKey.dll

Remove a credential from the YubiHSM Auth application.

C#
public class DeleteCredentialCommand : IYubiKeyCommand<DeleteCredentialResponse>
Inheritance object DeleteCredentialCommand
Implements
IYubiKeyCommand<DeleteCredentialResponse>

Remarks

The associated response class is DeleteCredentialResponse.

There is a limit of 8 attempts to authenticate with the management key before the management key is blocked. Once the management key is blocked, the application must be reset before performing operations which require authentication with the management key (such as adding credentials, deleting credentials, and changing the management key). To reset the application, see ResetApplicationCommand. Supplying the correct management key before the management key is blocked will reset the retry counter to 8.

Constructors

Name Description
DeleteCredentialCommand(ReadOnlyMemory<byte>)

Constructs an instance of the DeleteCredentialCommand class.

DeleteCredentialCommand(ReadOnlyMemory<byte>, string)

Constructs an instance of the DeleteCredentialCommand class.

Fields

Name Description
ValidManagementKeyLength

The management key must be exactly 16 bytes.

Properties

Name Description
Application

Gets the YubiKeyApplication (e.g. PIV, OATH, etc.) to which this command applies.

Label

A short name or description of the Credential.

Methods

Name Description
CreateCommandApdu()

Creates a well-formed CommandApdu to send to the YubiKey.

CreateResponseForApdu(ResponseApdu)

Creates the corresponding IYubiKeyResponse implementation for the current command.

In this article
Back to top Generated by DocFX