Show / Hide Table of Contents

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
ReadOnlySpan<byte> lockCode

A 16-byte lock code. A value of all zeros (16 bytes) will clear the code.

In this article
Back to top Generated by DocFX