Class ReadStatusResponse
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
-
objectReadStatusResponse
- 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
- MalformedYubiKeyResponseException
Thrown when the data received from the YubiKey does not match the expectations of the parser.