Table of Contents

Class ConfigureSlotCommand

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

Applies a configuration to one of the two configurable OTP slots.

public class ConfigureSlotCommand : SlotConfigureBase, IYubiKeyCommand<ReadStatusResponse>
Inheritance
object
ConfigureSlotCommand
Implements
Inherited Members

Properties

LongPressCode

The code to use for indicating the long-press OTP slot.

protected override byte LongPressCode { get; }

Property Value

byte

ShortPressCode

The code to use for indicating the short-press OTP slot.

protected override byte ShortPressCode { get; }

Property Value

byte

Methods

SetAesKey(ReadOnlySpan<byte>)

The AES key with which the OTP is encrypted.

public void SetAesKey(ReadOnlySpan<byte> aesKey)

Parameters

aesKey ReadOnlySpan<byte>

Remarks

For static passwords, this is also used as part of the password.

SetFixedData(ReadOnlySpan<byte>)

A fixed data field used to set any static configuration content.

public void SetFixedData(ReadOnlySpan<byte> fixedData)

Parameters

fixedData ReadOnlySpan<byte>

Remarks

For static passwords, this is also used as part of the password.

Exceptions

ArgumentException

Thrown if the length of the contents of parameter fixedData is greater than Yubico.YubiKey.Otp.Commands.SlotConfigureBase.FixedDataLength.

SetUid(ReadOnlySpan<byte>)

The user (or private) ID used by the OTP generator.

public void SetUid(ReadOnlySpan<byte> uid)

Parameters

uid ReadOnlySpan<byte>

Remarks

For static passwords, this is also used as part of the password.