HomeSort by relevance Sort by last modified time
    Searched refs:caCert (Results 1 - 20 of 20) sorted by null

  /cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
CaCertManagementTest.java 97 Certificate caCert = readCertificate(caBytes);
98 assertTrue(isCaCertInstalledAndTrusted(caCert));
103 Certificate caCert = readCertificate(caBytes);
104 assertFalse(isCaCertInstalledAndTrusted(caCert));
132 private boolean isCaCertInstalledAndTrusted(Certificate caCert)
134 boolean installed = mDevicePolicyManager.hasCaCertInstalled(getWho(), caCert.getEncoded());
138 if (caCert.equals(readCertificate(certBuffer))) {
151 boolean trusted = Arrays.asList(tm.getAcceptedIssuers()).contains(caCert);
153 boolean userAddedCertificate = xtm.isUserAddedCertificate((X509Certificate) caCert);
  /external/conscrypt/src/platform/java/org/conscrypt/
TrustedCertificateIndex.java 112 X509Certificate caCert = anchor.getTrustedCert();
113 if (caCert != null) {
114 publicKey = caCert.getPublicKey();
144 X509Certificate caCert = anchor.getTrustedCert();
145 if (caCert != null) {
146 caPublicKey = caCert.getPublicKey();
185 X509Certificate caCert = anchor.getTrustedCert();
186 if (caCert != null) {
187 publicKey = caCert.getPublicKey();
  /frameworks/opt/net/wifi/service/java/com/android/server/wifi/configparse/
ConfigBuilder.java 98 X509Certificate caCert = null;
121 caCert = (X509Certificate) factory.generateCertificate(
123 Log.d(TAG, "Cert subject " + caCert.getSubjectX500Principal());
124 Log.d(TAG, "Full Cert: " + caCert);
169 return buildConfig(homeSP, caCert, clientChain, clientKey);
172 private static WifiConfiguration buildConfig(HomeSP homeSP, X509Certificate caCert,
185 config = buildTTLSConfig(homeSP, caCert);
188 config = buildTLSConfig(homeSP, clientChain, key, caCert);
193 if (key != null || clientChain != null || caCert != null) {
208 private static void xIterateCerts(KeyStore ks, X509Certificate caCert)
    [all...]
  /frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/
WifiConfigurationHelper.java 114 * @param caCert The CA certificate or null
119 Integer phase2, String identity, String anonymousIdentity, String caCert,
131 if (caCert == null) caCert = "";
139 config.enterpriseConfig.setCaCertificateAlias(caCert);
224 String caCert = null;
226 caCert = (jsonConfig.getString("ca_cert"));
233 anonymousIdentity, caCert, clientCert);
  /frameworks/base/packages/Osu/src/com/android/configparse/
ConfigBuilder.java 34 public static WifiConfiguration buildConfig(HomeSP homeSP, X509Certificate caCert,
56 if (key != null || clientChain != null || caCert != null) {
68 enterpriseConfig.setCaCertificate(caCert);
76 private static void xIterateCerts(KeyStore ks, X509Certificate caCert)
86 caCert.getSubjectX500Principal());
89 eq = Arrays.equals(x509Certificate.getEncoded(), caCert.getEncoded());
  /packages/apps/Settings/tests/app/src/com/android/settings/vpn2/
VpnTests.java 183 String caCert = "";
192 caCert = (value == null) ? null : new String(value, StandardCharsets.UTF_8);
200 Log.v(TAG, "caCert: \n" + ((caCert == null) ? "" : caCert));
  /libcore/luni/src/test/java/libcore/java/security/cert/
CertPathValidatorTest.java 55 X509CertificateHolder caCert = new JcaX509CertificateHolder(caCertJca);
63 caCert, serverCertJca.getSerialNumber());
X509CRLTest.java 186 X509Certificate caCert = getCertificate(f, CERT_CRL_CA);
187 crlRsa.verify(caCert.getPublicKey());
  /frameworks/base/packages/Osu/src/com/android/hotspot2/osu/
OSUManager.java 180 for (X509Certificate caCert : diskCerts) {
182 String.format("%s%d", CERT_WFA_ALIAS, index), caCert);
199 for (X509Certificate caCert : diskCerts) {
201 String.format("%s%d", CERT_WFA_ALIAS, index), caCert);
    [all...]
  /libcore/support/src/test/java/libcore/java/security/
TestKeyStore.java 501 X509Certificate caCert;
505 caCert = null;
509 caCert = (X509Certificate)signer.getCertificate();
564 X500Principal issuer = ((caCert != null)
565 ? caCert.getSubjectX500Principal()
    [all...]
  /frameworks/base/packages/Osu/src/com/android/hotspot2/
WifiNetworkAdapter.java 247 public void updateNetwork(HomeSP homeSP, X509Certificate caCert,
259 caCert != null ? caCert : enterpriseConfig.getCaCertificate(),
  /packages/apps/CertInstaller/src/com/android/certinstaller/
CredentialHelper.java 313 for (X509Certificate caCert : mCaCerts) {
316 bytes = caCert.getEncoded();
328 String alias = trustedCertificateStore.getCertificateAlias(caCert);
  /libcore/ojluni/src/main/java/sun/security/provider/certpath/
ReverseBuilder.java 404 boolean caCert = (cert.getBasicConstraints() != -1 ? true : false);
410 if (!caCert)
  /cts/tests/tests/keystore/src/android/keystore/cts/
AndroidKeyStoreTest.java 83 * openssl req -new -x509 -days 3650 -extensions v3_ca -keyout cakey.pem -out cacert.pem
88 * openssl ca -out usercert.pem -in userkey.req -cert cacert.pem -keyfile cakey.pem -days 3650
94 * openssl x509 -outform d -in cacert.pem | xxd -i | sed 's/0x/(byte) 0x/g'
    [all...]
  /frameworks/base/keystore/tests/src/android/security/keystore/
AndroidKeyStoreTest.java 90 * openssl req -new -x509 -days 3650 -extensions v3_ca -keyout cakey.pem -out cacert.pem
95 * openssl ca -out usercert.pem -in userkey.req -cert cacert.pem -keyfile cakey.pem -days 3650
101 * openssl x509 -outform d -in cacert.pem | xxd -i | sed 's/0x/(byte) 0x/g'
    [all...]
  /frameworks/base/services/core/java/com/android/server/connectivity/
Vpn.java     [all...]
  /packages/apps/Settings/src/com/android/settings/wifi/
WifiConfigController.java 539 String caCert = (String) mEapCaCertSpinner.getSelectedItem();
543 if (caCert.equals(mUnspecifiedCertString)
544 || caCert.equals(mDoNotValidateEapServerString)) {
546 } else if (caCert.equals(mUseSystemCertsString)) {
548 } else if (caCert.equals(mMultipleCertSetString)) {
561 config.enterpriseConfig.setCaCertificateAliases(new String[] {caCert});
    [all...]
  /external/sl4a/Common/src/com/googlecode/android_scripting/facade/wifi/
WifiManagerFacade.java 472 X509Certificate caCert = strToX509Cert(certString);
473 caCert.getEncoded();
476 out.writeObject(caCert);
    [all...]
  /external/sl4a/Common/src/com/googlecode/android_scripting/jsonrpc/
JsonBuilder.java     [all...]
  /frameworks/opt/net/wifi/service/java/com/android/server/wifi/
WifiServiceImpl.java     [all...]

Completed in 438 milliseconds