/cts/tests/tests/security/src/android/security/cts/ |
D | CertBlacklistTest.java | 60 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/ |
D | KeyChainTest.java | 212 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/ |
D | generate-client-cert-chain.sh | 87 > "$TARGETDIR"/user-cert-chain.crt 95 -out "$TARGETDIR"/user-cert-chain.key
|
/cts/tests/tests/networksecurityconfig/networksecurityconfig-downloadmanager/src/android/security/net/config/cts/ |
D | DownloadManagerTest.java | 139 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/ |
D | AndroidKeyStoreTest.java | 1608 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 …]
|
D | TestUtils.java | 245 Certificate[] chain = privEntry.getCertificateChain(); in assertKeyStoreKeyPair() local 246 if (chain.length == 0) { in assertKeyStoreKeyPair() 250 assertEquals(cert, chain[0]); in assertKeyStoreKeyPair()
|
D | KeyPairGeneratorTest.java | 1804 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/ |
D | Android.bp | 43 // 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/ |
D | KeyManagementTest.java | 416 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/ |
D | Android.bp | 41 // isolated splits, it must only be unique across a dependency chain.
|
/cts/libs/testserver/src/android/webkit/cts/ |
D | CtsTestServer.java | 279 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()
|
D | TestWebServer.java | 351 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/ |
D | ExtensionTest.java | 80 public TestRule chain = RuleChain.outerRule(mActivityTestRule) field in ExtensionTest
|
/cts/tests/tests/webkit/src/android/webkit/cts/ |
D | WebViewSslTest.java | 905 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/ |
D | AdaptivePlaybackTest.java | 134 …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) {
|