GeneratePrivateId Method

GeneratePrivateId(Memory<Byte>)

Generates a cryptographically random series of bytes as the private ID for the Yubico OTP credential.

C#
public ConfigureYubicoOtp GeneratePrivateId(Memory<byte> privateId)

Parameters

Type Name Description
System.Memory<System.Byte> privateId

Returns

ConfigureYubicoOtp

The current ConfigureYubicoOtp instance.

Exceptions

Type Condition
System.InvalidOperationException

This will be thrown if the caller called UsePrivateId(ReadOnlyMemory<Byte>) before calling this method.

Remarks

Generating a private ID is not compatible with setting an explicit byte collection as the private ID. Specifying both will result in an exception.

Generated by DocFX