Show / Hide Table of Contents

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
Memory<byte> privateId

Returns

ConfigureYubicoOtp

The current ConfigureYubicoOtp instance.

Exceptions

Type Condition
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.

In this article
Back to top Generated by DocFX