Table of Contents

Class ReadStatusResponse

Namespace
Yubico.YubiKey.Otp.Commands
Assembly
Yubico.YubiKey.dll

A shared response for many OTP commands, containing the YubiKey's current OTP application status. This is often used to verify whether a configuration was successfully applied or not.

public class ReadStatusResponse : OtpResponse, IYubiKeyResponseWithData<OtpStatus>, IYubiKeyResponse
Inheritance
object
ReadStatusResponse
Implements
Inherited Members

Constructors

ReadStatusResponse(ResponseApdu)

public ReadStatusResponse(ResponseApdu responseApdu)

Parameters

responseApdu ResponseApdu

Methods

GetData()

Gets the OTP application status.

public OtpStatus GetData()

Returns

OtpStatus

The data in the ResponseAPDU, presented as an OtpStatus class.

Exceptions

InvalidOperationException

Thrown when Status is not Success.

MalformedYubiKeyResponseException

Thrown when the data received from the YubiKey does not match the expectations of the parser.