/cts/tests/tests/identity/src/android/security/identity/cts/ |
D | AttestationTest.java | 70 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()
|
D | ProvisioningTest.java | 577 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 …]
|
D | ReaderAuthTest.java | 394 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()
|
D | DynamicAuthTest.java | 76 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
|
D | EphemeralKeyTest.java | 72 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 | 164 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/ |
D | KeyAttestationTest.java | 1915 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 …]
|
D | KeyPairGeneratorTest.java | 2054 public MyKeyManager(PrivateKey key, X509Certificate[] certChain) { in MyKeyManager() argument 2056 this.chain = certChain; in MyKeyManager()
|
/cts/tests/tests/webkit/src/android/webkit/cts/ |
D | WebViewSslTest.java | 1042 X509Certificate[] certChain = new X509Certificate[] { in onReceivedClientCertRequest() local 1059 new KeyStore.PrivateKeyEntry(key, certChain), in onReceivedClientCertRequest() 1066 request.proceed(key, certChain); in onReceivedClientCertRequest()
|