Show / Hide Table of Contents

SetPasswordCommand Class

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

Configures Authentication. If length 0 is sent, authentication is removed. The key to be set is expected to be a user-supplied UTF-8 encoded password passed through 1000 rounds of PBKDF2 with the ID from SelectOathResponse used as salt. 16 bytes of that are used. When configuring authentication you are required to send an 8 byte challenge and one authentication-response with that key, in order to confirm that the application and the host software can calculate the same response for that key.

C#
public class SetPasswordCommand : OathChallengeResponseBaseCommand, IYubiKeyCommand<SetPasswordResponse>
Inheritance object OathChallengeResponseBaseCommand SetPasswordCommand
Implements
IYubiKeyCommand<SetPasswordResponse>

Constructors

Name Description
SetPasswordCommand(ReadOnlyMemory<byte>, OathApplicationData)

Constructs an instance of the SetPasswordCommand class.

Properties

Name Description
Application

Gets the YubiKeyApplication to which this command belongs.

OathData

Gets the OATH application information.

Password

Gets the password.

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