NewPin Property
NewPin
The PIN that will replace the current PIN.
C#
public ReadOnlyMemory<byte> NewPin { get; set; }
Property Value
Type | Description |
---|---|
System.ReadOnlyMemory<System.Byte> |
Remarks
The PIN must be from 6 to 32 bytes long (inclusive). This command class will use whatever PIN you supply, so if it is an incorrect length, you will get the error when trying to execute the command.
It is binary data. It is not possible to pass in an Empty PIN (changing a YubiKey from PIN required to no PIN). Once a PIN is set, the U2F application on that YubiKey must always have a PIN. The only way to remove a PIN is to reset the application.
This class will copy a reference to the PIN provided. Do not overwrite the data until after the command has executed. After it has executed, overwrite the buffer for security reasons.