Home
last modified time | relevance | path

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

/cts/tests/tests/keystore/src/android/keystore/cts/
DKeyAttestationTest.java894 private void verifyCertificateChain(Certificate[] certChain) in verifyCertificateChain() argument
896 assertNotNull(certChain); in verifyCertificateChain()
897 for (int i = 1; i < certChain.length; ++i) { in verifyCertificateChain()
899 PublicKey pubKey = certChain[i].getPublicKey(); in verifyCertificateChain()
900 certChain[i - 1].verify(pubKey); in verifyCertificateChain()
901 if (i == certChain.length - 1) { in verifyCertificateChain()
903 certChain[i].verify(pubKey); in verifyCertificateChain()
907 X509Certificate x509CurrCert = (X509Certificate) certChain[i]; in verifyCertificateChain()
908 X509Certificate x509PrevCert = (X509Certificate) certChain[i - 1]; in verifyCertificateChain()
927 + certChain[i - 1] + " with public key " + certChain[i].getPublicKey(), e); in verifyCertificateChain()
DKeyPairGeneratorTest.java1745 public MyKeyManager(PrivateKey key, X509Certificate[] certChain) { in MyKeyManager() argument
1747 this.chain = certChain; in MyKeyManager()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DKeyManagementTest.java169 final ArrayList<Certificate> certChain = new ArrayList(certs); in loadCertificateChain() local
172 for (int i = 1; i < certChain.size(); i++) { in loadCertificateChain()
173 certChain.get(i - 1).verify(certChain.get(i).getPublicKey()); in loadCertificateChain()
175 return certChain; in loadCertificateChain()
181 final Certificate[] certChain = loadCertificateChain("user-cert-chain.crt") in testCanInstallCertChain() local
186 assertThat(mDevicePolicyManager.installKeyPair(getWho(), privKey, certChain, alias, true)) in testCanInstallCertChain() local
196 assertThat(KeyChain.getCertificateChain(mActivity, alias)).isEqualTo(certChain); in testCanInstallCertChain()
/cts/tests/tests/webkit/src/android/webkit/cts/
DWebViewSslTest.java1017 X509Certificate[] certChain = new X509Certificate[] { in onReceivedClientCertRequest() local
1034 new KeyStore.PrivateKeyEntry(key, certChain), in onReceivedClientCertRequest()
1041 request.proceed(key, certChain); in onReceivedClientCertRequest()