Direct-BT v3.3.0-1-gc2d430c
Direct-BT - Direct Bluetooth Programming.
|
SMP Identity Resolving Key, used for platform agnostic persistence. More...
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... | |
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
Definition at line 44 of file SMPIdentityResolvingKey.java.
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.
org.direct_bt.SMPIdentityResolvingKey.SMPIdentityResolvingKey | ( | ) |
Construct emoty unset instance.
Definition at line 143 of file SMPIdentityResolvingKey.java.
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)
.
source | the source array |
pos | starting position in the source array |
Definition at line 159 of file SMPIdentityResolvingKey.java.
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)
.
sink | the destination array |
pos | starting position in the destination array |
Definition at line 179 of file SMPIdentityResolvingKey.java.
final boolean org.direct_bt.SMPIdentityResolvingKey.isResponder | ( | ) |
Definition at line 188 of file SMPIdentityResolvingKey.java.
native boolean org.direct_bt.SMPIdentityResolvingKey.matches | ( | final EUI48 | rpa | ) |
Returns true if this IRK matches the given random private address (RPA).
String org.direct_bt.SMPIdentityResolvingKey.toString | ( | ) |
Definition at line 194 of file SMPIdentityResolvingKey.java.
Properties org.direct_bt.SMPIdentityResolvingKey.properties |
Properties
bit mask.
1 octet or 8 bits.
Definition at line 122 of file SMPIdentityResolvingKey.java.
byte org.direct_bt.SMPIdentityResolvingKey.irk[] |
Identity Resolving Key (IRK)
Definition at line 125 of file SMPIdentityResolvingKey.java.
EUI48 org.direct_bt.SMPIdentityResolvingKey.id_address |
Identity Address for the IRK.
Definition at line 128 of file SMPIdentityResolvingKey.java.
|
static |
Size of the byte stream representation in bytes.
Definition at line 134 of file SMPIdentityResolvingKey.java.