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 |
---|---|---|
System.ReadOnlyMemory<System.Byte> | responseData | The data portion of the response APDU, this is the encoded metadata. |
System.Byte | slotNumber | The slot from which the metadata was retrieved. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | The specified slot is not valid for PIV metadata. |
System.InvalidOperationException | The data supplied is not valid PIV metadata. |