Direct-BT
2.3.1
Direct-BT - Direct Bluetooth Programming.
|
Bluetooth secure pairing mode. More...
Public Member Functions | |
PairingMode (final byte v) | |
Static Public Member Functions | |
static PairingMode | get (final String name) throws IllegalArgumentException |
Maps the specified name to a constant of PairingMode. More... | |
static PairingMode | get (final byte value) |
Maps the specified integer value to a constant of PairingMode. More... | |
Public Attributes | |
NONE =((byte)0) | |
No pairing mode, implying no secure connections, no encryption and no MITM protection. More... | |
NEGOTIATING =((byte)1) | |
Pairing mode in negotiating, i.e. More... | |
JUST_WORKS =((byte)2) | |
Just Works. More... | |
PASSKEY_ENTRY_ini =((byte)3) | |
Passkey Entry input by initiator. More... | |
PASSKEY_ENTRY_res =((byte)4) | |
Passkey Entry input by responder. More... | |
NUMERIC_COMPARE_ini =((byte)5) | |
Visual comparison of digit sequence (PIN) input by initiator, shown on both devices. More... | |
NUMERIC_COMPARE_res =((byte)6) | |
Visual comparison of digit sequence (PIN) input by responder, shown on both devices. More... | |
OUT_OF_BAND =((byte)7) | |
Utilizing a second factor secret to be used as a secret, e.g. More... | |
PRE_PAIRED =((byte)8) | |
Reusing encryption keys from previous pairing. More... | |
final byte | value |
Bluetooth secure pairing mode.
BT Core Spec v5.2: Vol 1, Part A, 5 Security Overview BT Core Spec v5.2: Vol 1, Part A, 5.4 LE SECURITY BT Core Spec v5.2: Vol 3, Part H (SM): 2.3.5.1 Selecting key generation method Table 2.8
<p<blockquote>
See get(byte) for its native integer mapping.
Definition at line 40 of file PairingMode.java.
org.direct_bt.PairingMode.PairingMode | ( | final byte | v | ) |
Definition at line 96 of file PairingMode.java.
|
static |
Maps the specified integer value to a constant of PairingMode.
value | the integer value to be mapped to a constant of this enum type. |
Definition at line 82 of file PairingMode.java.
|
static |
Maps the specified name to a constant of PairingMode.
Implementation simply returns valueOf(String). This maps the constant names itself to their respective constant.
name | the string name to be mapped to a constant of this enum type. |
IllegalArgumentException | if the specified name can't be mapped to a constant of this enum type as described above. |
Definition at line 73 of file PairingMode.java.
org.direct_bt.PairingMode.JUST_WORKS =((byte)2) |
Just Works.
Random key exchange with encryption but no MITM protection.
Definition at line 46 of file PairingMode.java.
org.direct_bt.PairingMode.NEGOTIATING =((byte)1) |
Pairing mode in negotiating, i.e.
Pairing Feature Exchange in progress.
Definition at line 44 of file PairingMode.java.
org.direct_bt.PairingMode.NONE =((byte)0) |
No pairing mode, implying no secure connections, no encryption and no MITM protection.
Definition at line 42 of file PairingMode.java.
org.direct_bt.PairingMode.NUMERIC_COMPARE_ini =((byte)5) |
Visual comparison of digit sequence (PIN) input by initiator, shown on both devices.
Responder produces and display artifact. Random key exchange with additional secret (PIN) and encryption and MITM protection.
Definition at line 52 of file PairingMode.java.
org.direct_bt.PairingMode.NUMERIC_COMPARE_res =((byte)6) |
Visual comparison of digit sequence (PIN) input by responder, shown on both devices.
Initiator produces and displays artifact. Random key exchange with additional secret (PIN) and encryption and MITM protection.
Definition at line 54 of file PairingMode.java.
org.direct_bt.PairingMode.OUT_OF_BAND =((byte)7) |
Utilizing a second factor secret to be used as a secret, e.g.
NFC field. Random key exchange with additional secret (2FA) and encryption and potential MITM protection.
Definition at line 56 of file PairingMode.java.
org.direct_bt.PairingMode.PASSKEY_ENTRY_ini =((byte)3) |
Passkey Entry input by initiator.
Responder produces and display artifact. A known digit sequence (PIN) must be given as a secret to be validated on the device. Random key exchange with additional secret (PIN) and encryption and MITM protection.
Definition at line 48 of file PairingMode.java.
org.direct_bt.PairingMode.PASSKEY_ENTRY_res =((byte)4) |
Passkey Entry input by responder.
Initiator produces and display artifact. A known digit sequence (PIN) must be given as a secret to be validated on the device. Random key exchange with additional secret (PIN) and encryption and MITM protection.
Definition at line 50 of file PairingMode.java.
org.direct_bt.PairingMode.PRE_PAIRED =((byte)8) |
Reusing encryption keys from previous pairing.
Definition at line 58 of file PairingMode.java.
final byte org.direct_bt.PairingMode.value |
Definition at line 60 of file PairingMode.java.