Direct-BT
2.3.1
Direct-BT - Direct Bluetooth Programming.
|
Go to the documentation of this file.
25 package org.direct_bt;
73 public static PairingMode get(
final String name)
throws IllegalArgumentException {
84 case (
byte) 0x01:
return NEGOTIATING;
85 case (
byte) 0x02:
return JUST_WORKS;
86 case (
byte) 0x03:
return PASSKEY_ENTRY_ini;
87 case (
byte) 0x04:
return PASSKEY_ENTRY_res;
88 case (
byte) 0x05:
return NUMERIC_COMPARE_ini;
89 case (
byte) 0x06:
return NUMERIC_COMPARE_res;
90 case (
byte) 0x07:
return OUT_OF_BAND;
91 case (
byte) 0x08:
return PRE_PAIRED;
PRE_PAIRED
Reusing encryption keys from previous pairing.
NUMERIC_COMPARE_ini
Visual comparison of digit sequence (PIN) input by initiator, shown on both devices.
Bluetooth secure pairing mode.
PASSKEY_ENTRY_res
Passkey Entry input by responder.
NONE
No pairing mode, implying no secure connections, no encryption and no MITM protection.
PairingMode(final byte v)
NUMERIC_COMPARE_res
Visual comparison of digit sequence (PIN) input by responder, shown on both devices.
NEGOTIATING
Pairing mode in negotiating, i.e.
OUT_OF_BAND
Utilizing a second factor secret to be used as a secret, e.g.
PASSKEY_ENTRY_ini
Passkey Entry input by initiator.