Home
last modified time | relevance | path

Searched refs:chain (Results 1 – 15 of 15) sorted by relevance

/cts/tests/tests/security/src/android/security/cts/
DCertBlacklistTest.java60 X509Certificate[] chain = loadCertificates(BLACKLISTED_CHAIN); in testBlacklistedRootOfTrust() local
62 assertUntrusted(chain, getTrustManager(blacklistedCa)); in testBlacklistedRootOfTrust()
76 X509Certificate[] chain = loadCertificates(BLACKLISTED_VALID_CHAIN); in testBlacklistedIntermediateFallback() local
79 assertTrusted(chain, getTrustManager(blacklistedCa, validCa)); in testBlacklistedIntermediateFallback()
82 assertUntrusted(chain, getTrustManager(blacklistedCa)); in testBlacklistedIntermediateFallback()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/
DKeyChainTest.java212 final Certificate[] chain = new Certificate[2]; in doInBackground() local
236 chain[0] = f.generateCertificate(res.openRawResource(R.raw.usercert)); in doInBackground()
237 chain[1] = f.generateCertificate(res.openRawResource(R.raw.cacert)); in doInBackground()
247 ks.setKeyEntry(ALIAS, privKey, EMPTY_PASSWORD, chain); in doInBackground()
297 public void checkClientTrusted(X509Certificate[] chain, String authType) in checkClientTrusted() argument
299 mOther.checkClientTrusted(chain, authType); in checkClientTrusted()
302 public void checkServerTrusted(X509Certificate[] chain, String authType) in checkServerTrusted() argument
304 mOther.checkServerTrusted(chain, authType); in checkServerTrusted()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/scripts/
Dgenerate-client-cert-chain.sh87 > "$TARGETDIR"/user-cert-chain.crt
95 -out "$TARGETDIR"/user-cert-chain.key
/cts/tests/tests/networksecurityconfig/networksecurityconfig-downloadmanager/src/android/security/net/config/cts/
DDownloadManagerTest.java139 X509Certificate[] chain = new X509Certificate[certs.size()]; in bindTLSServer() local
142 chain[i++] = (X509Certificate) cert; in bindTLSServer()
163 ks.setKeyEntry("name", key, null, chain); in bindTLSServer()
/cts/tests/tests/keystore/src/android/keystore/cts/
DAndroidKeyStoreTest.java1608 final Certificate[] chain = new Certificate[2]; in testKeyStore_SetKeyEntry_ProtectedKey_Unencrypted_Failure() local
1609 chain[0] = f.generateCertificate(new ByteArrayInputStream(FAKE_RSA_USER_1)); in testKeyStore_SetKeyEntry_ProtectedKey_Unencrypted_Failure()
1610 chain[1] = caCert; in testKeyStore_SetKeyEntry_ProtectedKey_Unencrypted_Failure()
1613 mKeyStore.setKeyEntry(TEST_ALIAS_1, privKey, "foo".toCharArray(), chain); in testKeyStore_SetKeyEntry_ProtectedKey_Unencrypted_Failure()
1628 final Certificate[] chain = new Certificate[2]; in testKeyStore_SetKeyEntry_Unencrypted_Success() local
1629 chain[0] = f.generateCertificate(new ByteArrayInputStream(FAKE_RSA_USER_1)); in testKeyStore_SetKeyEntry_Unencrypted_Success()
1630 chain[1] = caCert; in testKeyStore_SetKeyEntry_Unencrypted_Success()
1632 mKeyStore.setKeyEntry(TEST_ALIAS_1, privKey, null, chain); in testKeyStore_SetKeyEntry_Unencrypted_Success()
1656 final Certificate[] chain = new Certificate[2]; in testKeyStore_SetKeyEntry_Replaced_Unencrypted_Success() local
1657 chain[0] = f.generateCertificate(new ByteArrayInputStream(FAKE_RSA_USER_1)); in testKeyStore_SetKeyEntry_Replaced_Unencrypted_Success()
[all …]
DTestUtils.java245 Certificate[] chain = privEntry.getCertificateChain(); in assertKeyStoreKeyPair() local
246 if (chain.length == 0) { in assertKeyStoreKeyPair()
250 assertEquals(cert, chain[0]); in assertKeyStoreKeyPair()
DKeyPairGeneratorTest.java1804 private final X509Certificate[] chain; field in KeyPairGeneratorTest.MyKeyManager
1808 this.chain = certChain; in MyKeyManager()
1835 return chain; in getCertificateChain()
/cts/hostsidetests/appsecurity/test-apps/IsolatedSplitApp/feature_a/
DAndroid.bp43 // isolated splits, it must only be unique across a dependency chain.
70 // isolated splits, it must only be unique across a dependency chain.
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DKeyManagementTest.java416 private void validateSignatureChain(List<Certificate> chain, PublicKey leafKey) in validateSignatureChain() argument
418 X509Certificate leaf = (X509Certificate) chain.get(0); in validateSignatureChain()
422 for (int i = 1; i < chain.size(); i++) { in validateSignatureChain()
423 X509Certificate intermediate = (X509Certificate) chain.get(i); in validateSignatureChain()
803 List<Certificate> chain = loadCertificateChain("user-cert-chain.crt"); in testCanSetKeyPairCertChain() local
804 mDevicePolicyManager.setKeyPairCertificate(getWho(), alias, chain, true); in testCanSetKeyPairCertChain() local
809 assertThat(fetchedCerts.length).isEqualTo(chain.size()); in testCanSetKeyPairCertChain()
810 for (int i = 0; i < chain.size(); i++) { in testCanSetKeyPairCertChain()
811 assertThat(fetchedCerts[i].getEncoded()).isEqualTo(chain.get(i).getEncoded()); in testCanSetKeyPairCertChain()
/cts/hostsidetests/appsecurity/test-apps/IsolatedSplitApp/feature_b/
DAndroid.bp41 // isolated splits, it must only be unique across a dependency chain.
/cts/libs/testserver/src/android/webkit/cts/
DCtsTestServer.java279 public void checkClientTrusted(X509Certificate[] chain, String authType) { in checkClientTrusted() argument
283 public void checkServerTrusted(X509Certificate[] chain, String authType) { in checkServerTrusted() argument
995 Certificate[] chain = new Certificate[1]; in getKeyManagersFromStreams() local
996 chain[0] = cf.generateCertificate(cert); in getKeyManagersFromStreams()
1000 keyStore.setKeyEntry("server", privKey, EMPTY_PASSWORD, chain); in getKeyManagersFromStreams()
DTestWebServer.java351 public void checkClientTrusted(X509Certificate[] chain, String authType) { in checkClientTrusted() argument
356 public void checkServerTrusted(X509Certificate[] chain, String authType) { in checkServerTrusted() argument
/cts/tests/framework/base/windowmanager/jetpack/src/android/server/wm/jetpack/
DExtensionTest.java80 public TestRule chain = RuleChain.outerRule(mActivityTestRule) field in ExtensionTest
/cts/tests/tests/webkit/src/android/webkit/cts/
DWebViewSslTest.java905 public void checkClientTrusted(X509Certificate[] chain, String authType) { in checkClientTrusted() argument
909 public void checkServerTrusted(X509Certificate[] chain, String authType) { in checkServerTrusted() argument
/cts/tests/tests/media/src/android/media/cts/
DAdaptivePlaybackTest.java134 …return chain(H264(ALL), HEVC(ALL), VP8(ALL), VP9(ALL), AV1(ALL), Mpeg2(ALL), Mpeg4(ALL), H263(ALL)… in AllCodecs()
138 return chain(H264(SW), HEVC(SW), VP8(SW), VP9(SW), AV1(SW), Mpeg2(SW), Mpeg4(SW), H263(SW)); in SWCodecs()
142 return chain(H264(HW), HEVC(HW), VP8(HW), VP9(HW), AV1(HW), Mpeg2(HW), Mpeg4(HW), H263(HW)); in HWCodecs()
871 static <E> Iterable<E> chain(Iterable<E> ... iterables) {