Show / Hide Table of Contents

SetPinCommand Class

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

Sets the PIN or changes the PIN to a new value.

C#
public sealed class SetPinCommand : IYubiKeyCommand<SetPinResponse>
Inheritance object SetPinCommand
Implements
IYubiKeyCommand<SetPinResponse>

Remarks

This command is only available on the YubiKey FIPS series.

Constructors

Name Description
SetPinCommand(ReadOnlyMemory<byte>, ReadOnlyMemory<byte>)

Constructs an instance of the SetPinCommand class.

Properties

Name Description
Application

Gets the YubiKeyApplication to which this command belongs.

CurrentPin

The PIN needed to perform U2F operations on a FIPS YubiKey. If this is empty, then the caller expects that there is no PIN yet set.

NewPin

The PIN that will replace the current PIN.

Methods

Name Description
CreateCommandApdu()

Creates a well-formed CommandApdu to send to the YubiKey.

CreateResponseForApdu(ResponseApdu)

Creates the corresponding IYubiKeyResponse implementation for the current command.

In this article
Back to top Generated by DocFX