Searched refs:caCert (Results 1 – 4 of 4) sorted by relevance
216 Certificate caCert = readCertificate(caBytes); in assertCaCertInstalledAndTrusted() local219 boolean isInstalled = remoteDpm.hasCaCertInstalled(DPC_COMPONENT_NAME, caCert.getEncoded()); in assertCaCertInstalledAndTrusted()222 assertThat(isCaCertListed(caCert)).isEqualTo(installed); in assertCaCertInstalledAndTrusted()224 assertCaCertTrustStatusChange(caCert, isInstalled); in assertCaCertInstalledAndTrusted()227 boolean userAddedCertificate = xtm.isUserAddedCertificate((X509Certificate) caCert); in assertCaCertInstalledAndTrusted()241 private boolean isCaCertListed(Certificate caCert) throws CertificateException { in isCaCertListed() argument245 if (caCert.equals(readCertificate(certBuffer))) { in isCaCertListed()252 private void assertCaCertTrustStatusChange(Certificate caCert, boolean newStatus) in assertCaCertTrustStatusChange() argument258 .toMeet((acceptedIssuers) -> newStatus == acceptedIssuers.contains(caCert)) in assertCaCertTrustStatusChange()
100 final Certificate caCert = CertificateFactory.getInstance("X.509") in testCaCertsOperations() local107 + " beginning of the test").that(keyStore.getCertificateAlias(caCert)).isNull(); in testCaCertsOperations()123 keyStore.getCertificateAlias(caCert)).isNotNull(); in testCaCertsOperations()
124 final Certificate caCert = CertificateFactory.getInstance("X.509") in testCaCertsOperations() local136 assertNull(keyStore.getCertificateAlias(caCert)); in testCaCertsOperations()147 final String alias = keyStore.getCertificateAlias(caCert); in testCaCertsOperations()
1419 final Certificate caCert = f in testKeyStore_SetEntry_CAEntry_Overwrites_PrivateKeyEntry_Unencrypted_Success() local1422 TrustedCertificateEntry expectedCertEntry = new TrustedCertificateEntry(caCert); in testKeyStore_SetEntry_CAEntry_Overwrites_PrivateKeyEntry_Unencrypted_Success()1465 final Certificate caCert = f.generateCertificate(new ByteArrayInputStream(FAKE_RSA_CA_1)); in testKeyStore_SetEntry_PrivateKeyEntry_Overwrites_CAEntry_Unencrypted_Success() local1474 expectedChain[1] = caCert; in testKeyStore_SetEntry_PrivateKeyEntry_Overwrites_CAEntry_Unencrypted_Success()1492 TrustedCertificateEntry expectedCertEntry = new TrustedCertificateEntry(caCert); in testKeyStore_SetEntry_PrivateKeyEntry_Overwrites_CAEntry_Unencrypted_Success()1512 final Certificate caCert = f.generateCertificate(new ByteArrayInputStream(FAKE_RSA_CA_1)); in testKeyStore_SetEntry_PrivateKeyEntry_Overwrites_ShortPrivateKeyEntry_Unencrypted_Success() local1521 expectedChain[1] = caCert; in testKeyStore_SetEntry_PrivateKeyEntry_Overwrites_ShortPrivateKeyEntry_Unencrypted_Success()1568 final Certificate caCert = f in testKeyStore_SetEntry_CAEntry_Overwrites_CAEntry_Unencrypted_Success() local1571 TrustedCertificateEntry expectedCertEntry = new TrustedCertificateEntry(caCert); in testKeyStore_SetEntry_CAEntry_Overwrites_CAEntry_Unencrypted_Success()1608 final Certificate caCert = f.generateCertificate(new ByteArrayInputStream(FAKE_RSA_CA_1)); in testKeyStore_SetKeyEntry_ProtectedKey_Unencrypted_Failure() local[all …]