SetLockCode Method
SetLockCode(ReadOnlySpan<Byte>)
Locks the YubiKey's configuration with a code. Any subsequent calls to the SetDeviceInfoBaseCommand class will need to unlock the YubiKey using the ApplyLockCode(ReadOnlySpan<Byte>) method.
C#
public void SetLockCode(ReadOnlySpan<byte> lockCode)
Parameters
Type | Name | Description |
---|---|---|
System.ReadOnlySpan<System.Byte> | lockCode | A 16-byte lock code. A value of all zeros (16 bytes) will clear the code. |