Table of Contents

Class SelectOathResponse

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

The response to the SelectOathCommand command, containing the YubiKey's OATH application info.

public class SelectOathResponse : OathResponse, ISelectApplicationResponse<OathApplicationData>, IYubiKeyResponseWithData<OathApplicationData>, IYubiKeyResponse
Inheritance
object
SelectOathResponse
Implements
Inherited Members

Constructors

SelectOathResponse(ResponseApdu)

Constructs a SelectResponse instance based on a ResponseApdu received from the YubiKey.

public SelectOathResponse(ResponseApdu responseApdu)

Parameters

responseApdu ResponseApdu

The ResponseApdu returned by the YubiKey.

Methods

GetData()

Gets the instance of the OathApplicationData class.

public OathApplicationData GetData()

Returns

OathApplicationData

The data in the response APDU, presented as a OATH application info.

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.