Show / Hide Table of Contents

GetData Method

GetData()

Gets the total number of relying parties and the first (index 0) relying party represented in the YubiKey.

C#
public (int totalRelyingPartyCount, RelyingParty relyingParty) GetData()

Returns

(int totalRelyingPartyCount, RelyingParty relyingParty)

The data in the response APDU, presented as a Tuple of (int,RelyingParty).

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.

Remarks

Note that if there are no credentials associated with a relying party, the return is "No Data" (Status = ResponseStatus.NoData, and CtapStatus = CtapStatus.NoCredentials). in this case, calling GetData will result in an exception.

In this article
Back to top Generated by DocFX