DeleteKeyCommand Class
Namespace: Yubico.YubiKey.Piv.Commands Assembly: Yubico.YubiKey.dllThe DeleteKeyCommand is used to delete a PIV key from the target slot.
C#
public class DeleteKeyCommand : Object, IYubiKeyCommand<DeleteKeyResponse>
Inheritance
System.Object
DeleteKeyCommand
Implements
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. |