SetPinCommand Class
Namespace: Yubico.YubiKey.U2f.Commands Assembly: Yubico.YubiKey.dllSets the PIN or changes the PIN to a new value.
C#
public sealed class SetPinCommand : Object, IYubiKeyCommand<SetPinResponse>
Inheritance
System.Object
SetPinCommand
Implements
Remarks
This command is only available on the YubiKey FIPS series.
Constructors
Name | Description |
---|---|
SetPinCommand(ReadOnlyMemory<Byte>, ReadOnlyMemory<Byte>) | Constructs an instance of the SetPinCommand class. |
Properties
Name | Description |
---|---|
Application | Gets the YubiKeyApplication to which this command belongs. |
CurrentPin | The PIN needed to perform U2F operations on a FIPS YubiKey. If this is empty, then the caller expects that there is no PIN yet set. |
NewPin | The PIN that will replace the current PIN. |
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. |