Home
last modified time | relevance | path

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

/cts/tests/tests/identity/src/android/security/identity/cts/
DAttestationTest.java70 Collection<X509Certificate> certChain = ProvisioningTest.createCredentialWithChallenge( in attestationTest() local
76 assertTrue(verifyCertificateChain(certChain)); in attestationTest()
93 X509Certificate cert = certChain.iterator().next(); in attestationTest()
132 private static boolean verifyCertificateChain(Collection<X509Certificate> certChain) { in verifyCertificateChain() argument
133 X509Certificate[] certs = new X509Certificate[certChain.size()]; in verifyCertificateChain()
134 certs = certChain.toArray(certs); in verifyCertificateChain()
DProvisioningTest.java577 Collection<X509Certificate> certChain = createCredential(store, "test"); in testProvisionAndRetrieve() local
585 assertEquals(certChain.size(), readBackCertChain.size()); in testProvisionAndRetrieve()
587 for (X509Certificate expectedCert : certChain) { in testProvisionAndRetrieve()
669 Collection<X509Certificate> certChain = createCredential(store, "test"); in testProvisionAndRetrieveMultipleTimes() local
730 Collection<X509Certificate> certChain = createCredential(store, "test"); in testProvisionAndRetrieveWithFiltering() local
783 Collection<X509Certificate> certChain = createCredential(store, "test"); in testProvisionAndRetrieveElementWithNoACP() local
824 Collection<X509Certificate> certChain = createCredential(store, "test"); in testProvisionAndRetrieveWithEntryNotInRequest() local
880 Collection<X509Certificate> certChain = createCredential(store, "test"); in nonExistentEntries() local
925 Collection<X509Certificate> certChain = createCredentialMultipleNamespaces( in multipleNamespaces() local
1058 Collection<X509Certificate> certChain = createCredentialWithAcpId(store, "test", 1); in testProvisionAcpIdNotStartingAtZero() local
[all …]
DReaderAuthTest.java394 Collection<X509Certificate> certChain = new ArrayList<>(); in readerAuth() local
395 certChain.add(certB); in readerAuth()
396 certChain.add(certC); in readerAuth()
397 retrieveForReader(credential, eKeyPair, readerKeyPairB, certChain, requestMessage, in readerAuth()
DDynamicAuthTest.java76 Collection<X509Certificate> certChain = ProvisioningTest.createCredential(store, in dynamicAuthTest() local
155 key0Cert.verify(certChain.iterator().next().getPublicKey()); in dynamicAuthTest()
178 key4Cert.verify(certChain.iterator().next().getPublicKey()); in dynamicAuthTest()
473 Collection<X509Certificate> certChain = ProvisioningTest.createCredential(store, in dynamicAuthWithExpirationTest() local
602 Collection<X509Certificate> certChain = ProvisioningTest.createCredential(store, in dynamicAuthMinValidTimeTest() local
816 Collection<X509Certificate> certChain = ProvisioningTest.createCredential(store, in dynamicAuthCanGetExpirations() local
882 Collection<X509Certificate> certChain = ProvisioningTest.createCredential(store, in dynamicAuthMultipleGetEntries() local
948 Collection<X509Certificate> certChain = ProvisioningTest.createCredential(store, in dynamicAuthNoUsageCountIncrement() local
DEphemeralKeyTest.java72 Collection<X509Certificate> certChain = ProvisioningTest.createCredential(store, in createEphemeralKey() local
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/
DCredentialManagementAppActivity.java299 X509Certificate[] certChain = in getPublicKeyAndVerifySignature() local
303 if (certChain != null && certChain.length > 0) { in getPublicKeyAndVerifySignature()
304 PublicKey publicKey = certChain[0].getPublicKey(); in getPublicKeyAndVerifySignature()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DKeyManagementTest.java164 final ArrayList<Certificate> certChain = new ArrayList(certs); in loadCertificateChain() local
167 for (int i = 1; i < certChain.size(); i++) { in loadCertificateChain()
168 certChain.get(i - 1).verify(certChain.get(i).getPublicKey()); in loadCertificateChain()
170 return certChain; in loadCertificateChain()
/cts/tests/tests/keystore/src/android/keystore/cts/
DKeyAttestationTest.java1915 public static void verifyCertificateChain(Certificate[] certChain, boolean expectStrongBox) in verifyCertificateChain() argument
1917 assertNotNull(certChain); in verifyCertificateChain()
1919 for (int i = 1; i < certChain.length; ++i) { in verifyCertificateChain()
1921 PublicKey pubKey = certChain[i].getPublicKey(); in verifyCertificateChain()
1922 certChain[i - 1].verify(pubKey); in verifyCertificateChain()
1923 if (i == certChain.length - 1) { in verifyCertificateChain()
1925 certChain[i].verify(pubKey); in verifyCertificateChain()
1929 X509Certificate x509CurrCert = (X509Certificate) certChain[i]; in verifyCertificateChain()
1930 X509Certificate x509PrevCert = (X509Certificate) certChain[i - 1]; in verifyCertificateChain()
1953 + "Failed to verify certificate " + certChain[i - 1] in verifyCertificateChain()
[all …]
DKeyPairGeneratorTest.java2054 public MyKeyManager(PrivateKey key, X509Certificate[] certChain) { in MyKeyManager() argument
2056 this.chain = certChain; in MyKeyManager()
/cts/tests/tests/webkit/src/android/webkit/cts/
DWebViewSslTest.java1042 X509Certificate[] certChain = new X509Certificate[] { in onReceivedClientCertRequest() local
1059 new KeyStore.PrivateKeyEntry(key, certChain), in onReceivedClientCertRequest()
1066 request.proceed(key, certChain); in onReceivedClientCertRequest()