java.lang.Object | ||
↳ | com.datalogic.device.configuration.SerializableBlob | |
↳ | com.datalogic.device.configuration.BluetoothSilentPairingWhitelisting |
BluetoothSilentPairingWhitelisting
implements the class that manages the silent pairing devices whitelisting.
The class is managed by the ConfigurationManager BlobProperty BT_SILENT_PAIRING_WHITELISTING
.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
BluetoothSilentPairingWhitelisting.IdentifierType |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructor
| |||||||||||
Constructor
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Whitelist a new device identified with the given MAC address.
| |||||||||||
Whitelist a new device identified with the given name.
| |||||||||||
Whitelist a new device identified with the given OUI ID.
| |||||||||||
Revoke all whitelisted devices.
| |||||||||||
Retrieve a map containing all whitelisted devices.
| |||||||||||
Retrieve a list containing the devices whitelisted by MAC address.
| |||||||||||
Retrieve a list containing the devices whitelisted by name.
| |||||||||||
Retrieve a list containing the devices whitelisted by OUI identifier.
| |||||||||||
Check if a device identified with the given MAC Address is whitelisted.
| |||||||||||
Check if a device identified with the given name is whitelisted.
| |||||||||||
Check if a device identified with the given OUI ID is whitelisted.
| |||||||||||
Check if a device identified with the given name, MAC address or OUI ID is whitelisted.
| |||||||||||
Remove from the whitelist a device with the given MAC address.
| |||||||||||
Remove from the whitelist a device with the given name.
| |||||||||||
Remove from the whitelist a device with the given OUI ID.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Constructor
value | Map
|
---|
Whitelist a new device identified with the given MAC address. If the entry already exists, the value will not be updated.
macAddress | String |
---|
boolean
retrieves true if the entry has been successfully added to the whitelist; otherwise, false.
Whitelist a new device identified with the given name. If the entry already exists, the value will not be updated. The device name can also be provided as a regular expression (regex), allowing for more flexible matching of device names. This feature enables the addition of multiple devices that match a certain pattern, rather than requiring an exact name match.
The advantage of supporting regular expressions is that it allows for more flexible and dynamic whitelisting, such as adding devices that share a common naming pattern without having to specify each name individually.
deviceName | String - The device name can be provided as a plain string or as a regular expression (regex).
If a regex is used, any device whose name matches the pattern will be added to the whitelist. |
---|
boolean
- Returns true
if the entry has been successfully added to the whitelist;
otherwise, false
.
Whitelist a new device identified with the given OUI ID. If the entry already exists, the value will not be updated.
ouiIdentifier | String |
---|
boolean
retrieves true if the entry has been successfully added to the whitelist; otherwise, false.
Retrieve a map containing all whitelisted devices.
Map
.
Retrieve a list containing the devices whitelisted by MAC address.
List
.
Retrieve a list containing the devices whitelisted by name.
List
.
Retrieve a list containing the devices whitelisted by OUI identifier.
List
.
Check if a device identified with the given MAC Address is whitelisted.
macAddress | String |
---|
boolean
tells if the device is whitelisted.
Check if a device identified with the given name is whitelisted.
deviceName | String |
---|
boolean
tells if the device is whitelisted.
Check if a device identified with the given OUI ID is whitelisted.
ouiIdentifier | String |
---|
boolean
tells if the device is whitelisted.
Check if a device identified with the given name, MAC address or OUI ID is whitelisted. The OUI ID is retrieved from the MAC address.
macAddress | String |
---|---|
deviceName | String |
boolean
tells if the device is whitelisted.
Remove from the whitelist a device with the given MAC address. If the entry doesn't exists, nothing happens and the method returns false.
macAddress | String |
---|
boolean
retrieves true if the entry has been successfully removed from the whitelist; otherwise, false.
Remove from the whitelist a device with the given name. If the entry doesn't exist, nothing happens and the method returns false. If the device name is provided as a regular expression (regex), the method will remove the whitelist entry that matches the given regex, but only if the whitelist was previously configured with a regex for device names.
The ability to use a regex allows for the removal of a specific whitelisting rule that was previously added using a regex, providing flexibility in managing device whitelisting based on patterns.
deviceName | String - The device name can be provided as a plain string or as a regular expression (regex).
If a regex was used when adding devices to the whitelist, this method will remove the specific whitelisting rule for that regex pattern. |
---|
boolean
- Returns true
if the whitelist entry associated with the given name or regex has been successfully removed;
otherwise, false
.
Remove from the whitelist a device with the given OUI ID. If the entry doesn't exists, nothing happens and the method returns false.
ouiIdentifier | String |
---|
boolean
retrieves true if the entry has been successfully removed from the whitelist; otherwise, false.