YubiKeyDevice Constructor
YubiKeyDevice(IDevice, IYubiKeyDeviceInfo)
Constructs a YubiKeyDevice instance.
C#
public YubiKeyDevice(IDevice device, IYubiKeyDeviceInfo info)
Parameters
Type | Name | Description |
---|---|---|
IDevice | device | A valid device; either a smart card, keyboard, or FIDO device. |
IYubiKeyDeviceInfo | info | The YubiKey device information that describes the device. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | An unrecognized device type was given. |
YubiKeyDevice(ISmartCardDevice, IHidDevice, IHidDevice, IYubiKeyDeviceInfo)
Construct a YubiKeyDevice instance.
C#
public YubiKeyDevice(ISmartCardDevice smartCardDevice, IHidDevice hidKeyboardDevice, IHidDevice hidFidoDevice, IYubiKeyDeviceInfo yubiKeyDeviceInfo)
Parameters
Type | Name | Description |
---|---|---|
ISmartCardDevice | smartCardDevice | ISmartCardDevice for the YubiKey. |
IHidDevice | hidKeyboardDevice | IHidDevice for normal HID interaction with the YubiKey. |
IHidDevice | hidFidoDevice | IHidDevice for FIDO interaction with the YubiKey. |
IYubiKeyDeviceInfo | yubiKeyDeviceInfo | IYubiKeyDeviceInfo with remaining properties of the YubiKey. |