Show / Hide Table of Contents

DeleteKeyCommand Class

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

The DeleteKeyCommand is used to delete a PIV key from the target slot. Any key, including the attestation key, can be deleted.

C#
public class DeleteKeyCommand : IYubiKeyCommand<DeleteKeyResponse>
Inheritance object DeleteKeyCommand
Implements
IYubiKeyCommand<DeleteKeyResponse>

Constructors

Name Description
DeleteKeyCommand()

Constructor for the DeleteKeyCommand, which is used to delete a PIV key from a slot.

DeleteKeyCommand(byte)

Constructor for the DeleteKeyCommand, which is used to delete a PIV key from a slot.

Properties

Name Description
Application

Gets the YubiKeyApplication to which this command belongs. For this command, it's PIV.

SlotToClear

The Yubikey slot of the key you want to delete.

Methods

Name Description
CreateCommandApdu()

Constructs a CommandApdu for the delete operation.

CreateResponseForApdu(ResponseApdu)

Creates the DeleteKeyResponse from the ResponseApdu data.

In this article
Back to top Generated by DocFX