SetPasswordCommand Class
Namespace: Yubico.YubiKey.Oath.Commands Assembly: Yubico.YubiKey.dllConfigures 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.
public class SetPasswordCommand : OathChallengeResponseBaseCommand, IYubiKeyCommand<SetPasswordResponse>
Implements
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. |