/cts/tools/utils/ |
D | certificates.py | 21 class Certificate(object): class 49 return Certificate(cert, key) 77 return Certificate(cert, key) 81 a = Certificate.create("Root A") 82 a_sha1 = Certificate.create("Root A", key=a.key, digest="sha1") 83 b = Certificate.create("Root B") 84 a_to_b = Certificate.create("Root A", b, a.key) 85 b_to_a = Certificate.create("Root B", a, b.key) 86 leaf1 = Certificate.create("Leaf", a) 87 intermediate_a = Certificate.create("intermediate", a) [all …]
|
/cts/tests/tests/keystore/src/android/keystore/cts/ |
D | AndroidKeyStoreTest.java | 49 import java.security.cert.Certificate; 766 private Certificate generateCertificate(byte[] fakeUser1) throws Exception { in generateCertificate() 773 new Certificate[] { in makeUserEcKey1() 780 new Certificate[] { in makeUserRsaKey1() 914 Certificate retrieved = mKeyStore.getCertificate(TEST_ALIAS_1); in testKeyStore_GetCertificate_Single_Unencrypted_Success() 919 Certificate actual = f.generateCertificate(new ByteArrayInputStream(FAKE_RSA_CA_1)); in testKeyStore_GetCertificate_Single_Unencrypted_Success() 934 Certificate cert = generateCertificate(FAKE_RSA_CA_1); in testKeyStore_GetCertificateAlias_CAEntry_Unencrypted_Success() 948 Certificate actual = f.generateCertificate(new ByteArrayInputStream(FAKE_RSA_USER_1)); in testKeyStore_GetCertificateAlias_PrivateKeyEntry_Unencrypted_Success() 958 Certificate actual = generateCertificate(FAKE_RSA_CA_1); in testKeyStore_GetCertificateAlias_CAEntry_WithPrivateKeyUsingCA_Unencrypted_Success() 975 Certificate actual = f.generateCertificate(new ByteArrayInputStream(FAKE_RSA_CA_1)); in testKeyStore_GetCertificateAlias_NonExist_Empty_Unencrypted_Failure() [all …]
|
D | KeyAttestationTest.java | 87 import java.security.cert.Certificate; 231 Certificate certificates[] = keyStore.getCertificateChain(keystoreAlias); in testEcAttestation_NoChallenge() 269 Certificate certificates[] = keyStore.getCertificateChain(keystoreAlias); in testEcAttestation_DeviceLocked() 399 Certificate certificates[] = keyStore.getCertificateChain(keystoreAlias); in testRsaAttestation_NoChallenge() 438 Certificate certificates[] = keyStore.getCertificateChain(keystoreAlias); in testRsaAttestation_DeviceLocked() 556 Certificate certificates[] = keyStore.getCertificateChain(keystoreAlias); in testRsaAttestation() 615 Certificate certificates[] = keyStore.getCertificateChain(keystoreAlias); in testEcAttestation() 1178 private void verifyCertificateChain(Certificate[] certChain, boolean expectStrongBox) in verifyCertificateChain()
|
D | PerformanceTestBase.java | 32 import java.security.cert.Certificate; 343 Certificate[] getCertificateChain() throws Exception { in getCertificateChain()
|
D | TestUtils.java | 47 import java.security.cert.Certificate; 164 Certificate cert; in assertKeyStoreKeyPair() 189 Certificate[] chain = privEntry.getCertificateChain(); in assertKeyStoreKeyPair() 426 Certificate certificate, in importIntoAndroidKeyStore() 431 new KeyStore.PrivateKeyEntry(privateKey, new Certificate[] {certificate}), in importIntoAndroidKeyStore() 453 Certificate originalCert = TestUtils.getRawResX509Certificate(context, certResId); in importIntoAndroidKeyStore()
|
D | KeyPairGeneratorTest.java | 42 import java.security.cert.Certificate; 1648 private static void assertSelfSignedCertificateSignatureVerifies(Certificate certificate) { in assertSelfSignedCertificateSignatureVerifies() 1707 Certificate[] certificateChain) throws Exception { in assertUsableForTLSPeerAuthentication() 1775 Future<Certificate[]> future = executor.submit(new Callable<Certificate[]>() { in assertSSLConnectionWithClientAuth() 1777 public Certificate[] call() throws Exception { in assertSSLConnectionWithClientAuth() 1789 Certificate[] usedServerCerts = client.getSession().getPeerCertificates(); in assertSSLConnectionWithClientAuth() 1790 Certificate[] usedClientCerts = future.get(); in assertSSLConnectionWithClientAuth()
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | KeyManagementTest.java | 57 import java.security.cert.Certificate; 115 final Certificate cert = getCertificate(FAKE_RSA_1.caCertificate); in testCanInstallAndRemoveValidRsaKeypair() 139 final Certificate cert = getCertificate(FAKE_RSA_1.caCertificate); in testCanInstallWithAutomaticAccess() 144 getWho(), privKey, new Certificate[] {cert}, grant, true)) in testCanInstallWithAutomaticAccess() 148 getWho(), privKey, new Certificate[] {cert}, withhold, false)) in testCanInstallWithAutomaticAccess() 167 private List<Certificate> loadCertificateChain(String assetName) throws Exception { in loadCertificateChain() 168 final Collection<Certificate> certs = loadCertificatesFromAsset(assetName); in loadCertificateChain() 169 final ArrayList<Certificate> certChain = new ArrayList(certs); in loadCertificateChain() 181 final Certificate[] certChain = loadCertificateChain("user-cert-chain.crt") in testCanInstallCertChain() 182 .toArray(new Certificate[0]); in testCanInstallCertChain() [all …]
|
D | CaCertManagementTest.java | 24 import java.security.cert.Certificate; 99 Certificate caCert = readCertificate(caBytes); in assertInstalled() 105 Certificate caCert = readCertificate(caBytes); in assertUninstalled() 134 private boolean isCaCertInstalledAndTrusted(Certificate caCert) in isCaCertInstalledAndTrusted() 183 private static Certificate readCertificate(byte[] certBuffer) throws CertificateException { in readCertificate()
|
D | DelegatedCertInstallerTest.java | 39 import java.security.cert.Certificate; 191 final Certificate caCert = CertificateFactory.getInstance("X.509") in testCaCertsOperations()
|
/cts/hostsidetests/devicepolicy/app/CertInstaller/src/com/android/cts/certinstaller/ |
D | DirectDelegatedCertInstallerTest.java | 42 import java.security.cert.Certificate; 135 final Certificate caCert = CertificateFactory.getInstance("X.509") in testCaCertsOperations() 173 Certificate certificate = CertificateFactory.getInstance("X.509") in testInstallKeyPair() 177 assertThat(mDpm.installKeyPair(null, privatekey, new Certificate[]{certificate}, alias, in testInstallKeyPair() 236 Certificate certificateToMatch = readCertificate(toMatch); in containsCertificate() 238 Certificate cert = readCertificate(certBuffer); in containsCertificate() 246 private static Certificate readCertificate(byte[] certBuffer) throws CertificateException { in readCertificate()
|
D | CertInstallerReceiver.java | 32 import java.security.cert.Certificate; 128 Certificate certificate = CertificateFactory.getInstance("X.509") in onReceive() 160 Certificate certificateToMatch = readCertificate(toMatch); in containsCertificate() 162 Certificate cert = readCertificate(certBuffer); in containsCertificate() 170 private static Certificate readCertificate(byte[] certBuffer) throws CertificateException { in readCertificate()
|
D | CertSelectionDelegateTest.java | 41 import java.security.cert.Certificate; 103 final Certificate cert = getCertificate(FAKE_RSA_1.caCertificate); in testCanSelectKeychainKeypairs() 152 private static Certificate getCertificate(byte[] cert) throws CertificateException { in getCertificate()
|
/cts/hostsidetests/devicepolicy/app/DelegateApp/src/com/android/cts/delegate/ |
D | CertInstallDelegateTest.java | 37 import java.security.cert.Certificate; 164 Certificate certificate = CertificateFactory.getInstance("X.509").generateCertificate( in testCanAccessApis() 176 Certificate certificateToMatch = readCertificate(toMatch); in containsCertificate() 178 Certificate cert = readCertificate(certBuffer); in containsCertificate() 186 private static Certificate readCertificate(byte[] certBuffer) throws CertificateException { in readCertificate()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | ConscryptIntermediateVerificationTest.java | 24 import java.security.cert.Certificate; 42 Collection<? extends Certificate> certs; in loadCertificates() 54 for (Certificate cert : certs) { in loadCertificates()
|
D | CertBlacklistTest.java | 24 import java.security.cert.Certificate; 92 Collection<? extends Certificate> collection = factory.generateCertificates(is); in loadCertificates() 95 for (Certificate cert : collection) { in loadCertificates()
|
D | CertificateTest.java | 29 import java.security.cert.Certificate; 143 Certificate cert = certFactory.generateCertificate(fis); in loadCertsFromDisk()
|
/cts/tests/tests/net/src/android/net/http/cts/ |
D | X509TrustManagerExtensionsTest.java | 22 import java.security.cert.Certificate; 51 for (Certificate cert : tm.getAcceptedIssuers()) { in testIsUserAddedCertificateDefaults()
|
/cts/hostsidetests/devicepolicy/app/ProfileOwner/src/com/android/cts/profileowner/ |
D | AdminActionBookkeepingTest.java | 27 import java.security.cert.Certificate; 93 final Certificate cert = CertificateFactory.getInstance("X.509") in testGetPolicyInstalledCaCerts()
|
/cts/tests/tests/networksecurityconfig/networksecurityconfig-downloadmanager/src/android/security/net/config/cts/ |
D | DownloadManagerTest.java | 42 import java.security.cert.Certificate; 135 Collection<? extends Certificate> certs; in bindTLSServer() 141 for (Certificate cert : certs) { in bindTLSServer()
|
/cts/tests/tests/networksecurityconfig/networksecurityconfig-resourcesrc/src/android/security/net/config/cts/ |
D | ResourceSourceTest.java | 24 import java.security.cert.Certificate; 76 for (Certificate cert : factory.generateCertificates(is)) { in loadCertificates()
|
/cts/tests/tests/networksecurityconfig/src/android/security/net/config/cts/ |
D | TestUtils.java | 27 import java.security.cert.Certificate; 85 for (Certificate c : factory.generateCertificates(is)) { in loadCertificates()
|
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
D | AdminActionBookkeepingTest.java | 25 import java.security.cert.Certificate; 222 final Certificate cert = CertificateFactory.getInstance("X.509") in testGetPolicyInstalledCaCerts()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/ |
D | KeyChainTest.java | 52 import java.security.cert.Certificate; 212 final Certificate[] chain = new Certificate[2]; in doInBackground()
|
/cts/tests/tests/identity/src/android/security/identity/cts/ |
D | AttestationTest.java | 34 import java.security.cert.Certificate;
|
/cts/tests/admin/src/android/admin/cts/ |
D | DevicePolicyManagerTest.java | 45 import java.security.cert.Certificate; 982 Certificate cert = cf.generateCertificate( in testSetKeyPairCertificate_failIfNotProfileOwner() 984 List<Certificate> certs = new ArrayList(); in testSetKeyPairCertificate_failIfNotProfileOwner()
|