Table of Contents

Class EnumerateRpsBeginResponse

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

The response partner to the EnumerateRpsBeginCommand, containing the total number of relying parties represented in the YubiKey along with the "first" (index 0) relying party.

public class EnumerateRpsBeginResponse : Fido2Response, IYubiKeyResponseWithData<(int totalRelyingPartyCount, RelyingParty relyingParty)>, IYubiKeyResponse
Inheritance
object
EnumerateRpsBeginResponse
Implements
IYubiKeyResponseWithData<(int totalRelyingPartyCount, RelyingParty relyingParty)>
Inherited Members

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.

Constructors

EnumerateRpsBeginResponse(ResponseApdu)

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

public EnumerateRpsBeginResponse(ResponseApdu responseApdu)

Parameters

responseApdu ResponseApdu

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

Methods

GetData()

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

public (int totalRelyingPartyCount, RelyingParty relyingParty) GetData()

Returns

(int totalRelyingPartyCount, RelyingParty relyingParty)

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

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.

Exceptions

InvalidOperationException

Thrown when Status is not Success.

Ctap2DataException

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