103 public static SMPPairingState get(
final String name)
throws IllegalArgumentException {
104 return valueOf(name);
114 case (
byte) 0x01:
return FAILED;
115 case (
byte) 0x02:
return REQUESTED_BY_RESPONDER;
116 case (
byte) 0x03:
return FEATURE_EXCHANGE_STARTED;
117 case (
byte) 0x04:
return FEATURE_EXCHANGE_COMPLETED;
118 case (
byte) 0x05:
return PASSKEY_EXPECTED;
119 case (
byte) 0x06:
return NUMERIC_COMPARE_EXPECTED;
120 case (
byte) 0x07:
return PASSKEY_NOTIFY;
121 case (
byte) 0x08:
return OOB_EXPECTED;
122 case (
byte) 0x09:
return KEY_DISTRIBUTION;
123 case (
byte) 0x0a:
return COMPLETED;
124 default:
return NONE;
SMP Pairing Process state definition.
NONE
No pairing in process.
FEATURE_EXCHANGE_COMPLETED
Phase 1: Pairing responded by responding (slave) device via SMPPairingMsg.
REQUESTED_BY_RESPONDER
Phase 0: Pairing requested by responding (slave) device via SMPSecurityReqMsg.
OOB_EXPECTED
Phase 2: Authentication (MITM) OOB data expected, see PairingMode#OUT_OF_BAND.
PASSKEY_EXPECTED
Phase 2: Authentication (MITM) PASSKEY expected, see PairingMode#PASSKEY_ENTRY_ini.
COMPLETED
Phase 3: Key & value distribution completed by responding (slave) device sending SMPIdentInfoMsg (#1)...
NUMERIC_COMPARE_EXPECTED
Phase 2: Authentication (MITM) Numeric Comparison Reply expected, see PairingMode#NUMERIC_COMPARE_ini...
KEY_DISTRIBUTION
Phase 3: Key & value distribution started after SMPPairConfirmMsg or SMPPairPubKeyMsg (LE Secure Conn...
FEATURE_EXCHANGE_STARTED
Phase 1: Pairing requested by initiating (master) device via SMPPairingMsg.
PASSKEY_NOTIFY
Phase 2: Authentication (MITM) PASSKEY has been produced (this device is responder,...
SMPPairingState(final byte v)