Direct-BT v3.3.0-1-gc2d430c
Direct-BT - Direct Bluetooth Programming.
Classes | Static Public Member Functions | Static Public Attributes | List of all members
org.direct_bt.BTSecurityRegistry Class Reference

Application toolkit providing BT security setup and its device association on a pattern matching basis, i.e. More...

Collaboration diagram for org.direct_bt.BTSecurityRegistry:

Classes

interface  AddressNameEntryMatch
 Interface for user defined EUI48 address and name BTSecurityRegistry.Entry matching criteria and algorithm. More...
 
interface  AddressSubNameEntryMatch
 Interface for user defined EUI48Sub addressSub and name BTSecurityRegistry.Entry matching criteria and algorithm. More...
 
class  Entry
 Entry specifying SMP security details associated to a device query via EUI48Sub or nameSub. More...
 
interface  NameEntryMatch
 Interface for user defined name BTSecurityRegistry.Entry matching criteria and algorithm. More...
 

Static Public Member Functions

static String allToString ()
 
static void clear ()
 Clears internal list. More...
 
static BTSecurityRegistry.Entry get (final EUI48 addr, final String name, final AddressNameEntryMatch m)
 Returns a matching BTSecurityRegistry.Entry with the given addr and/or name @endiliteral.
More...
 
static BTSecurityRegistry.Entry get (final EUI48Sub addrSub, final String name, final AddressSubNameEntryMatch m)
 Returns a matching BTSecurityRegistry.Entry with the given addrSub and/or name. More...
 
static BTSecurityRegistry.Entry get (final String name, final NameEntryMatch m)
 Returns a matching BTSecurityRegistry.Entry with the given name. More...
 
static List< BTSecurityRegistry.Entry > getEntries ()
 Returns the reference of the current list of BTSecurityRegistry.Entry, not a copy. More...
 
static BTSecurityRegistry.Entry getEqual (final EUI48Sub addrSub, final String name)
 Returns a matching BTSecurityRegistry.Entry,. More...
 
static BTSecurityRegistry.Entry getEqual (final String name)
 Returns a matching BTSecurityRegistry.Entry,. More...
 
static BTSecurityRegistry.Entry getOrCreate (final String addrOrNameSub)
 Determines whether the given addrOrNameSub is a EUI48Sub or just a name and retrieves an entry. More...
 
static BTSecurityRegistry.Entry getStartOf (final EUI48 addr, final String name)
 Returns a matching BTSecurityRegistry.Entry,. More...
 
static BTSecurityRegistry.Entry getStartOf (final EUI48Sub addrSub, final String name)
 Returns a matching BTSecurityRegistry.Entry,. More...
 
static BTSecurityRegistry.Entry getStartOf (final String name)
 Returns a matching BTSecurityRegistry.Entry,. More...
 

Static Public Attributes

static final int NO_PASSKEY = -1
 

Detailed Description

Application toolkit providing BT security setup and its device association on a pattern matching basis, i.e.

EUI48Sub or name-sub.

Definition at line 41 of file BTSecurityRegistry.java.

Member Function Documentation

◆ get() [1/3]

static BTSecurityRegistry.Entry org.direct_bt.BTSecurityRegistry.get ( final EUI48  addr,
final String  name,
final AddressNameEntryMatch  m 
)
static

Returns a matching BTSecurityRegistry.Entry with the given addr and/or name @endiliteral.

Matching criteria and algorithm is defined by the given AddressNameEntryMatch.

Definition at line 134 of file BTSecurityRegistry.java.

◆ get() [2/3]

static BTSecurityRegistry.Entry org.direct_bt.BTSecurityRegistry.get ( final EUI48Sub  addrSub,
final String  name,
final AddressSubNameEntryMatch  m 
)
static

Returns a matching BTSecurityRegistry.Entry with the given addrSub and/or name.

Matching criteria and algorithm is defined by the given AddressSubNameEntryMatch.

Definition at line 149 of file BTSecurityRegistry.java.

◆ get() [3/3]

static BTSecurityRegistry.Entry org.direct_bt.BTSecurityRegistry.get ( final String  name,
final NameEntryMatch  m 
)
static

Returns a matching BTSecurityRegistry.Entry with the given name.

Matching criteria and algorithm is defined by the given NameEntryMatch.

Definition at line 164 of file BTSecurityRegistry.java.

◆ getStartOf() [1/3]

static BTSecurityRegistry.Entry org.direct_bt.BTSecurityRegistry.getStartOf ( final EUI48  addr,
final String  name 
)
static

Returns a matching BTSecurityRegistry.Entry,.

Otherwise null is returned.

Definition at line 181 of file BTSecurityRegistry.java.

◆ getStartOf() [2/3]

static BTSecurityRegistry.Entry org.direct_bt.BTSecurityRegistry.getStartOf ( final EUI48Sub  addrSub,
final String  name 
)
static

Returns a matching BTSecurityRegistry.Entry,.

Otherwise null is returned.

Definition at line 194 of file BTSecurityRegistry.java.

◆ getStartOf() [3/3]

static BTSecurityRegistry.Entry org.direct_bt.BTSecurityRegistry.getStartOf ( final String  name)
static

Returns a matching BTSecurityRegistry.Entry,.

Otherwise null is returned.

Definition at line 206 of file BTSecurityRegistry.java.

◆ getEqual() [1/2]

static BTSecurityRegistry.Entry org.direct_bt.BTSecurityRegistry.getEqual ( final EUI48Sub  addrSub,
final String  name 
)
static

Returns a matching BTSecurityRegistry.Entry,.

Otherwise null is returned.

Definition at line 219 of file BTSecurityRegistry.java.

Here is the caller graph for this function:

◆ getEqual() [2/2]

static BTSecurityRegistry.Entry org.direct_bt.BTSecurityRegistry.getEqual ( final String  name)
static

Returns a matching BTSecurityRegistry.Entry,.

Otherwise null is returned.

Definition at line 231 of file BTSecurityRegistry.java.

◆ getEntries()

static List< BTSecurityRegistry.Entry > org.direct_bt.BTSecurityRegistry.getEntries ( )
static

Returns the reference of the current list of BTSecurityRegistry.Entry, not a copy.

Definition at line 240 of file BTSecurityRegistry.java.

◆ getOrCreate()

static BTSecurityRegistry.Entry org.direct_bt.BTSecurityRegistry.getOrCreate ( final String  addrOrNameSub)
static

Determines whether the given addrOrNameSub is a EUI48Sub or just a name and retrieves an entry.

If no entry exists, creates a new entry.

Implementation uses getEqual(EUI48Sub, String) to find a pre-existing entry.

Parameters
addrOrNameSubeither a EUI48Sub or just a name
Returns
new or existing instance

Definition at line 253 of file BTSecurityRegistry.java.

Here is the caller graph for this function:

◆ clear()

static void org.direct_bt.BTSecurityRegistry.clear ( )
static

Clears internal list.

Definition at line 276 of file BTSecurityRegistry.java.

◆ allToString()

static String org.direct_bt.BTSecurityRegistry.allToString ( )
static

Definition at line 280 of file BTSecurityRegistry.java.

Here is the caller graph for this function:

Member Data Documentation

◆ NO_PASSKEY

final int org.direct_bt.BTSecurityRegistry.NO_PASSKEY = -1
static

Definition at line 42 of file BTSecurityRegistry.java.


The documentation for this class was generated from the following file: