Searched defs:certs (Results 1 - 25 of 81) sorted by path

1234

/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/cert/
H A DCertificateFactory_ImplTest.java353 private void verifyCertificates(Collection certs) throws Exception { argument
356 for (Iterator it = certs.iterator(); it.hasNext(); ) {
554 Collection certs =
556 assertNotNull("Factory returned null on correct data", certs);
558 expected_size, certs.size());
559 verifyCertificates(certs);
586 Collection certs = factory.generateCertificates(bais);
587 assertNotNull("Factory returned null on correct PKCS7 data", certs);
589 2, certs.size());
592 for (Iterator it = certs
[all...]
/external/apache-harmony/security/src/test/support/common/java/org/apache/harmony/security/tests/support/
H A DTestCertUtils.java68 * real chain of certificates, it's just an array of 3 certs. The method
103 Certificate[] certs = new Certificate[howMany];
105 certs[i] = new TestCertificate(Integer.toString(startID + i));
107 return new TestCertPath(certs);
153 private Certificate[] certs; field in class:TestCertUtils.TestCertPath
163 certs = getCertChain();
171 * @param certs
174 public TestCertPath(Certificate[] certs) { argument
176 this.certs = certs;
670 engineGenerateCertPath(List certs) argument
[all...]
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cms/
H A DCMSSignedGenerator.java86 protected List certs = new ArrayList(); field in class:CMSSignedGenerator
118 certs.add(certificate.toASN1Structure());
131 certs.addAll(CMSUtils.getCertificatesFromStore(certStore));
167 certs.add(new DERTaggedObject(false, 2, attrCert.toASN1Structure()));
180 certs.addAll(CMSUtils.getAttributeCertificatesFromStore(attrStore));
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/cms/
H A DSignedData.java124 ASN1Set certs,
133 if (certs != null)
135 for (Enumeration en = certs.getObjects(); en.hasMoreElements();)
122 calculateVersion( ASN1ObjectIdentifier contentOid, ASN1Set certs, ASN1Set crls, ASN1Set signerInfs) argument
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/x509/
H A DPKIXCertPath.java66 * @param certs
69 List certs)
71 if (certs.size() < 2)
73 return certs;
76 X500Principal issuer = ((X509Certificate)certs.get(0)).getIssuerX500Principal();
79 for (int i = 1; i != certs.size(); i++)
81 X509Certificate cert = (X509Certificate)certs.get(i);
85 issuer = ((X509Certificate)certs.get(i)).getIssuerX500Principal();
96 return certs;
100 List retList = new ArrayList(certs
68 sortCerts( List certs) argument
[all...]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/keystore/pkcs12/
H A DPKCS12KeyStoreSpi.java116 private IgnoresCaseHashtable certs = new IgnoresCaseHashtable(); field in class:PKCS12KeyStoreSpi
234 Enumeration e = certs.keys();
256 return (certs.get(alias) != null || keys.get(alias) != null);
269 Certificate c = (Certificate)certs.remove(alias);
301 Certificate c = (Certificate)certs.get(alias);
325 Enumeration c = certs.elements();
326 Enumeration k = certs.keys();
466 if (keys.get(alias) == null && certs.get(alias) == null)
489 return (certs.get(alias) != null && keys.get(alias) == null);
508 certs
[all...]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/provider/
H A DCertPathValidatorUtilities.java724 Set certs = new HashSet();
737 // certs.addAll(certStore.getMatches(certSelect));
752 certs.addAll(certStore.getCertificates(certSelect));
762 return certs;
770 // Set certs = new HashSet();
782 // certs.addAll(certStore.getMatches(certSelect));
791 // return certs;
1320 * @param certs The certification path.
1327 protected static PublicKey getNextWorkingKey(List certs, int index) argument
1330 Certificate cert = (Certificate)certs
[all...]
/external/chromium_org/chrome/browser/chromeos/platform_keys/
H A Dplatform_keys_nss.cc204 scoped_ptr<net::CertificateList> certs,
207 from, base::Bind(callback_, base::Passed(&certs), error_message));
434 // Keep only user certificates, i.e. certs for which the private key is
203 CallBack(const tracked_objects::Location& from, scoped_ptr<net::CertificateList> certs, const std::string& error_message) argument
/external/chromium_org/chrome/browser/chromeos/policy/
H A Dnetwork_configuration_updater_unittest.cc226 base::ListValue* certs = NULL; variable
228 onc::toplevel_config::kCertificates, &certs);
229 AppendAll(*certs, &fake_certificates_);
375 false /* do not allow trusted certs from policy */,
396 false /* do not allow trusted certs from policy */,
433 true /* allow trusted certs from policy */,
454 true /* allow trusted certs from policy */,
518 true /* allow trusted certs from policy */,
562 false /* do not allow trusted certs from policy */,
/external/chromium_org/chrome/browser/extensions/api/enterprise_platform_keys/
H A Denterprise_platform_keys_api.cc176 scoped_ptr<net::CertificateList> certs,
185 for (net::CertificateList::const_iterator it = certs->begin();
186 it != certs->end();
175 OnGotCertificates( scoped_ptr<net::CertificateList> certs, const std::string& error_message) argument
/external/chromium_org/chrome/browser/safe_browsing/
H A Dbinary_feature_extractor_win_unittest.cc37 std::vector<scoped_refptr<net::X509Certificate> >* certs) {
39 certs->push_back(
57 std::vector<scoped_refptr<net::X509Certificate> > certs; local
58 ParseCertificateChain(signature_info.certificate_chain(0), &certs);
59 ASSERT_EQ(2, certs.size());
60 EXPECT_EQ("Joe's-Software-Emporium", certs[0]->subject().common_name);
61 EXPECT_EQ("Root Agency", certs[1]->subject().common_name);
74 std::vector<scoped_refptr<net::X509Certificate> > certs; local
75 ParseCertificateChain(signature_info.certificate_chain(0), &certs);
76 ASSERT_EQ(3, certs
35 ParseCertificateChain( const ClientDownloadRequest_CertificateChain& chain, std::vector<scoped_refptr<net::X509Certificate> >* certs) argument
[all...]
H A Ddownload_protection_service_unittest.cc295 net::CertificateList certs = local
300 return certs.empty() ? NULL : certs[0];
1510 // used to sign the certs below. GetCertificateWhitelistStirngs doesn't care
/external/chromium_org/chrome/browser/ui/
H A Dcertificate_dialogs.cc202 const net::X509Certificate::OSCertHandles& certs = local
204 cert_chain.insert(cert_chain.end(), certs.begin(), certs.end());
/external/chromium_org/chrome/browser/ui/webui/
H A Dcertificate_viewer_webui.cc106 const net::X509Certificate::OSCertHandles& certs = local
108 cert_chain.insert(cert_chain.end(), certs.begin(), certs.end());
256 const net::X509Certificate::OSCertHandles& certs = local
258 cert_chain_.insert(cert_chain_.end(), certs.begin(), certs.end());
/external/chromium_org/chrome/common/net/
H A Dx509_certificate_model_unittest.cc233 // Test that explicitly distrusted CA certs are still returned as CA_CERT
254 // Test mozilla_security_manager::GetCertType with server certs and default
257 // tell server certs even if they have no trust bits set.
267 // Test GetCertType with server certs and explicit trust.
274 // Test GetCertType with server certs and explicit distrust.
295 net::CertificateList certs = local
301 for (net::CertificateList::iterator i = certs.begin(); i != certs.end(); ++i)
318 ASSERT_EQ(certs.size(), decoded_certs.size());
320 for (size_t i = 0; i < certs
[all...]
/external/chromium_org/chromeos/
H A Dcert_loader_unittest.cc202 net::CertificateList certs; local
203 ImportCACert("root_ca_cert.pem", primary_db_.get(), &certs);
208 IsCertInCertificateList(certs[0].get(), cert_loader_->cert_list()));
216 IsCertInCertificateList(certs[0].get(), cert_loader_->cert_list()));
226 net::CertificateList certs; local
227 ImportCACert("root_ca_cert.pem", secondary_db.get(), &certs);
232 IsCertInCertificateList(certs[0].get(), cert_loader_->cert_list()));
238 net::CertificateList certs; local
241 &certs);
248 IsCertInCertificateList(certs[
258 net::CertificateList certs; local
272 net::CertificateList certs; local
296 net::CertificateList certs; local
[all...]
/external/chromium_org/chromeos/network/
H A Dclient_cert_resolver.cc133 const net::CertificateList& certs) {
134 // Filter all client certs and determines each certificate's issuer, which is
137 for (net::CertificateList::const_iterator it = certs.begin();
138 it != certs.end(); ++it) {
153 net::X509Certificate::OSCertHandles() /* no intermediate certs */);
171 // Searches for matches between |networks| and |certs| and writes matches to
174 void FindCertificateMatches(const net::CertificateList& certs, argument
177 std::vector<CertAndIssuer> client_certs(CreateSortedCertAndIssuerList(certs));
272 // Prepare and sort the list of known client certs.
132 CreateSortedCertAndIssuerList( const net::CertificateList& certs) argument
H A Dnetwork_cert_migrator.cc54 // the nickname of each certificate of |certs|. If a match is found, the
68 MigrationTask(const net::CertificateList& certs, argument
70 : certs_(certs),
356 // Maybe there are networks referring to certs that were not loaded before but
/external/chromium_org/chromeos/network/onc/
H A Donc_utils_unittest.cc108 CertPEMsByGUIDMap certs; local
109 certs["cert_google"] = "pem_google";
110 certs["cert_webkit"] = "pem_webkit";
131 bool success = ResolveServerCertRefsInNetworks(certs,
/external/chromium_org/content/browser/loader/
H A Dresource_loader_unittest.cc43 ClientCertStoreStub(const net::CertificateList& certs) argument
44 : response_(certs),
/external/chromium_org/net/cert/
H A Dcert_verify_proc_nss.cc275 std::vector<CERTCertificate*> certs; local
281 certs.push_back(node->cert);
285 certs.push_back(root);
298 for (std::vector<CERTCertificate*>::reverse_iterator i = certs.rbegin();
299 i != certs.rend(); ++i) {
H A Dcert_verify_proc_unittest.cc140 CertificateList certs = CreateCertificateListFromFile( local
146 intermediates.push_back(certs[1]->os_cert_handle());
149 X509Certificate::CreateFromHandle(certs[0]->os_cert_handle(),
169 CertificateList certs = CreateCertificateListFromFile( local
173 ASSERT_EQ(3U, certs.size());
176 intermediates.push_back(certs[1]->os_cert_handle());
177 intermediates.push_back(certs[2]->os_cert_handle());
180 X509Certificate::CreateFromHandle(certs[0]->os_cert_handle(),
246 CertificateList certs = CreateCertificateListFromFile( local
249 ASSERT_EQ(3U, certs
625 CertificateList certs = CreateCertificateListFromFile( local
659 CertificateList certs = CreateCertificateListFromFile( local
759 CertificateList certs = CreateCertificateListFromFile( local
848 CertificateList certs = CreateCertificateListFromFile( local
901 CertificateList certs = CreateCertificateListFromFile( local
1038 CertificateList certs = CreateCertificateListFromFile( local
[all...]
H A Dnss_cert_database.cc99 void NSSCertDatabase::ListCertsSync(CertificateList* certs) { argument
100 ListCertsImpl(crypto::ScopedPK11Slot(), certs); local
104 const base::Callback<void(scoped_ptr<CertificateList> certs)>& callback) {
105 scoped_ptr<CertificateList> certs(new CertificateList());
107 // base::Passed will NULL out |certs|, so cache the underlying pointer here.
108 CertificateList* raw_certs = certs.get();
114 base::Bind(callback, base::Passed(&certs)));
120 scoped_ptr<CertificateList> certs(new CertificateList());
122 // base::Passed will NULL out |certs|, so cache the underlying pointer here.
123 CertificateList* raw_certs = certs
201 ExportToPKCS12( const CertificateList& certs, const base::string16& password, std::string* output) const argument
406 ListCertsImpl(crypto::ScopedPK11Slot slot, CertificateList* certs) argument
[all...]
H A Dnss_cert_database_chromeos.cc40 void NSSCertDatabaseChromeOS::ListCertsSync(CertificateList* certs) { argument
41 ListCertsImpl(profile_filter_, certs);
45 const base::Callback<void(scoped_ptr<CertificateList> certs)>& callback) {
46 scoped_ptr<CertificateList> certs(new CertificateList());
48 // base::Pased will NULL out |certs|, so cache the underlying pointer here.
49 CertificateList* raw_certs = certs.get();
55 base::Bind(callback, base::Passed(&certs)));
82 CertificateList* certs) {
83 NSSCertDatabase::ListCertsImpl(crypto::ScopedPK11Slot(), certs); local
85 size_t pre_size = certs
80 ListCertsImpl( const NSSProfileFilterChromeOS& profile_filter, CertificateList* certs) argument
[all...]
H A Dnss_cert_database_chromeos_unittest.cc142 // Load test certs from disk.
171 // Check that the imported certs only shows up in the list for the user that
189 // Tests that the new certs are loaded by async ListCerts method.
212 // Load test certs from disk.
239 // Check that the imported certs only shows up in the list for the user that
254 // Tests that the new certs are loaded by async ListCerts method.
299 CertificateList certs; local
300 db_1_->ListCertsSync(&certs);
301 EXPECT_TRUE(IsCertInCertificateList(cert_1.get(), certs));
302 EXPECT_TRUE(IsCertInCertificateList(cert_2.get(), certs));
317 CertificateList certs; local
[all...]

Completed in 3894 milliseconds

1234