Class ReadNdefDataResponse
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
-
objectReadNdefDataResponse
- Implements
- Inherited Members
Constructors
ReadNdefDataResponse(ResponseApdu)
Constructs a ReadNdefDataResponse instance based on a ResponseApdu received from the YubiKey.
public ReadNdefDataResponse(ResponseApdu responseApdu)
Parameters
responseApdu
ResponseApduThe 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.