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