UseKey Method
UseKey(Memory<Byte>)
Explicitly sets the key of the Yubico OTP credential.
C#
public ConfigureYubicoOtp UseKey(Memory<byte> key)
Parameters
Type | Name | Description |
---|---|---|
System.Memory<System.Byte> | key | A collection of bytes to use for the key. |
Returns
The current ConfigureYubicoOtp instance.
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | This is thrown when GenerateKey(Memory<Byte>) has been called before this. |
Remarks
Setting an explicit key is not compatible with generating a key. Specifying both will result in an exception.