SlotAccessCode Class
Namespace: Yubico.YubiContainer for a YubiKey OTP Slot access code.
C#
public class SlotAccessCode
Inheritance
object
SlotAccessCode
Remarks
Access codes must be exactly six bytes when used in the YubiKey protocol. This helper-class assures that the access code does not exceed the maximum length, and pads the code with zeros (0x00) if less than six bytes are specified.
This class has an explicit operator that allows you to cast a byte
array as a Slot
Constructors
Name | Description |
---|---|
Slot |
Constructs a Slot |
SlotAccessCode(ReadOnlyMemory<byte>) | Constructs a Slot |
Fields
Name | Description |
---|---|
Max |
Constant giving a reference to the maximum length of an access code. |
Operators
Name | Description |
---|---|
explicit operator Slot |
Explicit operator to allow a byte array to be used as a parameter
for methods expecting a Slot |