/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | DelegatedCertInstallerTest.java | 35 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/ |
D | KeyManagementTest.java | 33 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 …]
|
D | CaCertManagementTest.java | 22 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/ |
D | X509TrustManagerExtensionsTest.java | 26 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()
|
D | SslCertificateTest.java | 26 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/ |
D | CertInstallerActivity.java | 28 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/ |
D | CertificateTest.java | 29 import java.security.cert.CertificateEncodingException; 30 import java.security.cert.CertificateException; 31 import java.security.cert.CertificateFactory; 32 import java.security.cert.X509Certificate;
|
D | OpenSSLHeartbleedTest.java | 37 import java.security.cert.CertificateException; 38 import java.security.cert.CertificateFactory; 39 import java.security.cert.X509Certificate;
|
D | OpenSSLEarlyCCSTest.java | 40 import java.security.cert.CertificateFactory; 41 import java.security.cert.X509Certificate;
|
/cts/tests/tests/webkit/src/android/webkit/cts/ |
D | WebViewSslTest.java | 43 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/ |
D | sig-create | 75 java.security.cert \ 105 javax.security.cert \
|
D | sig-check | 78 java.security.cert \ 108 javax.security.cert \
|
/cts/apps/CtsVerifier/ |
D | create_test_certs.sh | 67 -cert 'cacert.pem' \
|
/cts/tests/tests/keystore/src/android/keystore/cts/ |
D | TestUtils.java | 42 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 …]
|
D | AndroidKeyStoreTest.java | 46 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 …]
|
D | KeyPairGeneratorTest.java | 41 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/ |
D | KeyChainTest.java | 51 import java.security.cert.Certificate; 52 import java.security.cert.CertificateFactory; 53 import java.security.cert.X509Certificate;
|
D | ScreenLockBoundKeysTest.java | 44 import java.security.cert.CertificateException;
|
D | FingerprintBoundKeysTest.java | 52 import java.security.cert.CertificateException;
|
/cts/tools/dex-tools/dex/ |
D | classes0.out.dex | 24022 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/ |
D | TestWebServer.java | 41 import java.security.cert.X509Certificate;
|
D | CtsTestServer.java | 67 import java.security.cert.X509Certificate;
|