Show / Hide Table of Contents

ConfigureNdefCommand Constructor

ConfigureNdefCommand(Slot, ReadOnlySpan<byte>)

Constructs an instance of the ConfigureNdefCommand class.

C#
public ConfigureNdefCommand(Slot slot, ReadOnlySpan<byte> configuration)

Parameters

Type Name Description
Slot slot

The slot to which the configuration should apply. The ShortPress slot corresponds to the primary NDEF configuration.

ReadOnlySpan<byte> configuration

The configuration data for the slot. Use the NdefConfig class and methods to generate this data.

ConfigureNdefCommand(Slot, ReadOnlySpan<byte>, ReadOnlySpan<byte>)

Constructs an instance of the ConfigureNdefCommand class for a slot which is protected by an access code.

C#
public ConfigureNdefCommand(Slot slot, ReadOnlySpan<byte> configuration, ReadOnlySpan<byte> accessCode)

Parameters

Type Name Description
Slot slot

The slot to which the configuration should apply. The ShortPress slot corresponds to the primary NDEF configuration.

ReadOnlySpan<byte> configuration

The configuration data for the slot. Use the NdefConfig class and methods to generate this data.

ReadOnlySpan<byte> accessCode

The access code protecting the slot.

Remarks

YubiKey 5 NFC devices with firmware versions 5.0.0 to 5.2.6 and 5.3.0 to 5.3.1 are affected by YSA-2020-04. Devices with this firmware will not verify access codes on NDEF slots correctly. Please read the security advisory for more details.

In this article
Back to top Generated by DocFX