to top
Datalogic APIs
public class

UsbHostWhitelisting

extends SerializableBlob
java.lang.Object
   ↳ com.datalogic.device.configuration.SerializableBlob
     ↳ com.datalogic.device.configuration.UsbHostWhitelisting

Class Overview

UsbHostWhitelisting implements the BlobProperty that allows to manage USB host whitelisting.
The class is managed by the ConfigurationManager Blob Properties USB_HOST_WHITELISTING and USB_PREDEFINED_HOST_WHITELISTING.

Summary

Public Constructors
UsbHostWhitelisting()
Constructor
UsbHostWhitelisting(List<UsbWhitelistedDevice> devices)
Constructor
Public Methods
void add(List<UsbWhitelistedDevice> usbWhitelistedDevices)
Add a list of devices to whitelist.
void add(UsbWhitelistedDevice usbWhitelistedDevice)
Add a device to whitelist.
void clear()
Clear whitelist.
UsbWhitelistedDevice get(int vid, int pid)
Get a device from whitelist by vid and pid.
List<UsbWhitelistedDevice> getWhitelistedDevices()
Retrieve the whole whitelist content.
boolean remove(UsbWhitelistedDevice usbWhitelistedDevice)
Remove a devices from whitelist.
[Expand]
Inherited Methods
From class com.datalogic.device.configuration.SerializableBlob
From class java.lang.Object

Public Constructors

public UsbHostWhitelisting ()

Added in revision 37

Constructor

public UsbHostWhitelisting (List<UsbWhitelistedDevice> devices)

Added in revision 37

Constructor

Parameters
devices List

Public Methods

public void add (List<UsbWhitelistedDevice> usbWhitelistedDevices)

Added in revision 37

Add a list of devices to whitelist.

Parameters
usbWhitelistedDevices list of the devices to whitelist

public void add (UsbWhitelistedDevice usbWhitelistedDevice)

Added in revision 37

Add a device to whitelist.

Parameters
usbWhitelistedDevice device to whitelist

public void clear ()

Added in revision 37

Clear whitelist. This will not effect in case of USB_PREDEFINED_HOST_WHITELISTING.

public UsbWhitelistedDevice get (int vid, int pid)

Added in revision 37

Get a device from whitelist by vid and pid.

Parameters
vid String
pid String
Returns
  • UsbWhitelistedDevice

public List<UsbWhitelistedDevice> getWhitelistedDevices ()

Added in revision 37

Retrieve the whole whitelist content.

Returns
  • HashMap.

public boolean remove (UsbWhitelistedDevice usbWhitelistedDevice)

Added in revision 37

Remove a devices from whitelist. Devices is removed checking only vid and pid.

Parameters
usbWhitelistedDevice device to whitelist.