SlotConfigureBase Class
Namespace: Yubico.YubiKey.Otp.Commands Assembly: Yubico.YubiKey.dllBase class for commands that configure, update, or delete an OTP slot.
public abstract class SlotConfigureBase : Object, IYubiKeyCommand<ReadStatusResponse>
Implements
Constructors
Name | Description |
---|---|
SlotConfigureBase() |
Fields
Properties
Name | Description |
---|---|
Application | Gets the YubiKeyApplication (e.g. PIV, OATH, etc.) to which this command applies. |
CalculateCrc | Allows the command to indicate whether to calculate the CRC for the buffer. |
ConfigurationBuffer | Gets reference to the raw buffer that contains the configuration. |
ConfigurationFlags | Flags that define the mode and other configurable options for this slot. |
ExtendedFlags | Extended flags that control behaviors on either a slot or global basis. |
LongPressCode | The code to use for indicating the long-press OTP slot. |
OtpSlot | Determines which of the two configurable slots this configuration is for. |
ShortPressCode | The code to use for indicating the short-press OTP slot. |
TicketFlags | Flags that control the output format of the text returned by the YubiKey button press. |
YubiKeyFlags | YubiKey flags that control YubiKey behavior. |
Methods
Name | Description |
---|---|
ApplyCurrentAccessCode(ReadOnlySpan<Byte>) | Adds the access code currently protecting the configuration to the command. This is needed to apply a new configuration to a write-protected slot. |
Clear() | Clears the configuration buffer to remove lingering sensitive data. |
CreateCommandApdu() | Creates a well-formed CommandApdu to send to the YubiKey. |
CreateResponseForApdu(ResponseApdu) | Creates the corresponding IYubiKeyResponse implementation for the current command. |
SetAccessCode(ReadOnlySpan<Byte>) | An access code that can be used to protect the slot configuration. |