Class SelectOathResponse
The response to the SelectOathCommand command, containing the YubiKey's OATH application info.
public class SelectOathResponse : OathResponse, ISelectApplicationResponse<OathApplicationData>, IYubiKeyResponseWithData<OathApplicationData>, IYubiKeyResponse
- Inheritance
-
objectSelectOathResponse
- Implements
- Inherited Members
Constructors
SelectOathResponse(ResponseApdu)
Constructs a SelectResponse instance based on a ResponseApdu received from the YubiKey.
public SelectOathResponse(ResponseApdu responseApdu)
Parameters
responseApdu
ResponseApduThe 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
- MalformedYubiKeyResponseException
Thrown when the data provided does not meet the expectations, and cannot be parsed.