Direct-BT  2.3.1
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. More...
 
interface  NameEntryMatch
 Interface for user defined name BTSecurityRegistry.Entry matching criteria and algorithm. More...
 

Static Public Member Functions

static BTSecurityRegistry.Entry get (final EUI48 addr, final String name, final AddressNameEntryMatch m)
 Returns a matching BTSecurityRegistry.Entry with the given. More...
 
static BTSecurityRegistry.Entry get (final EUI48Sub addrSub, final String name, final AddressSubNameEntryMatch m)
 Returns a matching BTSecurityRegistry.Entry with the given. More...
 
static BTSecurityRegistry.Entry get (final String name, final NameEntryMatch m)
 Returns a matching BTSecurityRegistry.Entry with the given. 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 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 List< BTSecurityRegistry.Entry > getEntries ()
 Returns the reference of the current list of BTSecurityRegistry.Entry, not a copy. More...
 
static BTSecurityRegistry.Entry getOrCreate (final String addrOrNameSub)
 Determines whether the given. More...
 
static void clear ()
 Clears internal list. More...
 
static String allToString ()
 

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 37 of file BTSecurityRegistry.java.

Member Function Documentation

◆ allToString()

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

Definition at line 276 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 272 of file BTSecurityRegistry.java.

◆ 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

Matching criteria and algorithm is defined by the given AddressNameEntryMatch.

Definition at line 130 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 145 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 160 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 236 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 215 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 227 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 249 of file BTSecurityRegistry.java.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ 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 177 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 190 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 202 of file BTSecurityRegistry.java.

Member Data Documentation

◆ NO_PASSKEY

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

Definition at line 38 of file BTSecurityRegistry.java.


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