Home
last modified time | relevance | path

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

12

/frameworks/base/packages/Osu/src/com/android/configparse/
DConfigBuilder.java66 WifiEnterpriseConfig enterpriseConfig = config.enterpriseConfig; in buildConfig() local
68 enterpriseConfig.setCaCertificate(caCert); in buildConfig()
69 enterpriseConfig.setAnonymousIdentity("anonymous@" + credential.getRealm()); in buildConfig()
116 WifiEnterpriseConfig enterpriseConfig = config.enterpriseConfig; in buildTTLSConfig() local
117 enterpriseConfig.setPhase2Method(remapInnerMethod(ttlsParam.getType())); in buildTTLSConfig()
118 enterpriseConfig.setIdentity(credential.getUserName()); in buildTTLSConfig()
119 enterpriseConfig.setPassword(credential.getPassword()); in buildTTLSConfig()
158 WifiEnterpriseConfig enterpriseConfig = config.enterpriseConfig; in buildTLSConfig() local
159 enterpriseConfig.setClientCertificateAlias(alias); in buildTLSConfig()
160 enterpriseConfig.setClientKeyEntry(clientKey, clientCertificate); in buildTLSConfig()
[all …]
/frameworks/base/wifi/tests/src/android/net/wifi/
DWifiEnterpriseConfigTest.java326 WifiEnterpriseConfig enterpriseConfig = new WifiEnterpriseConfig(); in copyConstructor() local
327 enterpriseConfig.setPassword("*"); in copyConstructor()
328 enterpriseConfig.setEapMethod(Eap.TTLS); in copyConstructor()
329 enterpriseConfig.setPhase2Method(Phase2.GTC); in copyConstructor()
330 mEnterpriseConfig = new WifiEnterpriseConfig(enterpriseConfig); in copyConstructor()
342 WifiEnterpriseConfig enterpriseConfig = new WifiEnterpriseConfig(); in copyFromExternal() local
343 enterpriseConfig.setPassword("*"); in copyFromExternal()
344 enterpriseConfig.setEapMethod(Eap.TTLS); in copyFromExternal()
345 enterpriseConfig.setPhase2Method(Phase2.GTC); in copyFromExternal()
347 mEnterpriseConfig.copyFromExternal(enterpriseConfig, "*"); in copyFromExternal()
[all …]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DXmlUtil.java990 public static void writeToXml(XmlSerializer out, WifiEnterpriseConfig enterpriseConfig) in writeToXml() argument
993 enterpriseConfig.getFieldValue(WifiEnterpriseConfig.IDENTITY_KEY)); in writeToXml()
995 enterpriseConfig.getFieldValue(WifiEnterpriseConfig.ANON_IDENTITY_KEY)); in writeToXml()
997 enterpriseConfig.getFieldValue(WifiEnterpriseConfig.PASSWORD_KEY)); in writeToXml()
999 enterpriseConfig.getFieldValue(WifiEnterpriseConfig.CLIENT_CERT_KEY)); in writeToXml()
1001 enterpriseConfig.getFieldValue(WifiEnterpriseConfig.CA_CERT_KEY)); in writeToXml()
1003 enterpriseConfig.getFieldValue(WifiEnterpriseConfig.SUBJECT_MATCH_KEY)); in writeToXml()
1005 enterpriseConfig.getFieldValue(WifiEnterpriseConfig.ENGINE_KEY)); in writeToXml()
1007 enterpriseConfig.getFieldValue(WifiEnterpriseConfig.ENGINE_ID_KEY)); in writeToXml()
1009 enterpriseConfig.getFieldValue(WifiEnterpriseConfig.PRIVATE_KEY_ID_KEY)); in writeToXml()
[all …]
DTelephonyUtil.java106 if (config == null || config.enterpriseConfig == null) { in getSimMethodForConfig()
109 int eapMethod = config.enterpriseConfig.getEapMethod(); in getSimMethodForConfig()
112 switch (config.enterpriseConfig.getPhase2Method()) { in getSimMethodForConfig()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiConfigurationUtilTest.java85 null, eapConfig.enterpriseConfig)); in testEnterpriseConfigAdded()
96 assertTrue(WifiConfigurationUtil.hasEnterpriseConfigChanged(eapConfig.enterpriseConfig, in testEnterpriseConfigEapChangeDetected()
97 peapConfig.enterpriseConfig)); in testEnterpriseConfigEapChangeDetected()
112 assertTrue(WifiConfigurationUtil.hasEnterpriseConfigChanged(eapConfig.enterpriseConfig, in testEnterpriseConfigPhase2ChangeDetected()
113 papConfig.enterpriseConfig)); in testEnterpriseConfigPhase2ChangeDetected()
131 eapConfigNoCerts.enterpriseConfig, eapConfig1Cert.enterpriseConfig)); in testCaCertificateAddedDetected()
149 assertTrue(WifiConfigurationUtil.hasEnterpriseConfigChanged(eapConfig.enterpriseConfig, in testDifferentCaCertificateDetected()
150 eapConfigNewCert.enterpriseConfig)); in testDifferentCaCertificateDetected()
168 assertTrue(WifiConfigurationUtil.hasEnterpriseConfigChanged(eapConfig.enterpriseConfig, in testCaCertificateChangesDetected()
169 eapConfigAddedCert.enterpriseConfig)); in testCaCertificateChangesDetected()
[all …]
DWifiConfigurationTestUtil.java144 config.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TTLS); in generateWifiConfig()
316 configuration.enterpriseConfig.setEapMethod(eapMethod); in createEapNetwork()
317 configuration.enterpriseConfig.setPhase2Method(phase2Method); in createEapNetwork()
514 expected.enterpriseConfig, actual.enterpriseConfig); in assertConfigurationEqualForConfigStore()
539 expected.enterpriseConfig, actual.enterpriseConfig); in assertConfigurationEqualForConfigManagerAddOrUpdate()
564 expected.enterpriseConfig, actual.enterpriseConfig); in assertConfigurationEqualForSupplicant()
DWifiConfigManagerTest.java946 network.enterpriseConfig = in testUpdateWifiEnterpriseConfig()
955 network.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TLS); in testUpdateWifiEnterpriseConfig()
956 network.enterpriseConfig.setPhase2Method(WifiEnterpriseConfig.Phase2.NONE); in testUpdateWifiEnterpriseConfig()
983 network.enterpriseConfig = null; in testUpdateSingleNetworkWithNullValues()
1029 network.enterpriseConfig = in testUpdateSingleNetworkFailureDoesNotModifyOriginal()
1037 network.enterpriseConfig = in testUpdateSingleNetworkFailureDoesNotModifyOriginal()
1390 eapNetwork.enterpriseConfig = in testUpdateEnterpriseConfigClearsHasEverConnected()
1395 assertFalse(eapNetwork.enterpriseConfig.getEapMethod() == WifiEnterpriseConfig.Eap.TLS); in testUpdateEnterpriseConfigClearsHasEverConnected()
1396 eapNetwork.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TLS); in testUpdateEnterpriseConfigClearsHasEverConnected()
1409 someRandomNetworkWithAllMaskedFields.enterpriseConfig.setPassword( in testUpdateIgnoresMaskedPasswords()
[all …]
DSupplicantStaNetworkHalTest.java164 config.enterpriseConfig = in testEapPeapGtcNetworkWifiConfigurationSaveLoad()
175 config.enterpriseConfig = in testEapTlsNoneNetworkWifiConfigurationSaveLoad()
186 config.enterpriseConfig = in testEapTlsNoneClientCertNetworkWifiConfigurationSaveLoad()
188 config.enterpriseConfig.setClientCertificateAlias("test_alias"); in testEapTlsNoneClientCertNetworkWifiConfigurationSaveLoad()
198 config.enterpriseConfig = in testEapTlsAkaNetworkWifiConfigurationSaveLoad()
353 config.enterpriseConfig = in testInvalidEapMethodLoadFailure()
371 config.enterpriseConfig = in testInvalidEapPhase2MethodLoadFailure()
781 config.enterpriseConfig.getFieldValue(WifiEnterpriseConfig.OPP_KEY_CACHING); in testWifiConfigurationSaveLoad()
807 config.enterpriseConfig.setAnonymousIdentity(ANONYMOUS_IDENTITY); in testFetchEapAnonymousIdentity()
DNetworkListStoreDataTest.java455 eapNetwork.enterpriseConfig.getEapMethod()), in parseNetworkListWithOneNetworkIllegalArgException()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DNetworkListStoreData.java189 if (config.enterpriseConfig != null in serializeNetwork()
190 && config.enterpriseConfig.getEapMethod() != WifiEnterpriseConfig.Eap.NONE) { in serializeNetwork()
193 WifiEnterpriseConfigXmlUtil.writeToXml(out, config.enterpriseConfig); in serializeNetwork()
241 WifiEnterpriseConfig enterpriseConfig = null; in parseNetwork() local
268 if (enterpriseConfig != null) { in parseNetwork()
272 enterpriseConfig = in parseNetwork()
307 if (enterpriseConfig != null) { in parseNetwork()
308 configuration.enterpriseConfig = enterpriseConfig; in parseNetwork()
DWifiKeyStore.java252 WifiEnterpriseConfig enterpriseConfig = config.enterpriseConfig; in updateNetworkKeys() local
253 if (needsKeyStore(enterpriseConfig)) { in updateNetworkKeys()
261 ? existingConfig.enterpriseConfig : null, enterpriseConfig, keyId)) { in updateNetworkKeys()
DWifiConfigManager.java427 if (!TextUtils.isEmpty(configuration.enterpriseConfig.getPassword())) { in maskPasswordsInWifiConfiguration()
428 configuration.enterpriseConfig.setPassword(PASSWORD_MASK); in maskPasswordsInWifiConfiguration()
669 if (config.enterpriseConfig != null in canModifyNetwork()
671 && TelephonyUtil.isSimEapMethod(config.enterpriseConfig.getEapMethod())) { in canModifyNetwork()
839 if (externalConfig.enterpriseConfig != null) { in mergeWithInternalWifiConfiguration()
840 internalConfig.enterpriseConfig.copyFromExternal( in mergeWithInternalWifiConfiguration()
841 externalConfig.enterpriseConfig, PASSWORD_MASK); in mergeWithInternalWifiConfiguration()
1004 if (config.enterpriseConfig != null in addOrUpdateNetworkInternal()
1005 && config.enterpriseConfig.getEapMethod() != WifiEnterpriseConfig.Eap.NONE in addOrUpdateNetworkInternal()
1117 if (!config.isPasspoint() && config.enterpriseConfig != null in removeNetworkInternal()
[all …]
DWifiConfigurationUtil.java257 if (hasEnterpriseConfigChanged(existingConfig.enterpriseConfig, in hasCredentialChanged()
258 newConfig.enterpriseConfig)) { in hasCredentialChanged()
DSupplicantStaNetworkHal.java244 return loadWifiEnterpriseConfig(config.SSID, config.enterpriseConfig); in loadWifiConfiguration()
375 if (config.enterpriseConfig != null in saveWifiConfiguration()
376 && config.enterpriseConfig.getEapMethod() != WifiEnterpriseConfig.Eap.NONE) { in saveWifiConfiguration()
377 if (!saveWifiEnterpriseConfig(config.SSID, config.enterpriseConfig)) { in saveWifiConfiguration()
DWifiServiceImpl.java1628 config.enterpriseConfig.getCaCertificate()); in addOrUpdateNetwork()
1630 config.enterpriseConfig.getClientCertificateChain()); in addOrUpdateNetwork()
1632 config.enterpriseConfig.getClientPrivateKey()); in addOrUpdateNetwork()
DWifiStateMachine.java5424 if (config.enterpriseConfig != null in processMessage()
5426 config.enterpriseConfig.getEapMethod())) { in processMessage()
5429 config.enterpriseConfig.setAnonymousIdentity(anonymousIdentity); in processMessage()
5433 config.enterpriseConfig.setAnonymousIdentity(null); in processMessage()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DPasspointProvider.java299 WifiEnterpriseConfig enterpriseConfig = new WifiEnterpriseConfig(); in getWifiConfig() local
300 enterpriseConfig.setRealm(mConfig.getCredential().getRealm()); in getWifiConfig()
301 enterpriseConfig.setDomainSuffixMatch(mConfig.getHomeSp().getFqdn()); in getWifiConfig()
303 buildEnterpriseConfigForUserCredential(enterpriseConfig, in getWifiConfig()
305 setAnonymousIdentityToNaiRealm(enterpriseConfig, mConfig.getCredential().getRealm()); in getWifiConfig()
307 buildEnterpriseConfigForCertCredential(enterpriseConfig); in getWifiConfig()
308 setAnonymousIdentityToNaiRealm(enterpriseConfig, mConfig.getCredential().getRealm()); in getWifiConfig()
310 buildEnterpriseConfigForSimCredential(enterpriseConfig, in getWifiConfig()
313 wifiConfig.enterpriseConfig = enterpriseConfig; in getWifiConfig()
351 credential.setRealm(wifiConfig.enterpriseConfig.getRealm()); in convertFromWifiConfig()
[all …]
DPasspointManager.java608 WifiEnterpriseConfig enterpriseConfig = wifiConfig.enterpriseConfig; in addWifiConfig() local
609 String caCertificateAliasSuffix = enterpriseConfig.getCaCertificateAlias(); in addWifiConfig()
610 String clientCertAndKeyAliasSuffix = enterpriseConfig.getClientCertificateAlias(); in addWifiConfig()
631 enterpriseConfig.getCaCertificateAlias(), in addWifiConfig()
632 enterpriseConfig.getClientCertificateAlias(), in addWifiConfig()
633 enterpriseConfig.getClientCertificateAlias(), false); in addWifiConfig()
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/
DWifiConfigurationHelper.java134 config.enterpriseConfig.setPassword(password); in createEapConfig()
135 config.enterpriseConfig.setEapMethod(eapMethod); in createEapConfig()
136 config.enterpriseConfig.setPhase2Method(phase2); in createEapConfig()
137 config.enterpriseConfig.setIdentity(identity); in createEapConfig()
138 config.enterpriseConfig.setAnonymousIdentity(anonymousIdentity); in createEapConfig()
139 config.enterpriseConfig.setCaCertificateAlias(caCert); in createEapConfig()
140 config.enterpriseConfig.setClientCertificateAlias(clientCert); in createEapConfig()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/
DPasspointManagerTest.java1017 wifiConfig.enterpriseConfig.setIdentity(username); in addLegacyPasspointConfigWithUserCredential()
1018 wifiConfig.enterpriseConfig.setPassword(password); in addLegacyPasspointConfigWithUserCredential()
1019 wifiConfig.enterpriseConfig.setRealm(realm); in addLegacyPasspointConfigWithUserCredential()
1020 wifiConfig.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TTLS); in addLegacyPasspointConfigWithUserCredential()
1021 wifiConfig.enterpriseConfig.setPhase2Method(WifiEnterpriseConfig.Phase2.PAP); in addLegacyPasspointConfigWithUserCredential()
1022 wifiConfig.enterpriseConfig.setCaCertificateAlias(caCertificateAlias); in addLegacyPasspointConfigWithUserCredential()
1069 wifiConfig.enterpriseConfig.setIdentity(username); in addLegacyPasspointConfigWithUserCredentialWithoutCaCert()
1070 wifiConfig.enterpriseConfig.setPassword(password); in addLegacyPasspointConfigWithUserCredentialWithoutCaCert()
1071 wifiConfig.enterpriseConfig.setRealm(realm); in addLegacyPasspointConfigWithUserCredentialWithoutCaCert()
1072 wifiConfig.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TTLS); in addLegacyPasspointConfigWithUserCredentialWithoutCaCert()
[all …]
DPasspointProviderTest.java647 WifiEnterpriseConfig wifiEnterpriseConfig = wifiConfig.enterpriseConfig; in getWifiConfigWithUserCredential()
709 WifiEnterpriseConfig wifiEnterpriseConfig = wifiConfig.enterpriseConfig; in getWifiConfigWithCertCredential()
758 WifiEnterpriseConfig wifiEnterpriseConfig = wifiConfig.enterpriseConfig; in getWifiConfigWithSimCredential()
794 wifiConfig.enterpriseConfig.setIdentity(username); in convertFromWifiConfigWithUserCredential()
795 wifiConfig.enterpriseConfig.setPassword(password); in convertFromWifiConfigWithUserCredential()
796 wifiConfig.enterpriseConfig.setRealm(realm); in convertFromWifiConfigWithUserCredential()
797 wifiConfig.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TTLS); in convertFromWifiConfigWithUserCredential()
798 wifiConfig.enterpriseConfig.setPhase2Method(WifiEnterpriseConfig.Phase2.PAP); in convertFromWifiConfigWithUserCredential()
840 wifiConfig.enterpriseConfig.setRealm(realm); in convertFromWifiConfigWithSimCredential()
841 wifiConfig.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.SIM); in convertFromWifiConfigWithSimCredential()
[all …]
/frameworks/base/wifi/java/android/net/wifi/
DWifiEnterpriseConfig.java239 WifiEnterpriseConfig enterpriseConfig = new WifiEnterpriseConfig();
244 enterpriseConfig.mFields.put(key, value);
247 enterpriseConfig.mEapMethod = in.readInt();
248 enterpriseConfig.mPhase2Method = in.readInt();
249 enterpriseConfig.mCaCerts = ParcelUtil.readCertificates(in);
250 enterpriseConfig.mClientPrivateKey = ParcelUtil.readPrivateKey(in);
251 enterpriseConfig.mClientCertificateChain = ParcelUtil.readCertificates(in);
252 return enterpriseConfig;
DWifiConfiguration.java371 public WifiEnterpriseConfig enterpriseConfig; field in WifiConfiguration
1524 enterpriseConfig = new WifiEnterpriseConfig(); in WifiConfiguration()
1545 && enterpriseConfig != null in isPasspoint()
1546 && enterpriseConfig.getEapMethod() != WifiEnterpriseConfig.Eap.NONE; in isPasspoint()
1572 && enterpriseConfig != null in isEnterprise()
1573 && enterpriseConfig.getEapMethod() != WifiEnterpriseConfig.Eap.NONE; in isEnterprise()
1704 sbuf.append(enterpriseConfig); in toString()
1843 trimStringForKeyId(enterpriseConfig.getKeyId(current != null ? in getKeyIdForCredentials()
1844 current.enterpriseConfig : null)); in getKeyIdForCredentials()
2073 enterpriseConfig = new WifiEnterpriseConfig(source.enterpriseConfig); in WifiConfiguration()
[all …]
/frameworks/base/packages/Osu/src/com/android/hotspot2/flow/
DPlatformAdapter.java248 config.enterpriseConfig = new WifiEnterpriseConfig(); in connect()
249 config.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.UNAUTH_TLS); in connect()
250 config.enterpriseConfig.setIdentity(osuInfo.getOSUProvider().getOsuNai()); in connect()
252 config.enterpriseConfig.setCaCertificates(cas.toArray(new X509Certificate[cas.size()])); in connect()
486 WifiEnterpriseConfig enterpriseConfig = config.enterpriseConfig; in updateNetwork() local
488 caCert != null ? caCert : enterpriseConfig.getCaCertificate(), in updateNetwork()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
DXmlUtilTest.java425 config.enterpriseConfig.setPlmn("1234"); in testLegacyPasspointConfigSerializeDeserialize()
426 config.enterpriseConfig.setRealm("test.com"); in testLegacyPasspointConfigSerializeDeserialize()
486 configuration.enterpriseConfig = new WifiEnterpriseConfig(); in serializeDeserializeWifiConfigurationForConfigStore()

12