ConfigureNdefCommand Constructor
ConfigureNdefCommand(Slot, ReadOnlySpan<Byte>)
Constructs an instance of the ConfigureNdefCommand class.
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. |
System.ReadOnlySpan<System.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.
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. |
System.ReadOnlySpan<System.Byte> | configuration | The configuration data for the slot. Use the NdefConfig class and methods to generate this data. |
System.ReadOnlySpan<System.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.