GetData Method
GetData(Int32, Nullable<ReadOnlyMemory<Byte>>)
Gets data from the YubiKey associated with the given tag.
C#
public ReadOnlyMemory<byte> GetData(int tag, Nullable<ReadOnlyMemory<byte>> data = null)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | tag | The tag of the data to retrieve. |
System.Nullable<System.ReadOnlyMemory<System.Byte>> | data | Optional data to send with the command. |
Returns
System.ReadOnlyMemory<System.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.