CurrentPin Property
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.
C#
public ReadOnlyMemory<byte> CurrentPin { get; set; }
Property Value
Type | Description |
---|---|
System.ReadOnlyMemory<System.Byte> |
Remarks
If there is a PIN, it must be from 6 to 32 bytes long (inclusive). It is binary data. 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.
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.
If there is no current PIN (this command is being called to set the PIN for the first time), there is no need to set this property.