Class CalculateAllCredentialsResponse
The response to the CalculateAllCredentialsCommand command, containing the response from the oath application.
public class CalculateAllCredentialsResponse : OathResponse, IYubiKeyResponseWithData<IDictionary<Credential, Code>>, IYubiKeyResponse
- Inheritance
-
objectCalculateAllCredentialsResponse
- Implements
- Inherited Members
Constructors
CalculateAllCredentialsResponse(ResponseApdu)
Constructs an instance of the CalculateAllCredentialsResponse class based on a ResponseApdu received from the YubiKey.
public CalculateAllCredentialsResponse(ResponseApdu responseApdu)
Parameters
responseApdu
ResponseApduThe ResponseApdu returned by the YubiKey.
Methods
GetData()
Gets the dictionary of Credential and Code pair.
public IDictionary<Credential, Code> GetData()
Returns
- IDictionary<Credential, Code>
Returns name + response for TOTP and just name for HOTP and credentials requiring touch.
Exceptions
- InvalidOperationException
Thrown when Status is not equal to Success or the credential's period is invalid.
- MalformedYubiKeyResponseException
Thrown when the data provided does not meet the expectations, and cannot be parsed.