Home
last modified time | relevance | path

Searched refs:certificates (Results 1 – 21 of 21) sorted by relevance

/cts/tests/tests/identity/src/android/security/identity/cts/
DDynamicAuthTest.java139 Collection<X509Certificate> certificates = null; in dynamicAuthTest() local
140 certificates = credential.getAuthKeysNeedingCertification(); in dynamicAuthTest()
141 assertEquals(5, certificates.size()); in dynamicAuthTest()
147 assertArrayEquals(certificates.toArray(), certificates2.toArray()); in dynamicAuthTest()
151 X509Certificate key0Cert = certificates.iterator().next(); in dynamicAuthTest()
167 certificates = credential.getAuthKeysNeedingCertification(); in dynamicAuthTest()
172 assertEquals(4, certificates.size()); in dynamicAuthTest()
175 X509Certificate key4Cert = new ArrayList<X509Certificate>(certificates).get( in dynamicAuthTest()
176 certificates.size() - 1); in dynamicAuthTest()
190 certificates = credential.getAuthKeysNeedingCertification(); in dynamicAuthTest()
[all …]
DNoSessionEncryptionTest.java75 Collection<X509Certificate> certificates = credential.getAuthKeysNeedingCertification(); in noSessionEncryption() local
76 for (X509Certificate certificate : certificates) { in noSessionEncryption()
79 PublicKey expectedAuthKey = certificates.iterator().next().getPublicKey(); in noSessionEncryption()
DMultiDocumentPresentationTest.java84 Collection<X509Certificate> certificates = credential.getAuthKeysNeedingCertification(); in createAuthKeys() local
85 for (X509Certificate certificate : certificates) { in createAuthKeys()
88 return certificates; in createAuthKeys()
DProvisioningTest.java1218 Collection<X509Certificate> certificates = credential.getAuthKeysNeedingCertification(); in testUpdateCredential() local
1219 assertEquals(3, certificates.size()); in testUpdateCredential()
1220 for (X509Certificate cert : certificates) { in testUpdateCredential()
/cts/tests/tests/security/src/android/security/cts/
DCertificateTest.java189 Set<String> certificates = new HashSet<>(); in getDeviceWfaCertificates() local
197 certificates.add(fingerprint); in getDeviceWfaCertificates()
199 return certificates; in getDeviceWfaCertificates()
210 Set<String> certificates = new HashSet<String>(); in getDeviceCertificates() local
218 certificates.add(fingerprint); in getDeviceCertificates()
220 return certificates; in getDeviceCertificates()
/cts/tests/tests/keystore/src/android/keystore/cts/
DKeyAttestationTest.java394 Certificate certificates[] = keyStore.getCertificateChain(keystoreAlias); in testEcAttestation_NoChallenge() local
395 assertEquals(1, certificates.length); in testEcAttestation_NoChallenge()
397 X509Certificate attestationCert = (X509Certificate) certificates[0]; in testEcAttestation_NoChallenge()
434 Certificate certificates[] = keyStore.getCertificateChain(keystoreAlias); in testEcAttestation_DeviceLocked() local
435 verifyCertificateChain(certificates, expectStrongBox); in testEcAttestation_DeviceLocked()
437 X509Certificate attestationCert = (X509Certificate) certificates[0]; in testEcAttestation_DeviceLocked()
512 Certificate certificates[] = keyStore.getCertificateChain(keystoreAlias); in testAttestationKmVersionMatchesFeatureVersion() local
513 verifyCertificateChain(certificates, isStrongBox /* expectStrongBox */); in testAttestationKmVersionMatchesFeatureVersion()
514 X509Certificate attestationCert = (X509Certificate) certificates[0]; in testAttestationKmVersionMatchesFeatureVersion()
615 Certificate certificates[] = keyStore.getCertificateChain(keystoreAlias); in testEcAttestation_UniqueIdWorksWithCorrectPermission() local
[all …]
DDeviceOwnerKeyManagementTest.java588 Certificate []certificates = keyStore.getCertificateChain(keystoreAlias); in checkDeviceLocked() local
589 verifyCertificateChain(certificates, false); in checkDeviceLocked()
591 X509Certificate attestationCert = (X509Certificate) certificates[0]; in checkDeviceLocked()
/cts/tools/utils/
Djava-cert-list-generator.sh53 CERT_DIRECTORY=$ANDROID_BUILD_TOP/system/ca-certificates/files/
68 CERT_DIRECTORY=$ANDROID_BUILD_TOP/system/ca-certificates/wfa_certs/files/
/cts/tests/appsearch/certs/
DREADME2 # These files shouldn't need to change unless you want to generate new certificates to sign the APKs
/cts/hostsidetests/appsecurity/res/pkgsigverify/
DREADME.md21 which test certificates were used to generate a proof-of-rotation object,
23 capabilities of those certificates according to APK Signature Scheme v3.
/cts/hostsidetests/appsearch/certs/
DREADME2 # These files shouldn't need to change unless you want to generate new certificates to sign the APKs
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/
DKeystoreAttestationDeviceInfo.java135 Certificate[] certificates = keystore.getCertificateChain(testAlias); in loadCertAndCollectAttestation() local
136 assertTrue(certificates.length >= 1); in loadCertAndCollectAttestation()
142 for (Certificate certificate : certificates) { in loadCertAndCollectAttestation()
/cts/tests/devicepolicy/src/android/devicepolicy/cts/
DCredentialManagementAppTest.java257 List<Certificate> certificates = Arrays.asList(CERTIFICATE); in setKeyPairCertificate_isCredentialManagementApp_success() local
258 sDevicePolicyManager.setKeyPairCertificate(/* admin = */ null, ALIAS, certificates, in setKeyPairCertificate_isCredentialManagementApp_success()
266 assertThat(fetchedCerts.length).isEqualTo(certificates.size()); in setKeyPairCertificate_isCredentialManagementApp_success()
267 assertThat(fetchedCerts[0].getEncoded()).isEqualTo(certificates.get(0).getEncoded()); in setKeyPairCertificate_isCredentialManagementApp_success()
DKeyManagementTest.java45 import com.android.bedstead.nene.certificates.Certificates;
82 TestApis.certificates().generateRSAPrivateKey(FakeKeys.FAKE_RSA_1.privateKey);
84 TestApis.certificates().generateCertificate(FakeKeys.FAKE_RSA_1.caCertificate);
635 Certificate[] certificates = KeyChain.getCertificateChain(sContext, RSA_ALIAS); in grantKeyPair_validCertificate() local
637 assertThat(certificates).asList().containsExactly(CERTIFICATE); in grantKeyPair_validCertificate()
DWifiTest.java62 import com.android.bedstead.nene.certificates.Certificates;
109 TestApis.certificates().generateRSAPrivateKey(FakeKeys.FAKE_RSA_1.privateKey);
111 TestApis.certificates().generateCertificate(FakeKeys.FAKE_RSA_1.caCertificate);
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/certificates/
DCertificates.java17 package com.android.bedstead.nene.certificates;
/cts/hostsidetests/devicepolicy/app/CertInstaller/src/com/android/cts/certinstaller/
DCertInstallerReceiver.java168 private static boolean containsCertificate(List<byte[]> certificates, byte[] toMatch) in containsCertificate() argument
171 for (byte[] certBuffer : certificates) { in containsCertificate()
DDirectDelegatedCertInstallerTest.java279 private static boolean containsCertificate(List<byte[]> certificates, byte[] toMatch) in containsCertificate() argument
282 for (byte[] certBuffer : certificates) { in containsCertificate()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/
DTestApis.kt25 import com.android.bedstead.nene.certificates.Certificates
175 fun certificates(): Certificates = Certificates.sInstance method
/cts/tests/tests/wifi/src/android/net/wifi/cts/
DWifiHotspot2Test.java316 X509Certificate[] certificates = new X509Certificate[]{FakeKeys.CLIENT_CERT}; in testCredentialClientCertificateChain() local
317 credential.setClientCertificateChain(certificates); in testCredentialClientCertificateChain()
319 assertTrue(Arrays.equals(certificates, credential.getClientCertificateChain())); in testCredentialClientCertificateChain()
/cts/hostsidetests/appsecurity/test-apps/tinyapp/
DAndroid.bp426 // signing key with the trusted certificates being ec-p256 and ec-p256_3.