Show / Hide Table of Contents

GetBioMetadataResponse Class

Namespace: Yubico.YubiKey.Piv.Commands Assembly: Yubico.YubiKey.dll

The response to GetBioMetadataCommand containing YubiKey Bio Metadata about a particular key.

C#
public sealed class GetBioMetadataResponse : PivResponse, IYubiKeyResponseWithData<PivBioMetadata>, IYubiKeyResponse
Inheritance object YubiKeyResponse PivResponse GetBioMetadataResponse
Implements
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.

In this article
Back to top Generated by DocFX