Home
last modified time | relevance | path

Searched refs:caCert (Results 1 – 3 of 3) sorted by relevance

/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DCaCertManagementTest.java99 Certificate caCert = readCertificate(caBytes); in assertInstalled() local
100 assertTrue(isCaCertInstalledAndTrusted(caCert)); in assertInstalled()
105 Certificate caCert = readCertificate(caBytes); in assertUninstalled() local
106 assertFalse(isCaCertInstalledAndTrusted(caCert)); in assertUninstalled()
134 private boolean isCaCertInstalledAndTrusted(Certificate caCert) in isCaCertInstalledAndTrusted() argument
136 boolean installed = mDevicePolicyManager.hasCaCertInstalled(mAdmin, caCert.getEncoded()); in isCaCertInstalledAndTrusted()
140 if (caCert.equals(readCertificate(certBuffer))) { in isCaCertInstalledAndTrusted()
151 boolean trusted = Arrays.asList(tm.getAcceptedIssuers()).contains(caCert); in isCaCertInstalledAndTrusted()
153 boolean userAddedCertificate = xtm.isUserAddedCertificate((X509Certificate) caCert); in isCaCertInstalledAndTrusted()
DDelegatedCertInstallerTest.java187 final Certificate caCert = CertificateFactory.getInstance("X.509") in testCaCertsOperations() local
198 assertNull(keyStore.getCertificateAlias(caCert)); in testCaCertsOperations()
209 final String alias = keyStore.getCertificateAlias(caCert); in testCaCertsOperations()
/cts/tests/tests/keystore/src/android/keystore/cts/
DAndroidKeyStoreTest.java1454 final Certificate caCert = f in testKeyStore_SetEntry_CAEntry_Overwrites_PrivateKeyEntry_Unencrypted_Success() local
1457 TrustedCertificateEntry expectedCertEntry = new TrustedCertificateEntry(caCert); in testKeyStore_SetEntry_CAEntry_Overwrites_PrivateKeyEntry_Unencrypted_Success()
1500 final Certificate caCert = f.generateCertificate(new ByteArrayInputStream(FAKE_RSA_CA_1)); in testKeyStore_SetEntry_PrivateKeyEntry_Overwrites_CAEntry_Unencrypted_Success() local
1509 expectedChain[1] = caCert; in testKeyStore_SetEntry_PrivateKeyEntry_Overwrites_CAEntry_Unencrypted_Success()
1527 TrustedCertificateEntry expectedCertEntry = new TrustedCertificateEntry(caCert); in testKeyStore_SetEntry_PrivateKeyEntry_Overwrites_CAEntry_Unencrypted_Success()
1547 final Certificate caCert = f.generateCertificate(new ByteArrayInputStream(FAKE_RSA_CA_1)); in testKeyStore_SetEntry_PrivateKeyEntry_Overwrites_ShortPrivateKeyEntry_Unencrypted_Success() local
1556 expectedChain[1] = caCert; in testKeyStore_SetEntry_PrivateKeyEntry_Overwrites_ShortPrivateKeyEntry_Unencrypted_Success()
1603 final Certificate caCert = f in testKeyStore_SetEntry_CAEntry_Overwrites_CAEntry_Unencrypted_Success() local
1606 TrustedCertificateEntry expectedCertEntry = new TrustedCertificateEntry(caCert); in testKeyStore_SetEntry_CAEntry_Overwrites_CAEntry_Unencrypted_Success()
1643 final Certificate caCert = f.generateCertificate(new ByteArrayInputStream(FAKE_RSA_CA_1)); in testKeyStore_SetKeyEntry_ProtectedKey_Unencrypted_Failure() local
[all …]