Home
last modified time | relevance | path

Searched refs:enterpriseConfig (Results 1 – 25 of 31) 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/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiConfigurationUtilTest.java84 null, eapConfig.enterpriseConfig)); in testEnterpriseConfigAdded()
95 assertTrue(WifiConfigurationUtil.hasEnterpriseConfigChanged(eapConfig.enterpriseConfig, in testEnterpriseConfigEapChangeDetected()
96 peapConfig.enterpriseConfig)); in testEnterpriseConfigEapChangeDetected()
111 assertTrue(WifiConfigurationUtil.hasEnterpriseConfigChanged(eapConfig.enterpriseConfig, in testEnterpriseConfigPhase2ChangeDetected()
112 papConfig.enterpriseConfig)); in testEnterpriseConfigPhase2ChangeDetected()
130 eapConfigNoCerts.enterpriseConfig, eapConfig1Cert.enterpriseConfig)); in testCaCertificateAddedDetected()
148 assertTrue(WifiConfigurationUtil.hasEnterpriseConfigChanged(eapConfig.enterpriseConfig, in testDifferentCaCertificateDetected()
149 eapConfigNewCert.enterpriseConfig)); in testDifferentCaCertificateDetected()
167 assertTrue(WifiConfigurationUtil.hasEnterpriseConfigChanged(eapConfig.enterpriseConfig, in testCaCertificateChangesDetected()
168 eapConfigAddedCert.enterpriseConfig)); in testCaCertificateChangesDetected()
[all …]
DWifiConfigStoreLegacyTest.java92 eapNetwork.enterpriseConfig.setPassword("EapPassword"); in testLoadFromStores()
105 passpointNetwork.enterpriseConfig.setPassword("PaspointPassword"); in testLoadFromStores()
149 passpointNetwork.enterpriseConfig.setRealm(realm); in testLoadFromStores()
150 passpointNetwork.enterpriseConfig.setPlmn(imsi); in testLoadFromStores()
220 if (!TextUtils.isEmpty(config.enterpriseConfig.getPassword())) { in createEapPasswordMap()
221 eapPasswordMap.put(config.configKey(), config.enterpriseConfig.getPassword()); in createEapPasswordMap()
262 if (!TextUtils.isEmpty(configuration.enterpriseConfig.getPassword())) { in createMaskedWifiConfiguration()
263 newConfig.enterpriseConfig.setPassword(MASKED_FIELD_VALUE); in createMaskedWifiConfiguration()
DWifiConfigurationTestUtil.java143 config.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TTLS); in generateWifiConfig()
305 configuration.enterpriseConfig.setEapMethod(eapMethod); in createEapNetwork()
306 configuration.enterpriseConfig.setPhase2Method(phase2Method); in createEapNetwork()
480 expected.enterpriseConfig, actual.enterpriseConfig); in assertConfigurationEqualForConfigStore()
505 expected.enterpriseConfig, actual.enterpriseConfig); in assertConfigurationEqualForConfigManagerAddOrUpdate()
530 expected.enterpriseConfig, actual.enterpriseConfig); in assertConfigurationEqualForSupplicant()
DWifiConfigManagerTest.java948 network.enterpriseConfig = in testUpdateWifiEnterpriseConfig()
957 network.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TLS); in testUpdateWifiEnterpriseConfig()
958 network.enterpriseConfig.setPhase2Method(WifiEnterpriseConfig.Phase2.NONE); in testUpdateWifiEnterpriseConfig()
986 network.enterpriseConfig = null; in testUpdateSingleNetworkWithNullValues()
1018 network.enterpriseConfig = in testUpdateSingleNetworkFailureDoesNotModifyOriginal()
1026 network.enterpriseConfig = in testUpdateSingleNetworkFailureDoesNotModifyOriginal()
1373 eapNetwork.enterpriseConfig = in testUpdateEnterpriseConfigClearsHasEverConnected()
1378 assertFalse(eapNetwork.enterpriseConfig.getEapMethod() == WifiEnterpriseConfig.Eap.TLS); in testUpdateEnterpriseConfigClearsHasEverConnected()
1379 eapNetwork.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TLS); in testUpdateEnterpriseConfigClearsHasEverConnected()
1392 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.java438 eapNetwork.enterpriseConfig.getEapMethod()), in parseNetworkListWithOneNetworkIllegalArgException()
/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.java985 public static void writeToXml(XmlSerializer out, WifiEnterpriseConfig enterpriseConfig) in writeToXml() argument
988 enterpriseConfig.getFieldValue(WifiEnterpriseConfig.IDENTITY_KEY)); in writeToXml()
990 enterpriseConfig.getFieldValue(WifiEnterpriseConfig.ANON_IDENTITY_KEY)); in writeToXml()
992 enterpriseConfig.getFieldValue(WifiEnterpriseConfig.PASSWORD_KEY)); in writeToXml()
994 enterpriseConfig.getFieldValue(WifiEnterpriseConfig.CLIENT_CERT_KEY)); in writeToXml()
996 enterpriseConfig.getFieldValue(WifiEnterpriseConfig.CA_CERT_KEY)); in writeToXml()
998 enterpriseConfig.getFieldValue(WifiEnterpriseConfig.SUBJECT_MATCH_KEY)); in writeToXml()
1000 enterpriseConfig.getFieldValue(WifiEnterpriseConfig.ENGINE_KEY)); in writeToXml()
1002 enterpriseConfig.getFieldValue(WifiEnterpriseConfig.ENGINE_ID_KEY)); in writeToXml()
1004 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/service/java/com/android/server/wifi/
DNetworkListStoreData.java183 if (config.enterpriseConfig != null in serializeNetwork()
184 && config.enterpriseConfig.getEapMethod() != WifiEnterpriseConfig.Eap.NONE) { in serializeNetwork()
187 WifiEnterpriseConfigXmlUtil.writeToXml(out, config.enterpriseConfig); in serializeNetwork()
235 WifiEnterpriseConfig enterpriseConfig = null; in parseNetwork() local
262 if (enterpriseConfig != null) { in parseNetwork()
266 enterpriseConfig = in parseNetwork()
288 if (enterpriseConfig != null) { in parseNetwork()
289 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()
DWifiConfigStoreLegacy.java208 if (wifiConfig.enterpriseConfig == null || wifiConfig.enterpriseConfig.getEapMethod() in loadFromPasspointConfigStore()
238 wifiConfig.enterpriseConfig.setPlmn(passpointConfig.mImsi); in loadFromPasspointConfigStore()
241 wifiConfig.enterpriseConfig.setRealm(passpointConfig.mRealm); in loadFromPasspointConfigStore()
DWifiConfigManager.java425 if (!TextUtils.isEmpty(configuration.enterpriseConfig.getPassword())) { in maskPasswordsInWifiConfiguration()
426 configuration.enterpriseConfig.setPassword(PASSWORD_MASK); in maskPasswordsInWifiConfiguration()
661 if (config.enterpriseConfig != null in canModifyNetwork()
663 && TelephonyUtil.isSimEapMethod(config.enterpriseConfig.getEapMethod())) { in canModifyNetwork()
822 if (externalConfig.enterpriseConfig != null) { in mergeWithInternalWifiConfiguration()
823 internalConfig.enterpriseConfig.copyFromExternal( in mergeWithInternalWifiConfiguration()
824 externalConfig.enterpriseConfig, PASSWORD_MASK); in mergeWithInternalWifiConfiguration()
975 if (config.enterpriseConfig != null in addOrUpdateNetworkInternal()
976 && config.enterpriseConfig.getEapMethod() != WifiEnterpriseConfig.Eap.NONE in addOrUpdateNetworkInternal()
1083 if (!config.isPasspoint() && config.enterpriseConfig != null in removeNetworkInternal()
[all …]
DWifiConfigurationUtil.java230 if (hasEnterpriseConfigChanged(existingConfig.enterpriseConfig, in hasCredentialChanged()
231 newConfig.enterpriseConfig)) { in hasCredentialChanged()
DSupplicantStaNetworkHal.java236 return loadWifiEnterpriseConfig(config.SSID, config.enterpriseConfig); in loadWifiConfiguration()
364 if (config.enterpriseConfig != null in saveWifiConfiguration()
365 && config.enterpriseConfig.getEapMethod() != WifiEnterpriseConfig.Eap.NONE) { in saveWifiConfiguration()
366 if (!saveWifiEnterpriseConfig(config.SSID, config.enterpriseConfig)) { in saveWifiConfiguration()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
DPasspointProvider.java287 WifiEnterpriseConfig enterpriseConfig = new WifiEnterpriseConfig(); in getWifiConfig() local
288 enterpriseConfig.setRealm(mConfig.getCredential().getRealm()); in getWifiConfig()
289 enterpriseConfig.setDomainSuffixMatch(mConfig.getHomeSp().getFqdn()); in getWifiConfig()
291 buildEnterpriseConfigForUserCredential(enterpriseConfig, in getWifiConfig()
293 setAnonymousIdentityToNaiRealm(enterpriseConfig, mConfig.getCredential().getRealm()); in getWifiConfig()
295 buildEnterpriseConfigForCertCredential(enterpriseConfig); in getWifiConfig()
296 setAnonymousIdentityToNaiRealm(enterpriseConfig, mConfig.getCredential().getRealm()); in getWifiConfig()
298 buildEnterpriseConfigForSimCredential(enterpriseConfig, in getWifiConfig()
301 wifiConfig.enterpriseConfig = enterpriseConfig; in getWifiConfig()
332 credential.setRealm(wifiConfig.enterpriseConfig.getRealm()); in convertFromWifiConfig()
[all …]
DPasspointManager.java522 WifiEnterpriseConfig enterpriseConfig = wifiConfig.enterpriseConfig; in addWifiConfig() local
523 String caCertificateAliasSuffix = enterpriseConfig.getCaCertificateAlias(); in addWifiConfig()
524 String clientCertAndKeyAliasSuffix = enterpriseConfig.getClientCertificateAlias(); in addWifiConfig()
545 enterpriseConfig.getCaCertificateAlias(), in addWifiConfig()
546 enterpriseConfig.getClientCertificateAlias(), in addWifiConfig()
547 enterpriseConfig.getClientCertificateAlias()); in addWifiConfig()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/
DPasspointManagerTest.java885 wifiConfig.enterpriseConfig.setIdentity(username); in addLegacyPasspointConfigWithUserCredential()
886 wifiConfig.enterpriseConfig.setPassword(password); in addLegacyPasspointConfigWithUserCredential()
887 wifiConfig.enterpriseConfig.setRealm(realm); in addLegacyPasspointConfigWithUserCredential()
888 wifiConfig.enterpriseConfig.setEapMethod(WifiEnterpriseConfig.Eap.TTLS); in addLegacyPasspointConfigWithUserCredential()
889 wifiConfig.enterpriseConfig.setPhase2Method(WifiEnterpriseConfig.Phase2.PAP); in addLegacyPasspointConfigWithUserCredential()
890 wifiConfig.enterpriseConfig.setCaCertificateAlias(caCertificateAlias); in addLegacyPasspointConfigWithUserCredential()
937 wifiConfig.enterpriseConfig.setIdentity(username); in addLegacyPasspointConfigWithUserCredentialWithoutCaCert()
938 wifiConfig.enterpriseConfig.setPassword(password); in addLegacyPasspointConfigWithUserCredentialWithoutCaCert()
939 wifiConfig.enterpriseConfig.setRealm(realm); in addLegacyPasspointConfigWithUserCredentialWithoutCaCert()
940 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/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/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.java370 public WifiEnterpriseConfig enterpriseConfig; field in WifiConfiguration
1419 enterpriseConfig = new WifiEnterpriseConfig(); in WifiConfiguration()
1440 && enterpriseConfig != null in isPasspoint()
1441 && enterpriseConfig.getEapMethod() != WifiEnterpriseConfig.Eap.NONE; in isPasspoint()
1467 && enterpriseConfig != null in isEnterprise()
1468 && enterpriseConfig.getEapMethod() != WifiEnterpriseConfig.Eap.NONE; in isEnterprise()
1598 sbuf.append(enterpriseConfig); in toString()
1736 trimStringForKeyId(enterpriseConfig.getKeyId(current != null ? in getKeyIdForCredentials()
1737 current.enterpriseConfig : null)); in getKeyIdForCredentials()
1966 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