| Direct-BT
    2.3.1
    Direct-BT - Direct Bluetooth Programming. | 
SMP Long Term Key Info, used for platform agnostic persistence. More...
| Classes | |
| class | Properties | 
| SMPLongTermKeyInfo PropertyType Bit Mask  More... | |
| enum | PropertyType | 
| SMPLongTermKeyInfo Property Bits  More... | |
| Public Member Functions | |
| SMPLongTermKeyInfo (final byte source[], final int pos) | |
| Construct instance via given source byte array.  More... | |
| SMPLongTermKeyInfo () | |
| Construct emoty unset instance.  More... | |
| void | putStream (final byte[] source, int pos) | 
| Method transfers all bytes representing a SMPLongTermKeyInfo from the given source array at the given position into this instance.  More... | |
| final void | getStream (final byte[] sink, int pos) | 
| Method transfers all bytes representing this instance into the given destination array at the given position.  More... | |
| final boolean | isValid () | 
| final boolean | isResponder () | 
| String | toString () | 
| Public Attributes | |
| Properties | properties | 
| Properties bit mask.  More... | |
| byte | enc_size | 
| Encryption Size, 1 octets or 8 bits.  More... | |
| byte | ediv [] | 
| Encryption Diversifier, 2 octets or 16 bits.  More... | |
| byte | rand [] | 
| Random Number, 8 octets or 64 bits.  More... | |
| byte | ltk [] | 
| Long Term Key (LTK), 16 octets or 128 bits.  More... | |
| Static Public Attributes | |
| static final int | byte_size = 1+1+2+8+16 | 
| Size of the byte stream representation in bytes (28)  More... | |
SMP Long Term Key Info, 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::SMPLongTermKeyInfo
Definition at line 39 of file SMPLongTermKeyInfo.java.
| org.direct_bt.SMPLongTermKeyInfo.SMPLongTermKeyInfo | ( | final byte | source[], | 
| final int | pos | ||
| ) | 
Construct instance via given source byte array.
Definition at line 142 of file SMPLongTermKeyInfo.java.
| org.direct_bt.SMPLongTermKeyInfo.SMPLongTermKeyInfo | ( | ) | 
Construct emoty unset instance.
Definition at line 153 of file SMPLongTermKeyInfo.java.
| final void org.direct_bt.SMPLongTermKeyInfo.getStream | ( | 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 SMPLongTermKeyInfo(byte[], int).
| sink | the destination array | 
| pos | starting position in the destination array | 
Definition at line 194 of file SMPLongTermKeyInfo.java.
| final boolean org.direct_bt.SMPLongTermKeyInfo.isResponder | ( | ) | 
| final boolean org.direct_bt.SMPLongTermKeyInfo.isValid | ( | ) | 
| void org.direct_bt.SMPLongTermKeyInfo.putStream | ( | final byte[] | source, | 
| int | pos | ||
| ) | 
Method transfers all bytes representing a SMPLongTermKeyInfo from the given source array at the given position into this instance.
Implementation is consistent with getStream(byte[], int).
| source | the source array | 
| pos | starting position in the source array | 
Definition at line 171 of file SMPLongTermKeyInfo.java.
| String org.direct_bt.SMPLongTermKeyInfo.toString | ( | ) | 
Definition at line 211 of file SMPLongTermKeyInfo.java.
| 
 | static | 
Size of the byte stream representation in bytes (28)
Definition at line 139 of file SMPLongTermKeyInfo.java.
| byte org.direct_bt.SMPLongTermKeyInfo.ediv[] | 
Encryption Diversifier, 2 octets or 16 bits.
Definition at line 129 of file SMPLongTermKeyInfo.java.
| byte org.direct_bt.SMPLongTermKeyInfo.enc_size | 
Encryption Size, 1 octets or 8 bits.
Is zero if key is invalid.
Definition at line 127 of file SMPLongTermKeyInfo.java.
| byte org.direct_bt.SMPLongTermKeyInfo.ltk[] | 
Long Term Key (LTK), 16 octets or 128 bits.
Definition at line 133 of file SMPLongTermKeyInfo.java.
| Properties org.direct_bt.SMPLongTermKeyInfo.properties | 
| byte org.direct_bt.SMPLongTermKeyInfo.rand[] | 
Random Number, 8 octets or 64 bits.
Definition at line 131 of file SMPLongTermKeyInfo.java.
 1.8.18
 1.8.18