Table of Contents

Class GetCredentialMetadataResponse

Namespace
Yubico.YubiKey.Fido2.Commands
Assembly
Yubico.YubiKey.dll

The response partner to the GetCredentialMetadataCommand, containing information about the discoverable credentials on the YubiKey.

public class GetCredentialMetadataResponse : Fido2Response, IYubiKeyResponseWithData<(int discoverableCredentialCount, int remainingCredentialCount)>, IYubiKeyResponse
Inheritance
object
GetCredentialMetadataResponse
Implements
IYubiKeyResponseWithData<(int discoverableCredentialCount, int remainingCredentialCount)>
Inherited Members

Constructors

GetCredentialMetadataResponse(ResponseApdu)

Constructs a new instance of GetCredentialMetadataResponse based on a response APDU provided by the YubiKey.

public GetCredentialMetadataResponse(ResponseApdu responseApdu)

Parameters

responseApdu ResponseApdu

A response APDU containing the CBOR response data for the authenticatorCredentialManagement command.

Methods

GetData()

Gets the number of discoverable credentials and the remaining "empty slots" in the FIDO2 application of the YubiKey, which is the number of discoverable credentials fow which the YubiKey has space.

public (int discoverableCredentialCount, int remainingCredentialCount) GetData()

Returns

(int discoverableCredentialCount, int remainingCredentialCount)

The data in the response APDU, presented as a pair of ints.

Exceptions

InvalidOperationException

Thrown when Status is not Success.

Ctap2DataException

If the response from the YubiKey does not match the expected format.