ResetCommand Class
Namespace: Yubico.YubiKey.Fido2.Commands Assembly: Yubico.YubiKey.dllInstruct the YubiKey to reset the FIDO2 application.
C#
public class ResetCommand : Object, IYubiKeyCommand<ResetResponse>
Inheritance
System.Object
ResetCommand
Implements
Remarks
This will delete all credentials and associated information from the FIDO2 application and remove the PIN.
Before attempting to reset a YubiKey Bio Multi-protocol Edition key with ResetCommand(), verify that the FIDO2 application is not blocked from using this method by checking the ResetBlocked property. If the application is blocked, use DeviceReset().
Constructors
Name | Description |
---|---|
ResetCommand() | Constructs an instance of the ResetCommand. |
Properties
Name | Description |
---|---|
Application | Gets the YubiKeyApplication (e.g. PIV, OATH, etc.) to which this command applies. |
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. |