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

SMP Identity Resolving Key, used for platform agnostic persistence. More...

Collaboration diagram for org.direct_bt.SMPIdentityResolvingKey:

Classes

class  Properties
 SMPIdentityResolvingKey PropertyType Bit Mask More...
 
enum  PropertyType
 SMPIdentityResolvingKey Property Bits More...
 

Public Member Functions

 SMPIdentityResolvingKey ()
 Construct emoty unset instance. More...
 
 SMPIdentityResolvingKey (final byte source[], final int pos)
 Construct instance via given source byte array. More...
 
void get (final byte[] source, int pos)
 Method transfers all bytes representing a SMPIdentityResolvingKeyInfo from the given source array at the given position into this instance. More...
 
final boolean isResponder ()
 
native boolean matches (final EUI48 rpa)
 Returns true if this IRK matches the given random private address (RPA). More...
 
final void put (final byte[] sink, int pos)
 Method transfers all bytes representing this instance into the given destination array at the given position. More...
 
String toString ()
 

Public Attributes

EUI48 id_address
 Identity Address for the IRK. More...
 
byte irk []
 Identity Resolving Key (IRK) More...
 
Properties properties
 Properties bit mask. More...
 

Static Public Attributes

static final int byte_size = 1+16+6
 Size of the byte stream representation in bytes. More...
 

Detailed Description

SMP Identity Resolving Key, used for platform agnostic persistence.

Notable: No endian wise conversion shall occur on this data, since the encryption values are interpreted as a byte stream.

Byte layout must be synchronized with native direct_bt::SMPIdentityResolvingKeyInfo

Since
2.4.0

Definition at line 44 of file SMPIdentityResolvingKey.java.

Constructor & Destructor Documentation

◆ SMPIdentityResolvingKey() [1/2]

org.direct_bt.SMPIdentityResolvingKey.SMPIdentityResolvingKey ( final byte  source[],
final int  pos 
)

Construct instance via given source byte array.

Definition at line 137 of file SMPIdentityResolvingKey.java.

◆ SMPIdentityResolvingKey() [2/2]

org.direct_bt.SMPIdentityResolvingKey.SMPIdentityResolvingKey ( )

Construct emoty unset instance.

Definition at line 143 of file SMPIdentityResolvingKey.java.

Member Function Documentation

◆ get()

void org.direct_bt.SMPIdentityResolvingKey.get ( final byte[]  source,
int  pos 
)

Method transfers all bytes representing a SMPIdentityResolvingKeyInfo from the given source array at the given position into this instance.

Implementation is consistent with put(byte[], int).

Parameters
sourcethe source array
posstarting position in the source array
See also
put(byte[], int)

Definition at line 159 of file SMPIdentityResolvingKey.java.

Here is the caller graph for this function:

◆ put()

final void org.direct_bt.SMPIdentityResolvingKey.put ( final byte[]  sink,
int  pos 
)

Method transfers all bytes representing this instance into the given destination array at the given position.

Implementation is consistent with SMPIdentityResolvingKeyInfo(byte[], int).

Parameters
sinkthe destination array
posstarting position in the destination array
See also
#SMPIdentityResolvingKeyInfo(byte[], int)
get(byte[], int)

Definition at line 179 of file SMPIdentityResolvingKey.java.

Here is the caller graph for this function:

◆ isResponder()

final boolean org.direct_bt.SMPIdentityResolvingKey.isResponder ( )

Definition at line 188 of file SMPIdentityResolvingKey.java.

◆ matches()

native boolean org.direct_bt.SMPIdentityResolvingKey.matches ( final EUI48  rpa)

Returns true if this IRK matches the given random private address (RPA).

◆ toString()

String org.direct_bt.SMPIdentityResolvingKey.toString ( )

Definition at line 194 of file SMPIdentityResolvingKey.java.

Here is the caller graph for this function:

Member Data Documentation

◆ properties

Properties org.direct_bt.SMPIdentityResolvingKey.properties

Properties bit mask.

1 octet or 8 bits.

Definition at line 122 of file SMPIdentityResolvingKey.java.

◆ irk

byte org.direct_bt.SMPIdentityResolvingKey.irk[]

Identity Resolving Key (IRK)

Definition at line 125 of file SMPIdentityResolvingKey.java.

◆ id_address

EUI48 org.direct_bt.SMPIdentityResolvingKey.id_address

Identity Address for the IRK.

Definition at line 128 of file SMPIdentityResolvingKey.java.

◆ byte_size

final int org.direct_bt.SMPIdentityResolvingKey.byte_size = 1+16+6
static

Size of the byte stream representation in bytes.

See also
put(byte[], int)

Definition at line 134 of file SMPIdentityResolvingKey.java.


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