Direct-BT
2.3.1
Direct-BT - Direct Bluetooth Programming.
|
Go to the documentation of this file.
26 package org.direct_bt;
28 import java.util.ArrayList;
29 import java.util.Arrays;
30 import java.util.Iterator;
31 import java.util.List;
131 for(
final Iterator<BTSecurityRegistry.Entry> i=devicesSecDetails.iterator(); i.hasNext(); ) {
133 if( m.match(addr, name, sd) ) {
146 for(
final Iterator<BTSecurityRegistry.Entry> i=devicesSecDetails.iterator(); i.hasNext(); ) {
148 if( m.match(addrSub, name, sd) ) {
161 for(
final Iterator<BTSecurityRegistry.Entry> i=devicesSecDetails.iterator(); i.hasNext(); ) {
163 if( m.match(name, sd) ) {
179 return ( e.addrSub.length > 0 && 0 == a.indexOf(e.addrSub) ) ||
180 (e.nameSub.length() > 0 && n.startsWith(e.nameSub) );
192 return ( e.addrSub.length > 0 && 0 == as.indexOf(e.addrSub) ) ||
193 ( e.nameSub.length() > 0 && n.startsWith(e.nameSub) );
204 return e.nameSub.length() > 0 && n.startsWith(e.nameSub);
217 return ( e.addrSub.length > 0 && as.equals(e.addrSub) ) ||
218 ( e.nameSub.length() > 0 && n.equals(e.nameSub) );
229 return e.nameSub.length() > 0 && n.equals(e.nameSub);
237 return devicesSecDetails;
251 final StringBuilder errmsg =
new StringBuilder();
257 devicesSecDetails.add(sec);
263 devicesSecDetails.add(sec);
273 devicesSecDetails.clear();
277 return Arrays.toString( devicesSecDetails.toArray() );
BTSecurityLevel getSecLevel()
Entry specifying SMP security details associated to a device query via EUI48Sub or.
BTSecurityLevel sec_level
Interface for user defined EUI48 address and name BTSecurityRegistry.Entry matching criteria and algo...
static final int NO_PASSKEY
Bluetooth Security Level.
A 48 bit EUI-48 sub-identifier, see EUI48.
A packed 48 bit EUI-48 identifier, formerly known as MAC-48 or simply network device MAC address (Med...
static BTSecurityRegistry.Entry getStartOf(final String name)
Returns a matching BTSecurityRegistry.Entry,.
static final EUI48Sub ALL_DEVICE
EUI48Sub MAC address matching all device, i.e.
final boolean equals(final Object obj)
static BTSecurityRegistry.Entry getStartOf(final EUI48 addr, final String name)
Returns a matching BTSecurityRegistry.Entry,.
boolean isSecurityAutoEnabled()
UNSET
Denoting unset value, i.e.
boolean isSecLevelOrIOCapSet()
static String allToString()
SMPIOCapability getSecurityAutoIOCap()
static BTSecurityRegistry.Entry getOrCreate(final String addrOrNameSub)
Determines whether the given.
UNSET
Security Level not set, value 0.
SMPIOCapability io_cap_auto
SMPIOCapability getIOCap()
Application toolkit providing BT security setup and its device association on a pattern matching basi...
boolean match(final String name, final BTSecurityRegistry.Entry e)
Return.
static boolean scanEUI48Sub(final String str, final EUI48Sub dest, final StringBuilder errmsg)
Fills given EUI48Sub instance via given string representation.
static BTSecurityRegistry.Entry getEqual(final String name)
Returns a matching BTSecurityRegistry.Entry,.
boolean match(final EUI48 address, final String name, final BTSecurityRegistry.Entry e)
Return.
static BTSecurityRegistry.Entry getEqual(final EUI48Sub addrSub, final String name)
Returns a matching BTSecurityRegistry.Entry,.
static List< BTSecurityRegistry.Entry > getEntries()
Returns the reference of the current list of BTSecurityRegistry.Entry, not a copy.
static void clear()
Clears internal list.
static BTSecurityRegistry.Entry getStartOf(final EUI48Sub addrSub, final String name)
Returns a matching BTSecurityRegistry.Entry,.
Interface for user defined name BTSecurityRegistry.Entry matching criteria and algorithm.
Entry(final EUI48Sub addrSub)
Entry(final String nameSub)
boolean match(final EUI48Sub addressSub, final String name, final BTSecurityRegistry.Entry e)
Return.
boolean getPairingNumericComparison()
Interface for user defined EUI48Sub addressSub and name BTSecurityRegistry.Entry matching criteria an...