Home
last modified time | relevance | path

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

/cts/tests/tests/identity/src/android/security/identity/cts/
DAttestationTest.java68 Collection<X509Certificate> certChain = ProvisioningTest.createCredentialWithChallenge( in attestationTest() local
74 assertTrue(verifyCertificateChain(certChain)); in attestationTest()
91 X509Certificate cert = certChain.iterator().next(); in attestationTest()
140 private static boolean verifyCertificateChain(Collection<X509Certificate> certChain) {
141 X509Certificate[] certs = new X509Certificate[certChain.size()];
142 certs = certChain.toArray(certs);
DProvisioningTest.java457 Collection<X509Certificate> certChain = createCredential(store, "test"); in testProvisionAndRetrieve() local
465 assertEquals(certChain.size(), readBackCertChain.size()); in testProvisionAndRetrieve()
467 for (X509Certificate expectedCert : certChain) { in testProvisionAndRetrieve()
549 Collection<X509Certificate> certChain = createCredential(store, "test"); in testProvisionAndRetrieveMultipleTimes() local
610 Collection<X509Certificate> certChain = createCredential(store, "test"); in testProvisionAndRetrieveWithFiltering() local
663 Collection<X509Certificate> certChain = createCredential(store, "test"); in testProvisionAndRetrieveElementWithNoACP() local
704 Collection<X509Certificate> certChain = createCredential(store, "test"); in testProvisionAndRetrieveWithEntryNotInRequest() local
760 Collection<X509Certificate> certChain = createCredential(store, "test"); in nonExistentEntries() local
805 Collection<X509Certificate> certChain = createCredentialMultipleNamespaces( in multipleNamespaces() local
938 Collection<X509Certificate> certChain = createCredentialWithAcpId(store, "test", 1); in testProvisionAcpIdNotStartingAtZero() local
[all …]
DReaderAuthTest.java393 Collection<X509Certificate> certChain = new ArrayList<>(); in readerAuth() local
394 certChain.add(certB); in readerAuth()
395 certChain.add(certC); in readerAuth()
396 retrieveForReader(credential, eKeyPair, readerKeyPairB, certChain, requestMessage, in readerAuth()
DDynamicAuthTest.java71 Collection<X509Certificate> certChain = ProvisioningTest.createCredential(store, in dynamicAuthTest() local
150 key0Cert.verify(certChain.iterator().next().getPublicKey()); in dynamicAuthTest()
173 key4Cert.verify(certChain.iterator().next().getPublicKey()); in dynamicAuthTest()
DEphemeralKeyTest.java71 Collection<X509Certificate> certChain = ProvisioningTest.createCredential(store, in createEphemeralKey() local
/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/keystore/src/android/keystore/cts/
DKeyAttestationTest.java1178 private void verifyCertificateChain(Certificate[] certChain, boolean expectStrongBox) in verifyCertificateChain() argument
1180 assertNotNull(certChain); in verifyCertificateChain()
1181 for (int i = 1; i < certChain.length; ++i) { in verifyCertificateChain()
1183 PublicKey pubKey = certChain[i].getPublicKey(); in verifyCertificateChain()
1184 certChain[i - 1].verify(pubKey); in verifyCertificateChain()
1185 if (i == certChain.length - 1) { in verifyCertificateChain()
1187 certChain[i].verify(pubKey); in verifyCertificateChain()
1191 X509Certificate x509CurrCert = (X509Certificate) certChain[i]; in verifyCertificateChain()
1192 X509Certificate x509PrevCert = (X509Certificate) certChain[i - 1]; in verifyCertificateChain()
1218 + certChain[i - 1] + " with public key " + certChain[i].getPublicKey(), e); in verifyCertificateChain()
DKeyPairGeneratorTest.java1805 public MyKeyManager(PrivateKey key, X509Certificate[] certChain) { in MyKeyManager() argument
1807 this.chain = certChain; in MyKeyManager()
/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()