Table of Contents

Class SetPinResponse

Namespace
Yubico.YubiKey.U2f.Commands
Assembly
Yubico.YubiKey.dll

The response to the SetPinCommand command, containing the response from the YubiKey.

public sealed class SetPinResponse : U2fResponse, IYubiKeyResponse
Inheritance
object
SetPinResponse
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 ResponseApdu

The object containing the response APDU returned by the YubiKey.