Home | History | Annotate | Download | only in connectivitymanagertest

Lines Matching defs:phase2

111      * @param phase2 The phase 2 method or null
119 Integer phase2, String identity, String anonymousIdentity, String caCert,
128 if (phase2 == null) phase2 = WifiEnterpriseConfig.Phase2.NONE;
136 config.enterpriseConfig.setPhase2Method(phase2);
161 * "password" must also be provided. If EAP is selected, then the fiels "eap", "phase2",
212 Integer phase2 = null;
213 if (jsonConfig.has("phase2")) {
214 phase2 = getPhase2(jsonConfig.getString("phase2"));
232 config = createEapConfig(ssid, password, eapMethod, phase2, identity,
308 private static int getPhase2(String phase2) {
309 if ("PAP".equalsIgnoreCase(phase2)) {
310 return WifiEnterpriseConfig.Phase2.PAP;
312 if ("MSCHAP".equalsIgnoreCase(phase2)) {
313 return WifiEnterpriseConfig.Phase2.MSCHAP;
315 if ("MSCHAPV2".equalsIgnoreCase(phase2)) {
316 return WifiEnterpriseConfig.Phase2.MSCHAPV2;
318 if ("GTC".equalsIgnoreCase(phase2)) {
319 return WifiEnterpriseConfig.Phase2.GTC;
321 throw new IllegalArgumentException("Phase2 must be one of PAP, MSCHAP, MSCHAPV2, or GTC");