PivMetadata Constructor
PivMetadata(ReadOnlyMemory<byte>, byte)
The constructor that takes in the metadata encoding returned by the YubiKey in response to the Get metadata command, along with the slot.
C#
public PivMetadata(ReadOnlyMemory<byte> responseData, byte slotNumber)
Parameters
Type | Name | Description |
---|---|---|
ReadOnlyMemory<byte> | responseData | The data portion of the response APDU, this is the encoded metadata. |
byte | slotNumber | The slot from which the metadata was retrieved. |
Exceptions
Type | Condition |
---|---|
ArgumentException | The specified slot is not valid for PIV metadata. |
InvalidOperationException | The data supplied is not valid PIV metadata. |