Table of Contents

Class QueryFipsModeResponse

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

The response to the QueryFipsModeCommand command, containing the YubiKey's current FIPS status.

public class QueryFipsModeResponse : OtpResponse, IYubiKeyResponseWithData<bool>, IYubiKeyResponse
Inheritance
object
QueryFipsModeResponse
Implements
Inherited Members

Constructors

QueryFipsModeResponse(ResponseApdu)

Constructs a QueryFipsModeResponse based on a ResponseApdu received from the YubiKey.

public QueryFipsModeResponse(ResponseApdu responseApdu)

Parameters

responseApdu ResponseApdu

The object containing the response APDU returned by the YubiKey.

Methods

GetData()

Gets the FIPS status.

public bool GetData()

Returns

bool

The data in the ResponseAPDU, presented as a boolean value.

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.