GetData Method
GetData()
Gets the total number of relying parties and the first (index 0) relying party represented in the YubiKey.
C#
public (int, RelyingParty) GetData()
Returns
The data in the response APDU, presented as a Tuple of (int,RelyingParty).
Implements
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | |
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.