Show / Hide Table of Contents

GetData Method

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.

C#
public (int discoverableCredentialCount, int remainingCredentialCount) GetData()

Returns

(int discoverableCredentialCount, int remainingCredentialCount)

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

Implements

IYubiKeyResponseWithData<TData>.GetData()

Exceptions

Type Condition
InvalidOperationException

Thrown when Status is not Success.

Ctap2DataException

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

In this article
Back to top Generated by DocFX