Show / Hide Table of Contents

UsePrivateId Method

UsePrivateId(ReadOnlyMemory<byte>)

Explicitly sets the private ID of the Yubico OTP credential.

C#
public ConfigureYubicoOtp UsePrivateId(ReadOnlyMemory<byte> privateId)

Parameters

Type Name Description
ReadOnlyMemory<byte> privateId

A collection of bytes to use for the private ID.

Returns

ConfigureYubicoOtp

The current ConfigureYubicoOtp instance.

Exceptions

Type Condition
ArgumentException

This is thrown when the byte collection is not the appropriate size.

InvalidOperationException

This is thrown when GeneratePrivateId(Memory<byte>) has been called before this.

Remarks

Setting an explicit private ID is not compatible with generating a private ID. Specifying both will result in an exception.

In this article
Back to top Generated by DocFX