Class SetPinResponse
The response to the SetPinCommand command, containing the response from the YubiKey.
public sealed class SetPinResponse : U2fResponse, IYubiKeyResponse
- Inheritance
-
objectSetPinResponse
- Implements
- Inherited Members
Remarks
This is the partner response class to SetPinCommand.
After executing the SetPinCommand
, the result is an
instance of this class. There is no data to return. Simply check the
Status
property. If it is ResponseStatus.Success
the
PIN was changed. If it is ResponseStatus.ConditionsNotSatisfied
,
then the current PIN was incorrect.
Constructors
SetPinResponse(ResponseApdu)
Constructs a SetPinResponse based on a ResponseApdu received from the YubiKey.
public SetPinResponse(ResponseApdu responseApdu)
Parameters
responseApdu
ResponseApduThe object containing the response APDU returned by the YubiKey.