Class GetCredentialMetadataResponse
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
-
objectGetCredentialMetadataResponse
- Implements
- 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
ResponseApduA 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
- Ctap2DataException
If the response from the YubiKey does not match the expected format.