/cts/tests/tests/identity/src/android/security/identity/cts/ |
D | AttestationTest.java | 68 Collection<X509Certificate> certChain = ProvisioningTest.createCredentialWithChallenge( in attestationTest() local 74 assertTrue(verifyCertificateChain(certChain)); in attestationTest() 91 X509Certificate cert = certChain.iterator().next(); in attestationTest() 130 private static boolean verifyCertificateChain(Collection<X509Certificate> certChain) { in verifyCertificateChain() argument 131 X509Certificate[] certs = new X509Certificate[certChain.size()]; in verifyCertificateChain() 132 certs = certChain.toArray(certs); in verifyCertificateChain()
|
D | ProvisioningTest.java | 544 Collection<X509Certificate> certChain = createCredential(store, "test"); in testProvisionAndRetrieve() local 552 assertEquals(certChain.size(), readBackCertChain.size()); in testProvisionAndRetrieve() 554 for (X509Certificate expectedCert : certChain) { in testProvisionAndRetrieve() 636 Collection<X509Certificate> certChain = createCredential(store, "test"); in testProvisionAndRetrieveMultipleTimes() local 697 Collection<X509Certificate> certChain = createCredential(store, "test"); in testProvisionAndRetrieveWithFiltering() local 750 Collection<X509Certificate> certChain = createCredential(store, "test"); in testProvisionAndRetrieveElementWithNoACP() local 791 Collection<X509Certificate> certChain = createCredential(store, "test"); in testProvisionAndRetrieveWithEntryNotInRequest() local 847 Collection<X509Certificate> certChain = createCredential(store, "test"); in nonExistentEntries() local 892 Collection<X509Certificate> certChain = createCredentialMultipleNamespaces( in multipleNamespaces() local 1025 Collection<X509Certificate> certChain = createCredentialWithAcpId(store, "test", 1); in testProvisionAcpIdNotStartingAtZero() local [all …]
|
D | ReaderAuthTest.java | 393 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()
|
D | DynamicAuthTest.java | 73 Collection<X509Certificate> certChain = ProvisioningTest.createCredential(store, in dynamicAuthTest() local 152 key0Cert.verify(certChain.iterator().next().getPublicKey()); in dynamicAuthTest() 175 key4Cert.verify(certChain.iterator().next().getPublicKey()); in dynamicAuthTest() 475 Collection<X509Certificate> certChain = ProvisioningTest.createCredential(store, in dynamicAuthWithExpirationTest() local
|
D | EphemeralKeyTest.java | 71 Collection<X509Certificate> certChain = ProvisioningTest.createCredential(store, in createEphemeralKey() local
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/ |
D | CredentialManagementAppActivity.java | 299 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/ |
D | KeyManagementTest.java | 160 final ArrayList<Certificate> certChain = new ArrayList(certs); in loadCertificateChain() local 163 for (int i = 1; i < certChain.size(); i++) { in loadCertificateChain() 164 certChain.get(i - 1).verify(certChain.get(i).getPublicKey()); in loadCertificateChain() 166 return certChain; in loadCertificateChain() 172 final Certificate[] certChain = loadCertificateChain("user-cert-chain.crt") in testCanInstallCertChain() local 177 assertThat(mDevicePolicyManager.installKeyPair(getWho(), privKey, certChain, alias, true)) in testCanInstallCertChain() local 187 assertThat(KeyChain.getCertificateChain(mActivity, alias)).isEqualTo(certChain); in testCanInstallCertChain()
|
/cts/tests/tests/keystore/src/android/keystore/cts/ |
D | KeyAttestationTest.java | 1354 public static void verifyCertificateChain(Certificate[] certChain, boolean expectStrongBox) in verifyCertificateChain() argument 1356 assertNotNull(certChain); in verifyCertificateChain() 1357 for (int i = 1; i < certChain.length; ++i) { in verifyCertificateChain() 1359 PublicKey pubKey = certChain[i].getPublicKey(); in verifyCertificateChain() 1360 certChain[i - 1].verify(pubKey); in verifyCertificateChain() 1361 if (i == certChain.length - 1) { in verifyCertificateChain() 1363 certChain[i].verify(pubKey); in verifyCertificateChain() 1367 X509Certificate x509CurrCert = (X509Certificate) certChain[i]; in verifyCertificateChain() 1368 X509Certificate x509PrevCert = (X509Certificate) certChain[i - 1]; in verifyCertificateChain() 1393 + certChain[i - 1] + " with public key " + certChain[i].getPublicKey(), e); in verifyCertificateChain()
|
D | KeyPairGeneratorTest.java | 1806 public MyKeyManager(PrivateKey key, X509Certificate[] certChain) { in MyKeyManager() argument 1808 this.chain = certChain; in MyKeyManager()
|
/cts/tests/tests/webkit/src/android/webkit/cts/ |
D | WebViewSslTest.java | 1061 X509Certificate[] certChain = new X509Certificate[] { in onReceivedClientCertRequest() local 1078 new KeyStore.PrivateKeyEntry(key, certChain), in onReceivedClientCertRequest() 1085 request.proceed(key, certChain); in onReceivedClientCertRequest()
|