GetBioMetadataResponse Class
Namespace: Yubico.YubiKey.Piv.Commands Assembly: Yubico.YubiKey.dllThe response to GetBioMetadataCommand containing YubiKey Bio Metadata about a particular key.
C#
public sealed class GetBioMetadataResponse : PivResponse, IYubiKeyResponseWithData<PivBioMetadata>, IYubiKeyResponse
Remarks
The GetBioMetadataCommand is available on YubiKey Bio multi-protocol keys.
This is the partner Response class to GetBioMetadataCommand.
The data returned is a PivBioMetadata object.
Example:
IYubiKeyConnection connection = key.Connect(YubiKeyApplication.Piv);
GetBioMetadataCommand command = new GetBioMetadataCommand();
GetBioMetadataResponse response = connection.SendCommand(command);
if (response.Status == ResponseStatus.Success)
{
PivBioMetadata data = response.GetData();
}
Constructors
Name | Description |
---|---|
GetBioMetadataResponse(ResponseApdu) | Constructs a GetBioMetadataResponse based on a ResponseApdu received from the YubiKey. |
Methods
Name | Description |
---|---|
GetData() | Gets the bio metadata from the YubiKey response. |