MoveKeyCommand Class
Namespace: Yubico.YubiKey.Piv.Commands Assembly: Yubico.YubiKey.dllThe 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.
public class MoveKeyCommand : Object, IYubiKeyCommand<MoveKeyResponse>
Implements
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. |