/frameworks/opt/net/wifi/service/java/com/android/server/wifi/configparse/ |
D | ConfigBuilder.java | 88 X509Certificate caCert = null; in parse() local 111 caCert = (X509Certificate) factory.generateCertificate( in parse() 113 Log.d(TAG, "Cert subject " + caCert.getSubjectX500Principal()); in parse() 114 Log.d(TAG, "Full Cert: " + caCert); in parse() 159 return buildConfig(homeSP, caCert, clientChain, clientKey); in parse() 162 private static WifiConfiguration buildConfig(HomeSP homeSP, X509Certificate caCert, in buildConfig() argument 175 config = buildTTLSConfig(homeSP, caCert); in buildConfig() 178 config = buildTLSConfig(homeSP, clientChain, key, caCert); in buildConfig() 183 if (key != null || clientChain != null || caCert != null) { in buildConfig() 241 private static WifiConfiguration buildTTLSConfig(HomeSP homeSP, X509Certificate caCert) in buildTTLSConfig() argument [all …]
|
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/ |
D | WifiConfigurationHelper.java | 119 Integer phase2, String identity, String anonymousIdentity, String caCert, in createEapConfig() argument 131 if (caCert == null) caCert = ""; in createEapConfig() 139 config.enterpriseConfig.setCaCertificateAlias(caCert); in createEapConfig() 224 String caCert = null; in getWifiConfiguration() local 226 caCert = (jsonConfig.getString("ca_cert")); in getWifiConfiguration() 233 anonymousIdentity, caCert, clientCert); in getWifiConfiguration()
|
/frameworks/base/packages/Osu/src/com/android/configparse/ |
D | ConfigBuilder.java | 34 public static WifiConfiguration buildConfig(HomeSP homeSP, X509Certificate caCert, in buildConfig() argument 56 if (key != null || clientChain != null || caCert != null) { in buildConfig() 68 enterpriseConfig.setCaCertificate(caCert); in buildConfig()
|
/frameworks/base/keystore/tests/src/android/security/keystore/ |
D | AndroidKeyStoreTest.java | 1629 … final Certificate caCert = f.generateCertificate(new ByteArrayInputStream(FAKE_RSA_CA_1)); in testKeyStore_SetEntry_CAEntry_Overwrites_PrivateKeyEntry_Encrypted_Success() local 1631 TrustedCertificateEntry expectedCertEntry = new TrustedCertificateEntry(caCert); in testKeyStore_SetEntry_CAEntry_Overwrites_PrivateKeyEntry_Encrypted_Success() 1674 final Certificate caCert = f.generateCertificate(new ByteArrayInputStream(FAKE_RSA_CA_1)); in testKeyStore_SetEntry_PrivateKeyEntry_Overwrites_CAEntry_Encrypted_Success() local 1682 expectedChain[1] = caCert; in testKeyStore_SetEntry_PrivateKeyEntry_Overwrites_CAEntry_Encrypted_Success() 1700 TrustedCertificateEntry expectedCertEntry = new TrustedCertificateEntry(caCert); in testKeyStore_SetEntry_PrivateKeyEntry_Overwrites_CAEntry_Encrypted_Success() 1723 final Certificate caCert = f.generateCertificate(new ByteArrayInputStream(FAKE_RSA_CA_1)); in testKeyStore_SetEntry_PrivateKeyEntry_Overwrites_ShortPrivateKeyEntry_Encrypted_Success() local 1731 expectedChain[1] = caCert; in testKeyStore_SetEntry_PrivateKeyEntry_Overwrites_ShortPrivateKeyEntry_Encrypted_Success() 1778 … final Certificate caCert = f.generateCertificate(new ByteArrayInputStream(FAKE_RSA_CA_1)); in testKeyStore_SetEntry_CAEntry_Overwrites_CAEntry_Encrypted_Success() local 1780 TrustedCertificateEntry expectedCertEntry = new TrustedCertificateEntry(caCert); in testKeyStore_SetEntry_CAEntry_Overwrites_CAEntry_Encrypted_Success() 1818 final Certificate caCert = f.generateCertificate(new ByteArrayInputStream(FAKE_RSA_CA_1)); in testKeyStore_SetKeyEntry_ProtectedKey_Encrypted_Failure() local [all …]
|
/frameworks/base/packages/Osu/src/com/android/hotspot2/osu/ |
D | OSUManager.java | 180 for (X509Certificate caCert : diskCerts) { in loadKeyStore() 182 String.format("%s%d", CERT_WFA_ALIAS, index), caCert); in loadKeyStore() 199 for (X509Certificate caCert : diskCerts) { in loadKeyStore() 201 String.format("%s%d", CERT_WFA_ALIAS, index), caCert); in loadKeyStore() 958 X509Certificate caCert = null; in remediationComplete() local 962 caCert = certList != null && !certList.isEmpty() ? certList.iterator().next() : null; in remediationComplete() 969 mWifiNetworkAdapter.updateNetwork(altSP, caCert, clientCerts, privateKey); in remediationComplete()
|
/frameworks/base/packages/Osu/src/com/android/hotspot2/ |
D | WifiNetworkAdapter.java | 247 public void updateNetwork(HomeSP homeSP, X509Certificate caCert, in updateNetwork() argument 259 caCert != null ? caCert : enterpriseConfig.getCaCertificate(), in updateNetwork()
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | Vpn.java | 1312 String caCert = ""; in startLegacyVpnPrivileged() local 1321 caCert = (value == null) ? null : new String(value, StandardCharsets.UTF_8); in startLegacyVpnPrivileged() 1327 if (privateKey == null || userCert == null || caCert == null || serverCert == null) { in startLegacyVpnPrivileged() 1343 caCert, serverCert, "1701", in startLegacyVpnPrivileged() 1355 caCert, serverCert, profile.username, profile.password, "", gateway, in startLegacyVpnPrivileged() 1361 caCert, serverCert, profile.username, profile.password, "", gateway, in startLegacyVpnPrivileged()
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
D | WifiServiceImpl.java | 931 public static void verifyCert(X509Certificate caCert) in verifyCert() argument 937 Arrays.asList(caCert)); in verifyCert()
|