Home
last modified time | relevance | path

Searched refs:enterpriseConfig (Results 1 – 25 of 64) sorted by relevance

123

/packages/modules/Wifi/framework/tests/src/android/net/wifi/
DWifiNetworkSpecifierTest.java118 WifiEnterpriseConfig enterpriseConfig = new WifiEnterpriseConfig(); in testWifiNetworkSpecifierBuilderForWpa2EapHiddenNetworkWithSsidAndBssid() local
119 enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TLS); in testWifiNetworkSpecifierBuilderForWpa2EapHiddenNetworkWithSsidAndBssid()
120 enterpriseConfig.setPhase2Method(WifiEnterpriseConfig.Phase2.GTC); in testWifiNetworkSpecifierBuilderForWpa2EapHiddenNetworkWithSsidAndBssid()
125 .setWpa2EnterpriseConfig(enterpriseConfig) in testWifiNetworkSpecifierBuilderForWpa2EapHiddenNetworkWithSsidAndBssid()
143 assertEquals(enterpriseConfig.getEapMethod(), in testWifiNetworkSpecifierBuilderForWpa2EapHiddenNetworkWithSsidAndBssid()
144 wifiNetworkSpecifier.wifiConfiguration.enterpriseConfig.getEapMethod()); in testWifiNetworkSpecifierBuilderForWpa2EapHiddenNetworkWithSsidAndBssid()
145 assertEquals(enterpriseConfig.getPhase2Method(), in testWifiNetworkSpecifierBuilderForWpa2EapHiddenNetworkWithSsidAndBssid()
146 wifiNetworkSpecifier.wifiConfiguration.enterpriseConfig.getPhase2Method()); in testWifiNetworkSpecifierBuilderForWpa2EapHiddenNetworkWithSsidAndBssid()
155 WifiEnterpriseConfig enterpriseConfig = new WifiEnterpriseConfig(); in testWifiNetworkSpecifierBuilderForWpa3EapNetwork() local
156 enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TLS); in testWifiNetworkSpecifierBuilderForWpa3EapNetwork()
[all …]
DWifiNetworkSuggestionTest.java289 WifiEnterpriseConfig enterpriseConfig = new WifiEnterpriseConfig(); in testWifiNetworkSuggestionBuilderForWpa3EapNetwork() local
290 enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TLS); in testWifiNetworkSuggestionBuilderForWpa3EapNetwork()
291 enterpriseConfig.setCaCertificate(FakeKeys.CA_CERT0); in testWifiNetworkSuggestionBuilderForWpa3EapNetwork()
292 enterpriseConfig.setDomainSuffixMatch(TEST_DOMAIN_SUFFIX_MATCH); in testWifiNetworkSuggestionBuilderForWpa3EapNetwork()
296 .setWpa3EnterpriseConfig(enterpriseConfig) in testWifiNetworkSuggestionBuilderForWpa3EapNetwork()
324 WifiEnterpriseConfig enterpriseConfig = new WifiEnterpriseConfig(); in testWifiNetworkSuggestionBuilderForWpa3EapNetworkWithStandardApi() local
325 enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TLS); in testWifiNetworkSuggestionBuilderForWpa3EapNetworkWithStandardApi()
326 enterpriseConfig.setCaCertificate(FakeKeys.CA_CERT0); in testWifiNetworkSuggestionBuilderForWpa3EapNetworkWithStandardApi()
327 enterpriseConfig.setDomainSuffixMatch(TEST_DOMAIN_SUFFIX_MATCH); in testWifiNetworkSuggestionBuilderForWpa3EapNetworkWithStandardApi()
331 .setWpa3EnterpriseStandardModeConfig(enterpriseConfig) in testWifiNetworkSuggestionBuilderForWpa3EapNetworkWithStandardApi()
[all …]
DWifiEnterpriseConfigTest.java381 WifiEnterpriseConfig enterpriseConfig = new WifiEnterpriseConfig(); in copyConstructor() local
382 enterpriseConfig.setPassword("*"); in copyConstructor()
383 enterpriseConfig.setEapMethod(Eap.TTLS); in copyConstructor()
384 enterpriseConfig.setPhase2Method(Phase2.GTC); in copyConstructor()
385 mEnterpriseConfig = new WifiEnterpriseConfig(enterpriseConfig); in copyConstructor()
397 WifiEnterpriseConfig enterpriseConfig = new WifiEnterpriseConfig(); in copyFromExternal() local
398 enterpriseConfig.setPassword("*"); in copyFromExternal()
399 enterpriseConfig.setEapMethod(Eap.TTLS); in copyFromExternal()
400 enterpriseConfig.setPhase2Method(Phase2.GTC); in copyFromExternal()
401 enterpriseConfig.setOcsp(WifiEnterpriseConfig.OCSP_REQUIRE_CERT_STATUS); in copyFromExternal()
[all …]
DWifiConfigurationTest.java347 config.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TLS); in testGetKeyIdForCredentials()
348 config.enterpriseConfig.setPhase2Method(WifiEnterpriseConfig.Phase2.NONE); in testGetKeyIdForCredentials()
354 config.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TTLS); in testGetKeyIdForCredentials()
355 config.enterpriseConfig.setPhase2Method(WifiEnterpriseConfig.Phase2.MSCHAPV2); in testGetKeyIdForCredentials()
362 config.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.PWD); in testGetKeyIdForCredentials()
363 config.enterpriseConfig.setPhase2Method(WifiEnterpriseConfig.Phase2.GTC); in testGetKeyIdForCredentials()
370 config.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.SIM); in testGetKeyIdForCredentials()
371 config.enterpriseConfig.setPhase2Method(WifiEnterpriseConfig.Phase2.NONE); in testGetKeyIdForCredentials()
408 config.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TLS); in testGetKeyIdForCredentialsForSuggestion()
409 config.enterpriseConfig.setPhase2Method(WifiEnterpriseConfig.Phase2.NONE); in testGetKeyIdForCredentialsForSuggestion()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiConfigurationUtilTest.java118 null, eapConfig.enterpriseConfig)); in testEnterpriseConfigAdded()
129 assertTrue(WifiConfigurationUtil.hasEnterpriseConfigChanged(eapConfig.enterpriseConfig, in testEnterpriseConfigEapChangeDetected()
130 peapConfig.enterpriseConfig)); in testEnterpriseConfigEapChangeDetected()
145 assertTrue(WifiConfigurationUtil.hasEnterpriseConfigChanged(eapConfig.enterpriseConfig, in testEnterpriseConfigPhase2ChangeDetected()
146 papConfig.enterpriseConfig)); in testEnterpriseConfigPhase2ChangeDetected()
164 eapConfigNoCerts.enterpriseConfig, eapConfig1Cert.enterpriseConfig)); in testCaCertificateAddedDetected()
182 assertTrue(WifiConfigurationUtil.hasEnterpriseConfigChanged(eapConfig.enterpriseConfig, in testDifferentCaCertificateDetected()
183 eapConfigNewCert.enterpriseConfig)); in testDifferentCaCertificateDetected()
201 assertTrue(WifiConfigurationUtil.hasEnterpriseConfigChanged(eapConfig.enterpriseConfig, in testCaCertificateChangesDetected()
202 eapConfigAddedCert.enterpriseConfig)); in testCaCertificateChangesDetected()
[all …]
DWifiConfigurationTestUtil.java177 config.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TTLS); in generateWifiConfig()
178 config.enterpriseConfig.setPhase2Method(WifiEnterpriseConfig.Phase2.MSCHAPV2); in generateWifiConfig()
179 config.enterpriseConfig.setIdentity(TEST_IDENTITY); in generateWifiConfig()
180 config.enterpriseConfig.setPassword(TEST_EAP_PASSWORD); in generateWifiConfig()
181 config.enterpriseConfig.setCaPath(TEST_CA_CERT_PATH); in generateWifiConfig()
182 config.enterpriseConfig.setDomainSuffixMatch(TEST_DOM_SUBJECT_MATCH); in generateWifiConfig()
187 config.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.PEAP); in generateWifiConfig()
188 config.enterpriseConfig.setPhase2Method(WifiEnterpriseConfig.Phase2.MSCHAPV2); in generateWifiConfig()
189 config.enterpriseConfig.setIdentity(TEST_IDENTITY); in generateWifiConfig()
190 config.enterpriseConfig.setPassword(TEST_EAP_PASSWORD); in generateWifiConfig()
[all …]
DInsecureEapNetworkHandlerTest.java717 config.enterpriseConfig.enableTrustOnFirstUse(true); in prepareWifiConfiguration()
719 config.enterpriseConfig.setCaPath(""); in prepareWifiConfiguration()
720 config.enterpriseConfig.setDomainSuffixMatch(""); in prepareWifiConfiguration()
721 config.enterpriseConfig.setIdentity(TEST_IDENTITY); in prepareWifiConfiguration()
722 config.enterpriseConfig.setPassword(TEST_PASSWORD); in prepareWifiConfiguration()
748 && (config.enterpriseConfig.getEapMethod() == WifiEnterpriseConfig.Eap.TTLS in setupTest()
749 || config.enterpriseConfig.getEapMethod() == WifiEnterpriseConfig.Eap.PEAP) in setupTest()
750 && config.enterpriseConfig.getPhase2Method() != WifiEnterpriseConfig.Phase2.NONE) { in setupTest()
752 assertEquals(TEST_IDENTITY, config.enterpriseConfig.getIdentity()); in setupTest()
753 assertTrue(TextUtils.isEmpty(config.enterpriseConfig.getAnonymousIdentity())); in setupTest()
[all …]
DWifiKeyStoreTest.java185 config.enterpriseConfig = mWifiEnterpriseConfig; in testAddKeysForAppInstalledCerts()
209 savedNetwork.enterpriseConfig = mWifiEnterpriseConfig; in testAddRemoveFromBothSavedAndSuggestionNetwork()
210 suggestionNetwork.enterpriseConfig = mWifiEnterpriseConfig; in testAddRemoveFromBothSavedAndSuggestionNetwork()
248 mWifiKeyStore.removeKeys(savedNetwork.enterpriseConfig, false); in test_remove_empty_alias_enterprise_config()
249 mWifiKeyStore.removeKeys(suggestionNetwork.enterpriseConfig, false); in test_remove_empty_alias_enterprise_config()
276 savedNetwork.enterpriseConfig = mWifiEnterpriseConfig; in testConfigureSuiteBRsa3072()
304 savedNetwork.enterpriseConfig = mWifiEnterpriseConfig; in testConfigureSuiteBEcdsa()
335 savedNetwork.enterpriseConfig = mWifiEnterpriseConfig; in testConfigureSuiteBRsa3072UserAndTofu()
363 savedNetwork.enterpriseConfig = mWifiEnterpriseConfig; in testConfigurationFailureSuiteB()
389 savedNetwork.enterpriseConfig = mWifiEnterpriseConfig; in testConfigurationFailureSuiteBNon3072Rsa()
[all …]
DWifiConfigManagerTest.java1964 network.enterpriseConfig = in testUpdateWifiEnterpriseConfig()
1969 network.enterpriseConfig.setCaPath(WifiConfigurationTestUtil.TEST_CA_CERT_PATH); in testUpdateWifiEnterpriseConfig()
1974 network.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TLS); in testUpdateWifiEnterpriseConfig()
1975 network.enterpriseConfig.setPhase2Method(WifiEnterpriseConfig.Phase2.NONE); in testUpdateWifiEnterpriseConfig()
1990 externalConfig.enterpriseConfig.setUserApproveNoCaCert(true); in testWifiEnterpriseConfigProtectedFields()
1991 externalConfig.enterpriseConfig.setTofuDialogState( in testWifiEnterpriseConfigProtectedFields()
1997 assertFalse(internalConfig.enterpriseConfig.isUserApproveNoCaCert()); in testWifiEnterpriseConfigProtectedFields()
2000 internalConfig.enterpriseConfig.getTofuDialogState()); in testWifiEnterpriseConfigProtectedFields()
2006 assertFalse(internalConfig.enterpriseConfig.isUserApproveNoCaCert()); in testWifiEnterpriseConfigProtectedFields()
2009 internalConfig.enterpriseConfig.getTofuDialogState()); in testWifiEnterpriseConfigProtectedFields()
[all …]
DSupplicantStaNetworkHalAidlImplTest.java253 config.enterpriseConfig = in testEapPeapGtcNetworkWifiConfigurationSaveLoad()
264 config.enterpriseConfig = in testEapTlsNoneNetworkWifiConfigurationSaveLoad()
275 config.enterpriseConfig = in testEapTlsNoneClientCertNetworkWifiConfigurationSaveLoad()
277 config.enterpriseConfig.setClientCertificateAlias("test_alias"); in testEapTlsNoneClientCertNetworkWifiConfigurationSaveLoad()
288 config.enterpriseConfig = in testEapTlsNoneClientCertNetworkWithOcspWifiConfigurationSaveLoad()
290 config.enterpriseConfig.setClientCertificateAlias("test_alias"); in testEapTlsNoneClientCertNetworkWithOcspWifiConfigurationSaveLoad()
291 config.enterpriseConfig.setOcsp(WifiEnterpriseConfig.OCSP_REQUIRE_CERT_STATUS); in testEapTlsNoneClientCertNetworkWithOcspWifiConfigurationSaveLoad()
301 config.enterpriseConfig = in testEapTlsAkaNetworkWifiConfigurationSaveLoad()
339 config.enterpriseConfig = in testTLSWifiEnterpriseConfigWithFilsEapErp()
342 config.enterpriseConfig.setFieldValue(WifiEnterpriseConfig.EAP_ERP, "1"); in testTLSWifiEnterpriseConfigWithFilsEapErp()
[all …]
/packages/modules/Wifi/framework/java/android/net/wifi/
DWifiNetworkSuggestion.java405 @NonNull WifiEnterpriseConfig enterpriseConfig) { in setWpa2EnterpriseConfig()
406 checkNotNull(enterpriseConfig); in setWpa2EnterpriseConfig()
407 if (enterpriseConfig.isEapMethodServerCertUsed() in setWpa2EnterpriseConfig()
408 && !enterpriseConfig.isMandatoryParameterSetForServerCertValidation()) { in setWpa2EnterpriseConfig()
412 mWpa2EnterpriseConfig = new WifiEnterpriseConfig(enterpriseConfig); in setWpa2EnterpriseConfig()
435 @NonNull WifiEnterpriseConfig enterpriseConfig) { in setWpa3EnterpriseConfig()
436 checkNotNull(enterpriseConfig); in setWpa3EnterpriseConfig()
437 if (enterpriseConfig.isEapMethodServerCertUsed() in setWpa3EnterpriseConfig()
438 && !enterpriseConfig.isMandatoryParameterSetForServerCertValidation()) { in setWpa3EnterpriseConfig()
442 mWpa3EnterpriseConfig = new WifiEnterpriseConfig(enterpriseConfig); in setWpa3EnterpriseConfig()
[all …]
DWifiNetworkSpecifier.java343 @NonNull WifiEnterpriseConfig enterpriseConfig) { in setWpa2EnterpriseConfig()
344 checkNotNull(enterpriseConfig); in setWpa2EnterpriseConfig()
345 mWpa2EnterpriseConfig = new WifiEnterpriseConfig(enterpriseConfig); in setWpa2EnterpriseConfig()
366 @NonNull WifiEnterpriseConfig enterpriseConfig) { in setWpa3EnterpriseConfig()
367 checkNotNull(enterpriseConfig); in setWpa3EnterpriseConfig()
368 mWpa3EnterpriseConfig = new WifiEnterpriseConfig(enterpriseConfig); in setWpa3EnterpriseConfig()
385 @NonNull WifiEnterpriseConfig enterpriseConfig) { in setWpa3EnterpriseStandardModeConfig()
386 checkNotNull(enterpriseConfig); in setWpa3EnterpriseStandardModeConfig()
387 mWpa3EnterpriseConfig = new WifiEnterpriseConfig(enterpriseConfig); in setWpa3EnterpriseStandardModeConfig()
408 @NonNull WifiEnterpriseConfig enterpriseConfig) { in setWpa3Enterprise192BitModeConfig()
[all …]
DWifiEnterpriseConfig.java588 WifiEnterpriseConfig enterpriseConfig = new WifiEnterpriseConfig();
589 enterpriseConfig.mFields = bundleToFieldMap(in.readBundle());
590 enterpriseConfig.mEapMethod = in.readInt();
591 enterpriseConfig.mPhase2Method = in.readInt();
597 enterpriseConfig.mCaCerts = null;
599 enterpriseConfig.mCaCerts = caCerts;
607 enterpriseConfig.mClientPrivateKey = null;
609 enterpriseConfig.mClientPrivateKey = privateKey;
618 enterpriseConfig.mClientCertificateChain = null;
620 enterpriseConfig.mClientCertificateChain = clientCertificateChain;
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiKeyStore.java268 Preconditions.checkNotNull(config.enterpriseConfig); in updateNetworkKeys()
269 WifiEnterpriseConfig enterpriseConfig = config.enterpriseConfig; in updateNetworkKeys() local
278 Preconditions.checkNotNull(existingConfig.enterpriseConfig); in updateNetworkKeys()
279 existingEnterpriseConfig = existingConfig.enterpriseConfig; in updateNetworkKeys()
286 final String keyChainAlias = enterpriseConfig.getClientKeyPairAliasInternal(); in updateNetworkKeys()
295 enterpriseConfig.setClientCertificateAlias(grantString); in updateNetworkKeys()
299 if (!needsKeyStore(enterpriseConfig)) { in updateNetworkKeys()
304 if (!installKeys(existingEnterpriseConfig, enterpriseConfig, existingKeyId, keyId)) { in updateNetworkKeys()
317 String[] caAliases = config.enterpriseConfig.getCaCertificateAliases(); in updateNetworkKeys()
321 if (!config.enterpriseConfig.isTrustOnFirstUseEnabled()) { in updateNetworkKeys()
[all …]
DNetworkListStoreData.java178 if (config.enterpriseConfig != null in serializeNetwork()
179 && config.enterpriseConfig.getEapMethod() != WifiEnterpriseConfig.Eap.NONE) { in serializeNetwork()
182 WifiEnterpriseConfigXmlUtil.writeToXml(out, config.enterpriseConfig, encryptionUtil); in serializeNetwork()
239 WifiEnterpriseConfig enterpriseConfig = null; in parseNetwork() local
268 if (enterpriseConfig != null) { in parseNetwork()
272 enterpriseConfig = in parseNetwork()
323 if (enterpriseConfig != null) { in parseNetwork()
324 configuration.enterpriseConfig = enterpriseConfig; in parseNetwork()
DNetworkSuggestionStoreData.java226 if (suggestion.wifiConfiguration.enterpriseConfig != null in serializeNetworkSuggestion()
227 && suggestion.wifiConfiguration.enterpriseConfig.getEapMethod() in serializeNetworkSuggestion()
232 out, suggestion.wifiConfiguration.enterpriseConfig, encryptionUtil); in serializeNetworkSuggestion()
374 WifiEnterpriseConfig enterpriseConfig = null; in parseNetworkSuggestion() local
444 if (enterpriseConfig != null) { in parseNetworkSuggestion()
448 enterpriseConfig = XmlUtil.WifiEnterpriseConfigXmlUtil.parseFromXml( in parseNetworkSuggestion()
479 if (enterpriseConfig != null) { in parseNetworkSuggestion()
480 wifiConfiguration.enterpriseConfig = enterpriseConfig; in parseNetworkSuggestion()
DWifiConfigManager.java701 if (configuration.enterpriseConfig != null && !TextUtils.isEmpty( in maskPasswordsInWifiConfiguration()
702 configuration.enterpriseConfig.getPassword())) { in maskPasswordsInWifiConfiguration()
703 configuration.enterpriseConfig.setPassword(PASSWORD_MASK); in maskPasswordsInWifiConfiguration()
1048 if (config.enterpriseConfig != null in canModifyNetwork()
1050 && config.enterpriseConfig.isAuthenticationSimBased()) { in canModifyNetwork()
1150 int internalTofuState = internalConfig.enterpriseConfig.getTofuConnectionState(); in mergeTofuConnectionState()
1156 return externalConfig.enterpriseConfig.isTrustOnFirstUseEnabled() in mergeTofuConnectionState()
1256 if (externalConfig.enterpriseConfig != null) { in mergeWithInternalWifiConfiguration()
1258 internalConfig.enterpriseConfig.isUserApproveNoCaCert(); in mergeWithInternalWifiConfiguration()
1259 int tofuDialogStateInternal = internalConfig.enterpriseConfig.getTofuDialogState(); in mergeWithInternalWifiConfiguration()
[all …]
DWifiPseudonymManager.java206 if (wifiConfiguration.enterpriseConfig == null in retrievePseudonymOnFailureTimeoutExpired()
207 || !wifiConfiguration.enterpriseConfig.isAuthenticationSimBased()) { in retrievePseudonymOnFailureTimeoutExpired()
253 if (wifiConfiguration.enterpriseConfig == null in updateWifiConfiguration()
254 || !wifiConfiguration.enterpriseConfig.isAuthenticationSimBased()) { in updateWifiConfiguration()
274 String existingIdentity = wifiConfiguration.enterpriseConfig.getAnonymousIdentity(); in updateWifiConfiguration()
279 wifiConfiguration.enterpriseConfig.setAnonymousIdentity(expectedIdentity); in updateWifiConfiguration()
298 if (wifiConfiguration.enterpriseConfig == null) { in enableStrictConservativePeerModeIfSupported()
301 if (wifiConfiguration.enterpriseConfig.isAuthenticationSimBased() in enableStrictConservativePeerModeIfSupported()
304 wifiConfiguration.enterpriseConfig.setStrictConservativePeerMode(true); in enableStrictConservativePeerModeIfSupported()
DInsecureEapNetworkHandler.java189 WifiEnterpriseConfig entConfig = config.enterpriseConfig; in prepareConnection()
218 if (config.enterpriseConfig.getEapMethod() == WifiEnterpriseConfig.Eap.TTLS in prepareConnection()
219 || config.enterpriseConfig.getEapMethod() == WifiEnterpriseConfig.Eap.PEAP) { in prepareConnection()
220 config.enterpriseConfig.setPhase2Method(WifiEnterpriseConfig.Phase2.NONE); in prepareConnection()
221 config.enterpriseConfig.setIdentity(null); in prepareConnection()
222 if (TextUtils.isEmpty(config.enterpriseConfig.getAnonymousIdentity())) { in prepareConnection()
227 config.enterpriseConfig.setAnonymousIdentity(TOFU_ANONYMOUS_IDENTITY); in prepareConnection()
229 config.enterpriseConfig.setPassword(null); in prepareConnection()
233 config.enterpriseConfig.setCaPath(WifiConfigurationUtil.getSystemTrustStorePath()); in prepareConnection()
290 && !mCurrentTofuConfig.enterpriseConfig.isTrustOnFirstUseEnabled()) { in addPendingCertificate()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/util/
DXmlUtil.java1608 public static void writeToXml(XmlSerializer out, WifiEnterpriseConfig enterpriseConfig, in writeToXml() argument
1612 enterpriseConfig.getFieldValue(WifiEnterpriseConfig.IDENTITY_KEY)); in writeToXml()
1614 enterpriseConfig.getFieldValue(WifiEnterpriseConfig.ANON_IDENTITY_KEY)); in writeToXml()
1616 out, enterpriseConfig.getFieldValue(WifiEnterpriseConfig.PASSWORD_KEY), in writeToXml()
1619 enterpriseConfig.getFieldValue(WifiEnterpriseConfig.CLIENT_CERT_KEY)); in writeToXml()
1621 enterpriseConfig.getFieldValue(WifiEnterpriseConfig.CA_CERT_KEY)); in writeToXml()
1623 enterpriseConfig.getFieldValue(WifiEnterpriseConfig.SUBJECT_MATCH_KEY)); in writeToXml()
1625 enterpriseConfig.getFieldValue(WifiEnterpriseConfig.ENGINE_KEY)); in writeToXml()
1627 enterpriseConfig.getFieldValue(WifiEnterpriseConfig.ENGINE_ID_KEY)); in writeToXml()
1629 enterpriseConfig.getFieldValue(WifiEnterpriseConfig.PRIVATE_KEY_ID_KEY)); in writeToXml()
[all …]
/packages/apps/Settings/src/com/android/settings/wifi/
DWifiConfigController2.java695 config.enterpriseConfig = new WifiEnterpriseConfig(); in getConfig()
698 config.enterpriseConfig.setEapMethod(eapMethod); in getConfig()
706 config.enterpriseConfig.setPhase2Method(Phase2.MSCHAPV2); in getConfig()
709 config.enterpriseConfig.setPhase2Method(Phase2.GTC); in getConfig()
712 config.enterpriseConfig.setPhase2Method(Phase2.SIM); in getConfig()
715 config.enterpriseConfig.setPhase2Method(Phase2.AKA); in getConfig()
718 config.enterpriseConfig.setPhase2Method(Phase2.AKA_PRIME); in getConfig()
729 config.enterpriseConfig.setPhase2Method(Phase2.PAP); in getConfig()
732 config.enterpriseConfig.setPhase2Method(Phase2.MSCHAP); in getConfig()
735 config.enterpriseConfig.setPhase2Method(Phase2.MSCHAPV2); in getConfig()
[all …]
DWifiConfigController.java689 config.enterpriseConfig = new WifiEnterpriseConfig(); in getConfig()
692 config.enterpriseConfig.setEapMethod(eapMethod); in getConfig()
700 config.enterpriseConfig.setPhase2Method(Phase2.MSCHAPV2); in getConfig()
703 config.enterpriseConfig.setPhase2Method(Phase2.GTC); in getConfig()
706 config.enterpriseConfig.setPhase2Method(Phase2.SIM); in getConfig()
709 config.enterpriseConfig.setPhase2Method(Phase2.AKA); in getConfig()
712 config.enterpriseConfig.setPhase2Method(Phase2.AKA_PRIME); in getConfig()
723 config.enterpriseConfig.setPhase2Method(Phase2.PAP); in getConfig()
726 config.enterpriseConfig.setPhase2Method(Phase2.MSCHAP); in getConfig()
729 config.enterpriseConfig.setPhase2Method(Phase2.MSCHAPV2); in getConfig()
[all …]
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/wifi/
DWifiConfigurationProviderTest.java405 assertNotEquals(null, wifiConf.enterpriseConfig); in assertEnterpriseConfigBase()
406 assertEquals(password, wifiConf.enterpriseConfig.getPassword()); in assertEnterpriseConfigBase()
407 assertEquals(identity, wifiConf.enterpriseConfig.getIdentity()); in assertEnterpriseConfigBase()
408 assertEquals(anonymousIdentity, wifiConf.enterpriseConfig.getAnonymousIdentity()); in assertEnterpriseConfigBase()
409 assertEquals(domain, wifiConf.enterpriseConfig.getDomainSuffixMatch()); in assertEnterpriseConfigBase()
417 .encodeToString(wifiConf.enterpriseConfig.getCaCertificate().getEncoded())); in assertCertificateInformation()
419 wifiConf.enterpriseConfig.getClientCertificateChain())); in assertCertificateInformation()
421 .encodeToString(wifiConf.enterpriseConfig.getClientPrivateKey().getEncoded())); in assertCertificateInformation()
433 assertEquals(null, wifiConf.enterpriseConfig.getCaCertificate()); in assertEmptyCertificates()
434 assertEquals(null, wifiConf.enterpriseConfig.getClientPrivateKey()); in assertEmptyCertificates()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/
DPasspointProvider.java591 WifiEnterpriseConfig enterpriseConfig = new WifiEnterpriseConfig(); in getWifiConfig() local
592 enterpriseConfig.setRealm(mConfig.getCredential().getRealm()); in getWifiConfig()
593 enterpriseConfig.setDomainSuffixMatch(mConfig.getHomeSp().getFqdn()); in getWifiConfig()
594 enterpriseConfig.setMinimumTlsVersion(mConfig.getCredential().getMinimumTlsVersion()); in getWifiConfig()
596 buildEnterpriseConfigForUserCredential(enterpriseConfig, in getWifiConfig()
598 setAnonymousIdentityToNaiRealm(enterpriseConfig, mConfig.getCredential().getRealm()); in getWifiConfig()
600 buildEnterpriseConfigForCertCredential(enterpriseConfig); in getWifiConfig()
601 setAnonymousIdentityToNaiRealm(enterpriseConfig, mConfig.getCredential().getRealm()); in getWifiConfig()
603 buildEnterpriseConfigForSimCredential(enterpriseConfig, in getWifiConfig()
605 enterpriseConfig.setAnonymousIdentity(mAnonymousIdentity); in getWifiConfig()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/
DWifiConfigController2Test.java643 assertThat(wifiConfiguration.enterpriseConfig.getEapMethod()).isEqualTo(Eap.PEAP); in selectEapMethod_savedWifiEntry_shouldGetCorrectPosition()
644 assertThat(wifiConfiguration.enterpriseConfig.getPhase2Method()).isEqualTo( in selectEapMethod_savedWifiEntry_shouldGetCorrectPosition()
652 assertThat(wifiConfiguration.enterpriseConfig.getEapMethod()).isEqualTo(Eap.TTLS); in selectEapMethod_savedWifiEntry_shouldGetCorrectPosition()
653 assertThat(wifiConfiguration.enterpriseConfig.getPhase2Method()).isEqualTo( in selectEapMethod_savedWifiEntry_shouldGetCorrectPosition()
738 assertThat(wifiConfiguration.enterpriseConfig.getPhase2Method()).isEqualTo(Phase2.GTC); in getEapConfig_withPhase2Gtc_shouldContainGtcMethod()
756 assertThat(wifiConfiguration.enterpriseConfig.getPhase2Method()).isEqualTo(Phase2.SIM); in getEapConfig_withPhase2Sim_shouldContainSimMethod()
774 assertThat(wifiConfiguration.enterpriseConfig.getPhase2Method()).isEqualTo(Phase2.AKA); in getEapConfig_withPhase2Aka_shouldContainAkaMethod()
792 assertThat(wifiConfiguration.enterpriseConfig.getPhase2Method()).isEqualTo( in getEapConfig_withPhase2AkaPrime_shouldContainAkaPrimeMethod()
811 assertThat(wifiConfiguration.enterpriseConfig.getPhase2Method()).isEqualTo(Phase2.NONE); in getEapConfig_withPeapPhase2Unknown_shouldContainNoneMethod()
829 assertThat(wifiConfiguration.enterpriseConfig.getPhase2Method()).isEqualTo(Phase2.PAP); in getEapConfig_withTTLSPhase2Pap_shouldContainPapMethod()
[all …]

123