Home
last modified time | relevance | path

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

/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DCaCertManagementTest.java103 Certificate caCert = readCertificate(caBytes); in assertInstalled() local
104 assertTrue(isCaCertInstalledAndTrusted(caCert)); in assertInstalled()
109 Certificate caCert = readCertificate(caBytes); in assertUninstalled() local
110 assertFalse(isCaCertInstalledAndTrusted(caCert)); in assertUninstalled()
138 private boolean isCaCertInstalledAndTrusted(Certificate caCert) in isCaCertInstalledAndTrusted() argument
140 boolean installed = mDevicePolicyManager.hasCaCertInstalled(mAdmin, caCert.getEncoded()); in isCaCertInstalledAndTrusted()
144 if (caCert.equals(readCertificate(certBuffer))) { in isCaCertInstalledAndTrusted()
155 boolean trusted = Arrays.asList(tm.getAcceptedIssuers()).contains(caCert); in isCaCertInstalledAndTrusted()
164 trusted = Arrays.asList(tm.getAcceptedIssuers()).contains(caCert); in isCaCertInstalledAndTrusted()
173 boolean userAddedCertificate = xtm.isUserAddedCertificate((X509Certificate) caCert); in isCaCertInstalledAndTrusted()
DDelegatedCertInstallerTest.java191 final Certificate caCert = CertificateFactory.getInstance("X.509") in testCaCertsOperations() local
202 assertNull(keyStore.getCertificateAlias(caCert)); in testCaCertsOperations()
213 final String alias = keyStore.getCertificateAlias(caCert); in testCaCertsOperations()
/cts/hostsidetests/devicepolicy/app/CertInstaller/src/com/android/cts/certinstaller/
DDirectDelegatedCertInstallerTest.java135 final Certificate caCert = CertificateFactory.getInstance("X.509") in testCaCertsOperations() local
142 + " beginning of the test").that(keyStore.getCertificateAlias(caCert)).isNull(); in testCaCertsOperations()
158 keyStore.getCertificateAlias(caCert)).isNotNull(); in testCaCertsOperations()
/cts/tests/tests/keystore/src/android/keystore/cts/
DAndroidKeyStoreTest.java1415 final Certificate caCert = f in testKeyStore_SetEntry_CAEntry_Overwrites_PrivateKeyEntry_Unencrypted_Success() local
1418 TrustedCertificateEntry expectedCertEntry = new TrustedCertificateEntry(caCert); in testKeyStore_SetEntry_CAEntry_Overwrites_PrivateKeyEntry_Unencrypted_Success()
1461 final Certificate caCert = f.generateCertificate(new ByteArrayInputStream(FAKE_RSA_CA_1)); in testKeyStore_SetEntry_PrivateKeyEntry_Overwrites_CAEntry_Unencrypted_Success() local
1470 expectedChain[1] = caCert; in testKeyStore_SetEntry_PrivateKeyEntry_Overwrites_CAEntry_Unencrypted_Success()
1488 TrustedCertificateEntry expectedCertEntry = new TrustedCertificateEntry(caCert); in testKeyStore_SetEntry_PrivateKeyEntry_Overwrites_CAEntry_Unencrypted_Success()
1508 final Certificate caCert = f.generateCertificate(new ByteArrayInputStream(FAKE_RSA_CA_1)); in testKeyStore_SetEntry_PrivateKeyEntry_Overwrites_ShortPrivateKeyEntry_Unencrypted_Success() local
1517 expectedChain[1] = caCert; in testKeyStore_SetEntry_PrivateKeyEntry_Overwrites_ShortPrivateKeyEntry_Unencrypted_Success()
1564 final Certificate caCert = f in testKeyStore_SetEntry_CAEntry_Overwrites_CAEntry_Unencrypted_Success() local
1567 TrustedCertificateEntry expectedCertEntry = new TrustedCertificateEntry(caCert); in testKeyStore_SetEntry_CAEntry_Overwrites_CAEntry_Unencrypted_Success()
1604 final Certificate caCert = f.generateCertificate(new ByteArrayInputStream(FAKE_RSA_CA_1)); in testKeyStore_SetKeyEntry_ProtectedKey_Unencrypted_Failure() local
[all …]