Home
last modified time | relevance | path

Searched refs:cert (Results 1 – 22 of 22) sorted by relevance

/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DDelegatedCertInstallerTest.java35 import java.security.cert.Certificate;
36 import java.security.cert.CertificateException;
37 import java.security.cert.CertificateFactory;
178 byte[] cert = TEST_CA.getBytes(); in testCaCertsOperations()
185 installCaCert(cert); in testCaCertsOperations()
188 ADMIN_RECEIVER_COMPONENT, cert)); in testCaCertsOperations()
191 verifyCaCert(cert); in testCaCertsOperations()
195 removeCaCert(cert); in testCaCertsOperations()
198 ADMIN_RECEIVER_COMPONENT, cert)); in testCaCertsOperations()
204 installCaCert(cert); in testCaCertsOperations()
[all …]
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DKeyManagementTest.java33 import java.security.cert.CertificateException;
34 import java.security.cert.CertificateFactory;
35 import java.security.cert.Certificate;
85 final Certificate cert = getCertificate(FAKE_RSA_1.caCertificate); in testCanInstallValidRsaKeypair() local
86 assertTrue(mDevicePolicyManager.installKeyPair(getWho(), privKey, cert, alias)); in testCanInstallValidRsaKeypair() local
97 final Certificate cert = getCertificate(FAKE_RSA_1.caCertificate); in testNullKeyParamsFailPredictably() local
99 mDevicePolicyManager.installKeyPair(getWho(), null, cert, alias); in testNullKeyParamsFailPredictably() local
114 final Certificate cert = getCertificate(FAKE_RSA_1.caCertificate); in testNullAdminComponentIsDenied() local
116 mDevicePolicyManager.installKeyPair(null, privKey, cert, alias); in testNullAdminComponentIsDenied()
128 private static Certificate getCertificate(byte[] cert) throws CertificateException { in getCertificate() argument
[all …]
DCaCertManagementTest.java22 import java.security.cert.CertificateException;
23 import java.security.cert.CertificateFactory;
24 import java.security.cert.Certificate;
73 Certificate cert = readCertificate(certBuffer); in containsCertificate() local
74 if (certificateToMatch.equals(cert)) { in containsCertificate()
/cts/tests/tests/net/src/android/net/http/cts/
DX509TrustManagerExtensionsTest.java26 import java.security.cert.CertificateFactory;
27 import java.security.cert.X509Certificate;
54 X509Certificate cert = (X509Certificate)cf.generateCertificate( in testIsUserAddedCert() local
61 assertEquals(false, tmeNegative.isUserAddedCertificate(cert)); in testIsUserAddedCert()
72 tcs.installCertificate(cert); in testIsUserAddedCert()
75 assertEquals(true, tmePositive.isUserAddedCertificate(cert)); in testIsUserAddedCert()
DSslCertificateTest.java26 import java.security.cert.CertificateEncodingException;
27 import java.security.cert.CertificateException;
28 import java.security.cert.CertificateExpiredException;
29 import java.security.cert.CertificateNotYetValidException;
30 import java.security.cert.X509Certificate;
/cts/hostsidetests/devicepolicy/app/CertInstaller/src/com/android/cts/certinstaller/
DCertInstallerActivity.java28 import java.security.cert.CertificateException;
29 import java.security.cert.CertificateFactory;
33 import java.security.cert.Certificate;
124 String cert = intent.getStringExtra(EXTRA_CERT_DATA); in onCreate() local
133 new Base64InputStream(new ByteArrayInputStream(cert.getBytes()), in onCreate()
164 Certificate cert = readCertificate(certBuffer); in containsCertificate() local
165 if (certificateToMatch.equals(cert)) { in containsCertificate()
/cts/tests/tests/security/src/android/security/cts/
DCertificateTest.java29 import java.security.cert.CertificateEncodingException;
30 import java.security.cert.CertificateException;
31 import java.security.cert.CertificateFactory;
32 import java.security.cert.X509Certificate;
DOpenSSLHeartbleedTest.java37 import java.security.cert.CertificateException;
38 import java.security.cert.CertificateFactory;
39 import java.security.cert.X509Certificate;
DOpenSSLEarlyCCSTest.java40 import java.security.cert.CertificateFactory;
41 import java.security.cert.X509Certificate;
/cts/tests/tests/webkit/src/android/webkit/cts/
DWebViewSslTest.java43 import java.security.cert.CertificateFactory;
44 import java.security.cert.X509Certificate;
504 SslCertificate cert = mWebView.getCertificate(); in testInsecureSiteClearsCertificate() local
505 assertNotNull(cert); in testInsecureSiteClearsCertificate()
506 assertEquals("Android", cert.getIssuedTo().getUName()); in testInsecureSiteClearsCertificate()
542 SslCertificate cert = mWebView.getCertificate(); in testSecureSiteSetsCertificate() local
543 assertNotNull(cert); in testSecureSiteSetsCertificate()
544 assertEquals("Android", cert.getIssuedTo().getUName()); in testSecureSiteSetsCertificate()
891 X509Certificate cert = (X509Certificate) certFactory.generateCertificate( in testClientCertIssuersReceivedCorrectly() local
896 assertEquals(cert.getIssuerDN(), principals[0]); in testClientCertIssuersReceivedCorrectly()
/cts/tools/signature-tools/
Dsig-create75 java.security.cert \
105 javax.security.cert \
Dsig-check78 java.security.cert \
108 javax.security.cert \
/cts/apps/CtsVerifier/
Dcreate_test_certs.sh67 -cert 'cacert.pem' \
/cts/tests/tests/keystore/src/android/keystore/cts/
DTestUtils.java42 import java.security.cert.Certificate;
43 import java.security.cert.CertificateFactory;
44 import java.security.cert.X509Certificate;
143 Certificate cert; in assertKeyStoreKeyPair() local
146 cert = keyStore.getCertificate(alias); in assertKeyStoreKeyPair()
154 assertEquals(cert, privEntry.getCertificate()); in assertKeyStoreKeyPair()
155 assertTrue("Certificate must be an X.509 certificate: " + cert.getClass(), in assertKeyStoreKeyPair()
156 cert instanceof X509Certificate); in assertKeyStoreKeyPair()
157 final X509Certificate x509Cert = (X509Certificate) cert; in assertKeyStoreKeyPair()
160 PublicKey keystorePublicKey = cert.getPublicKey(); in assertKeyStoreKeyPair()
[all …]
DAndroidKeyStoreTest.java46 import java.security.cert.Certificate;
47 import java.security.cert.CertificateFactory;
922 Certificate cert = generateCertificate(FAKE_RSA_CA_1); in testKeyStore_GetCertificateAlias_CAEntry_Unencrypted_Success() local
923 mKeyStore.setCertificateEntry(TEST_ALIAS_1, cert); in testKeyStore_GetCertificateAlias_CAEntry_Unencrypted_Success()
926 mKeyStore.getCertificateAlias(cert)); in testKeyStore_GetCertificateAlias_CAEntry_Unencrypted_Success()
1097 byte[] cert, byte[] ca) throws Exception { in assertPrivateKeyEntryEquals() argument
1102 Certificate expectedCert = certFact.generateCertificate(new ByteArrayInputStream(cert)); in assertPrivateKeyEntryEquals()
1285 final Certificate cert = generateCertificate(FAKE_RSA_CA_1); in testKeyStore_SetCertificate_CAExists_Overwrite_Unencrypted_Success() local
1288 mKeyStore.setCertificateEntry(TEST_ALIAS_1, cert); in testKeyStore_SetCertificate_CAExists_Overwrite_Unencrypted_Success()
1300 final Certificate cert = generateCertificate(FAKE_RSA_CA_1); in testKeyStore_SetCertificate_PrivateKeyExists_Unencrypted_Failure() local
[all …]
DKeyPairGeneratorTest.java41 import java.security.cert.Certificate;
42 import java.security.cert.X509Certificate;
1292 X509Certificate cert = (X509Certificate) mKeyStore.getCertificate(alias); in assertGeneratedKeyPairAndSelfSignedCertificate() local
1293 assertEquals(keyPair.getPublic(), cert.getPublicKey()); in assertGeneratedKeyPairAndSelfSignedCertificate()
1294 assertX509CertificateParameters(cert, in assertGeneratedKeyPairAndSelfSignedCertificate()
1301 Arrays.asList(mKeyStore.getCertificateChain(alias)), cert); in assertGeneratedKeyPairAndSelfSignedCertificate() local
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/
DKeyChainTest.java51 import java.security.cert.Certificate;
52 import java.security.cert.CertificateFactory;
53 import java.security.cert.X509Certificate;
DScreenLockBoundKeysTest.java44 import java.security.cert.CertificateException;
DFingerprintBoundKeysTest.java52 import java.security.cert.CertificateException;
/cts/tools/dex-tools/dex/
Dclasses0.out.dex24022 public java.security.cert.Certificate[] getCertificates()
24790 @dalvik.annotation.Signature (value =()Ljava/util/List<Ljava/security/cert/Certificate;>; )
24796 @dalvik.annotation.Signature (value =()Ljava/util/List<Ljava/security/cert/Certificate;>; )
31600 private java.security.cert.CertPath signerCertPath
31606 java.security.cert.CertPath
31612 public java.security.cert.CertPath getSignerCertPath()
31629 private transient java.security.cert.Certificate[] certs
31631 private transient java.security.cert.CertificateFactory factory
31646 java.security.cert.Certificate[])
31648 private java.security.cert.Certificate[] getCertificatesNoClone()
[all …]
/cts/libs/testserver/src/android/webkit/cts/
DTestWebServer.java41 import java.security.cert.X509Certificate;
DCtsTestServer.java67 import java.security.cert.X509Certificate;