Class CalculateCredentialResponse
The response to the CalculateCredentialCommand command, containing the response from the oath application.
public class CalculateCredentialResponse : OathResponse, IYubiKeyResponseWithData<Code>, IYubiKeyResponse
- Inheritance
-
objectCalculateCredentialResponse
- Implements
- Inherited Members
Constructors
CalculateCredentialResponse(ResponseApdu, Credential)
Constructs an instance of the CalculateCredentialResponse class based on a ResponseApdu received from the YubiKey.
public CalculateCredentialResponse(ResponseApdu responseApdu, Credential credential)
Parameters
responseApdu
ResponseApduThe ResponseApdu returned by the YubiKey.
credential
CredentialThe credential that was sent to calculate in CalculateCredentialCommand.
Properties
Credential
The credential that was sent to calculate in CalculateCredentialCommand.
public Credential Credential { get; }
Property Value
StatusCodeMap
Retrieves the details describing the processing state.
protected override YubiKeyResponse.ResponseStatusPair StatusCodeMap { get; }
Property Value
- YubiKeyResponse.ResponseStatusPair
The ResponseStatus and a descriptive message, as a YubiKeyResponse.ResponseStatusPair.
Remarks
Implementers of subtypes can override this member to change or add mappings.
Methods
GetData()
Gets the instance Code class.
public Code GetData()
Returns
- Code
The data in the response APDU, presented as one-time password.
Exceptions
- InvalidOperationException
- MalformedYubiKeyResponseException
Thrown when the data provided does not meet the expectations, and cannot be parsed.