Show / Hide Table of Contents

SetDeviceInfoBaseCommand Class

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

Base class for SetDeviceInfoCommand for Management, OTP and FIDO applications.

C#
public class SetDeviceInfoBaseCommand
Inheritance object SetDeviceInfoBaseCommand
SetDeviceInfoCommand
SetDeviceInfoCommand
SetDeviceInfoCommand

Constructors

Name Description
SetDeviceInfoBaseCommand()

Initializes a new instance of the SetDeviceInfoBaseCommand class.

SetDeviceInfoBaseCommand(SetDeviceInfoBaseCommand)

Fields

Name Description
LockCodeLength

The length that a configuration lock code must be.

Properties

Name Description
AutoEjectTimeout

The CCID auto-eject timeout (in seconds). This field is only meaningful if the TouchEject flag in DeviceFlags is set. null to leave unchanged.

ChallengeResponseTimeout

The period of time (in seconds) after which the OTP challenge-response command should timeout. null to leave unchanged.

DeviceFlags

Device flags that can control device-global behavior. null to leave unchanged.

EnabledNfcCapabilities

The features of the YubiKey that should be enabled over NFC. null to leave unchanged.

EnabledUsbCapabilities

The features of the YubiKey that should be enabled over USB. null to leave unchanged.

ResetAfterConfig

Resets (reboots) the YubiKey after the successful application of all configuration updates. Useful if enabling or disabling capabilities.

RestrictNfc

Allows setting of the IsNfcRestricted property

TemporaryTouchThreshold

Temporarily set the threshold at which a capacitive touch should be considered active.

Methods

Name Description
ApplyLockCode(ReadOnlySpan<byte>)

Temporarily unlocks the YubiKey's configuration by applying the lock code.

GetDataForApdu()

Formats the data to be sent to the YubiKey.

SetLockCode(ReadOnlySpan<byte>)

Locks the YubiKey's configuration with a code. Any subsequent calls to the SetDeviceInfoBaseCommand class will need to unlock the YubiKey using the ApplyLockCode(ReadOnlySpan<byte>) method.

In this article
Back to top Generated by DocFX