Show / Hide Table of Contents

MoveKeyCommand Class

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

The MoveKeyCommand is used to move a PIV key from one slot to another. The source slot must not be the Attestation slot, and the destination slot must be empty.

C#
public class MoveKeyCommand : IYubiKeyCommand<MoveKeyResponse>
Inheritance object MoveKeyCommand
Implements
IYubiKeyCommand<MoveKeyResponse>

Constructors

Name Description
MoveKeyCommand()

Constructor for the MoveKeyCommand, which is used to move a PIV key from one slot to another. The source slot must not be the Attestation slot, and the destination slot must be empty.

MoveKeyCommand(byte, byte)

Constructor for the MoveKeyCommand, which is used to move a PIV key from one slot to another. The source slot must not be the Attestation slot, and the destination slot must be empty.

Properties

Name Description
Application

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

DestinationSlot

The target YubiKey slot for the key you want to move. This must be a valid slot number.

SourceSlot

The YubiKey slot of the key you want to move. This must be a valid slot number.

Methods

Name Description
CreateCommandApdu()

Creates and validates the CommandApdu.

CreateResponseForApdu(ResponseApdu)

Creates the MoveKeyResponse from the ResponseApdu data.

In this article
Back to top Generated by DocFX