Show / Hide Table of Contents

SlotConfigureBase Class

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

Base class for commands that configure, update, or delete an OTP slot.

C#
public abstract class SlotConfigureBase : IYubiKeyCommand<ReadStatusResponse>
Inheritance object SlotConfigureBase
ConfigureSlotCommand
DeleteSlotCommand
UpdateSlotCommand
Implements
IYubiKeyCommand<ReadStatusResponse>

Fields

Name Description
AccessCodeOffset
AesKeyOffset
ConfigurationFlagsOffset
ConfigurationStructSize
CrcOffset
CurrentAccessCodeOffset
ExtendedFlagsOffset
FixedDataOffset
FixedSizeOffset
ReservedOffset
TicketFlagsOffset
UidOffset

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.

In this article
Back to top Generated by DocFX