Class QueryFipsModeResponse
The response to the QueryFipsModeCommand command, containing the YubiKey's current FIPS status.
public class QueryFipsModeResponse : OtpResponse, IYubiKeyResponseWithData<bool>, IYubiKeyResponse
- Inheritance
-
objectQueryFipsModeResponse
- Implements
-
IYubiKeyResponseWithData<bool>
- Inherited Members
Constructors
QueryFipsModeResponse(ResponseApdu)
Constructs a QueryFipsModeResponse based on a ResponseApdu received from the YubiKey.
public QueryFipsModeResponse(ResponseApdu responseApdu)
Parameters
responseApdu
ResponseApduThe 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
- MalformedYubiKeyResponseException
Thrown when the data received from the YubiKey does not match the expectations of the parser.