Table of Contents

Class CalculateCredentialResponse

Namespace
Yubico.YubiKey.Oath.Commands
Assembly
Yubico.YubiKey.dll

The response to the CalculateCredentialCommand command, containing the response from the oath application.

public class CalculateCredentialResponse : OathResponse, IYubiKeyResponseWithData<Code>, IYubiKeyResponse
Inheritance
object
CalculateCredentialResponse
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 ResponseApdu

The ResponseApdu returned by the YubiKey.

credential Credential

The 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

Credential

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

Thrown when Status is not equal to Success.

MalformedYubiKeyResponseException

Thrown when the data provided does not meet the expectations, and cannot be parsed.