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;
Bluetooth secure pairing mode.
NEGOTIATING
Pairing mode in negotiating, i.e.
OUT_OF_BAND
Utilizing a second factor secret to be used as a secret, e.g.
NUMERIC_COMPARE_ini
Visual comparison of digit sequence (PIN) input by initiator, shown on both devices.
NONE
No pairing mode, implying no secure connections, no encryption and no MITM protection.
PairingMode(final byte v)
PASSKEY_ENTRY_ini
Passkey Entry input by initiator.
PRE_PAIRED
Reusing encryption keys from previous pairing.
NUMERIC_COMPARE_res
Visual comparison of digit sequence (PIN) input by responder, shown on both devices.
PASSKEY_ENTRY_res
Passkey Entry input by responder.