Table of Contents

Class ReadNdefDataResponse

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

Reads the current NDEF data from the YubiKey. Note that this command only works over NFC.

public class ReadNdefDataResponse : OtpResponse, IYubiKeyResponseWithData<ReadOnlyMemory<byte>>, IYubiKeyResponse
Inheritance
object
ReadNdefDataResponse
Implements
IYubiKeyResponseWithData<ReadOnlyMemory<byte>>
Inherited Members

Constructors

ReadNdefDataResponse(ResponseApdu)

Constructs a ReadNdefDataResponse instance based on a ResponseApdu received from the YubiKey.

public ReadNdefDataResponse(ResponseApdu responseApdu)

Parameters

responseApdu ResponseApdu

The ResponseApdu returned by the YubiKey.

Methods

GetData()

Gets the NDEF payload as a series of bytes.

public ReadOnlyMemory<byte> GetData()

Returns

ReadOnlyMemory<byte>

The NDEF payload.

Exceptions

InvalidOperationException

Thrown when Status is not Success.