Direct-BT v3.3.0-1-gc2d430c
Direct-BT - Direct Bluetooth Programming.
|
Local SMP Link Key, used for platform agnostic persistence, mapping to platform specific link keys format. More...
Classes | |
enum | KeyType |
Link Key Types compatible with Mgmt's MgmtLinkKeyType and hence MgmtLinkKeyInfo. More... | |
Public Member Functions | |
SMPLinkKey () | |
Construct emoty unset instance. More... | |
SMPLinkKey (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 SMPLinkKeyInfo from the given source array at the given position into this instance. More... | |
final boolean | isResponder () |
final boolean | isValid () |
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 | |
byte | key [] |
Link key. More... | |
byte | pin_length |
Pin length. More... | |
boolean | responder |
Responder (ll slave) flag. More... | |
KeyType | type |
KeyType value. More... | |
Static Public Attributes | |
static final int | byte_size = 1+1+16+1 |
Size of the byte stream representation in bytes. More... | |
Local SMP Link Key, used for platform agnostic persistence, mapping to platform specific link keys format.
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::SMPLinkKeyInfo
Definition at line 42 of file SMPLinkKey.java.
org.direct_bt.SMPLinkKey.SMPLinkKey | ( | final byte | source[], |
final int | pos | ||
) |
Construct instance via given source byte array.
Definition at line 129 of file SMPLinkKey.java.
org.direct_bt.SMPLinkKey.SMPLinkKey | ( | ) |
Construct emoty unset instance.
Definition at line 135 of file SMPLinkKey.java.
void org.direct_bt.SMPLinkKey.get | ( | final byte[] | source, |
int | pos | ||
) |
Method transfers all bytes representing a SMPLinkKeyInfo 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 152 of file SMPLinkKey.java.
final void org.direct_bt.SMPLinkKey.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 SMPLinkKeyInfo(byte[], int)
.
sink | the destination array |
pos | starting position in the destination array |
Definition at line 173 of file SMPLinkKey.java.
final boolean org.direct_bt.SMPLinkKey.isValid | ( | ) |
final boolean org.direct_bt.SMPLinkKey.isResponder | ( | ) |
Definition at line 185 of file SMPLinkKey.java.
String org.direct_bt.SMPLinkKey.toString | ( | ) |
boolean org.direct_bt.SMPLinkKey.responder |
Responder (ll slave) flag.
Definition at line 111 of file SMPLinkKey.java.
KeyType org.direct_bt.SMPLinkKey.type |
KeyType
value.
Definition at line 114 of file SMPLinkKey.java.
byte org.direct_bt.SMPLinkKey.key[] |
Link key.
Definition at line 117 of file SMPLinkKey.java.
byte org.direct_bt.SMPLinkKey.pin_length |
Pin length.
Definition at line 120 of file SMPLinkKey.java.
|
static |
Size of the byte stream representation in bytes.
Definition at line 126 of file SMPLinkKey.java.