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