GetData Method
GetData(int, ReadOnlyMemory<byte>?)
Gets data from the YubiKey associated with the given tag.
C#
public ReadOnlyMemory<byte> GetData(int tag, ReadOnlyMemory<byte>? data = null)
Parameters
Type | Name | Description |
---|---|---|
int | tag | The tag of the data to retrieve. |
ReadOnlyMemory<byte>? | data | Optional data to send with the command. |
Returns
ReadOnlyMemory<byte>
The encoded tlv data retrieved from the YubiKey.
Exceptions
Type | Condition |
---|---|
SecureChannelException | Thrown when there was an SCP error, described in the exception message. |
Remarks
Sessions created from this constructor will not be able to perform operations which require authentication
See GlobalPlatform Technology Card Specification v2.3.1 ยง11 APDU Command Reference for more information.