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 |
---|---|---|
System.ReadOnlyMemory<System.Byte> | privateId | A collection of bytes to use for the private ID. |
Returns
The current ConfigureYubicoOtp instance.
Exceptions
Type | Condition |
---|---|
System.ArgumentException | This is thrown when the byte collection is not the appropriate size. |
System.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.