Searched refs:certificates (Results 1 - 25 of 66) sorted by relevance

123

/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/cert/
H A DCollectionCertStoreParametersTest.java87 Vector certificates = new Vector();
88 certificates.add(new MyCertificate("TEST", new byte[] { }));
89 new CollectionCertStoreParameters(certificates);
103 Vector certificates = new Vector();
104 certificates.add(new String("Not a Certificate"));
105 new CollectionCertStoreParameters(certificates);
118 Vector certificates = new Vector();
121 new CollectionCertStoreParameters(certificates);
123 assertTrue("isRefUsed_1", certificates == cp.getCollection());
127 certificates
[all...]
/external/apache-harmony/security/src/test/support/common/java/org/apache/harmony/security/tests/support/cert/
H A DMyCertPath.java37 * my certificates list
39 private final Vector certificates; field in class:MyCertPath
58 certificates = new Vector();
59 certificates.add(new MyCertificate("MyEncoding", encoding));
65 * @return certificates list
69 return Collections.unmodifiableList(certificates);
H A DMyCertificateFactorySpi.java120 public CertPath engineGenerateCertPath(List certificates) argument
122 if (certificates == null) {
124 throw new NullPointerException("certificates is null");
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/tls/
H A DFakeSSLSession.java27 private final Certificate[] certificates; field in class:FakeSSLSession
29 public FakeSSLSession(Certificate... certificates) throws Exception { argument
30 this.certificates = certificates;
66 if (certificates.length == 0) {
69 return certificates;
/external/chromium_org/chrome/browser/safe_browsing/incident_reporting/
H A Dbinary_integrity_incident_handlers_unittest.cc28 const unsigned char certificates[][5] = { local
32 for (size_t i = 0; i < arraysize(certificates); ++i) {
35 element->set_certificate(certificates[i], arraysize(certificates[i]));
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/x509/
H A DPKIXCertPath.java44 * CertPath implementation for X.509 certificates.
63 private List certificates; field in class:PKIXCertPath
149 // make sure all certificates are accounted for.
158 PKIXCertPath(List certificates) argument
161 this.certificates = sortCerts(new ArrayList(certificates));
186 certificates = new ArrayList();
192 certificates.add(0, certFactory.generateCertificate(
199 certificates = new ArrayList();
204 certificates
[all...]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/pkcs/
H A DSignedData.java25 private ASN1Set certificates; field in class:SignedData
55 certificates = _certificates;
84 certificates = ASN1Set.getInstance(tagged, false);
117 return certificates;
137 * certificates
153 if (certificates != null)
155 v.add(new DERTaggedObject(false, 0, certificates));
/external/chromium_org/net/third_party/mozilla_security_manager/
H A DnsNSSCertificateDB.h57 const net::CertificateList& certificates,
64 const net::CertificateList& certificates,
H A DnsNSSCertificateDB.cpp63 const net::CertificateList& certificates,
67 if (!slot || certificates.empty() || !root)
106 // Import additional delivered certificates that can be verified.
112 for (size_t i = 0; i < certificates.size(); i++) {
113 const scoped_refptr<net::X509Certificate>& cert = certificates[i];
173 const net::CertificateList& certificates,
176 if (!slot || certificates.empty())
179 for (size_t i = 0; i < certificates.size(); ++i) {
180 const scoped_refptr<net::X509Certificate>& cert = certificates[i];
201 SetCertTrust(certificates[
62 ImportCACerts(PK11SlotInfo* slot, const net::CertificateList& certificates, net::X509Certificate* root, net::NSSCertDatabase::TrustBits trustBits, net::NSSCertDatabase::ImportCertFailureList* not_imported) argument
171 ImportServerCert( PK11SlotInfo* slot, const net::CertificateList& certificates, net::NSSCertDatabase::TrustBits trustBits, net::NSSCertDatabase::ImportCertFailureList* not_imported) argument
[all...]
/external/chromium_org/chromeos/network/onc/
H A Donc_certificate_importer.h30 // Import |certificates|, which must be a list of ONC Certificate objects.
35 // equal to true if all certificates were imported successfully.
36 // |onc_trusted_certificates| will contain the list of certificates that
39 virtual void ImportCertificates(const base::ListValue& certificates,
H A Donc_certificate_importer_impl.h37 // imports) into a certificate store. The GUID of Client certificates is stored
39 // certificates are identified by their PEM and not by GUID.
41 // certificates. http://crbug.com/252119
51 virtual void ImportCertificates(const base::ListValue& certificates,
64 base::ListValue* certificates,
67 // Lists the certificates that have the string |label| as their certificate
105 // The certificate database to which certificates are imported.
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/cms/
H A DSignedData.java27 * certificates [0] IMPLICIT CertificateSet OPTIONAL,
39 * IF ((certificates is present) AND
40 * (any certificates with a type of other are present)) OR
45 * IF (certificates is present) AND
46 * (any version 2 attribute certificates are present)
49 * IF ((certificates is present) AND
50 * (any version 1 attribute certificates are present)) OR
70 private ASN1Set certificates; field in class:SignedData
107 ASN1Set certificates,
111 this.version = calculateVersion(contentInfo.getContentType(), certificates, crl
104 SignedData( ASN1Set digestAlgorithms, ContentInfo contentInfo, ASN1Set certificates, ASN1Set crls, ASN1Set signerInfos) argument
[all...]
/external/chromium_org/third_party/boringssl/src/crypto/x509/
H A Dpkcs7.c29 certificates; local
72 if (!CBS_get_asn1(&signed_data, &certificates,
79 while (CBS_len(&certificates) > 0) {
84 if (!CBS_get_asn1_element(&certificates, &cert, CBS_ASN1_SEQUENCE)) {
121 content_info, certificates; local
136 !CBB_add_asn1(&seq, &certificates,
147 !CBB_add_space(&certificates, &buf, len) ||
/external/chromium_org/net/data/ssl/scripts/
H A Dgenerate-test-certs.sh8 # certificates that can be used to test fetching of an intermediate via AIA.
55 # Generate the leaf certificates
96 > ../certificates/ok_cert.pem"
98 > ../certificates/expired_cert.pem"
100 > ../certificates/root_ca_cert.pem"
102 > ../certificates/name_constraint_bad.pem"
104 > ../certificates/name_constraint_good.pem"
116 -out ../certificates/spdy_pooling.pem
121 -out ../certificates/subjectAltName_sanity_check.pem
127 -out ../certificates/punycodetes
[all...]
H A Dgenerate-client-certificates.sh7 # This script generates certificates that can be used to test SSL client
9 # net/data/ssl/certificates, but may be re-generated for manual testing.
11 # This script generates two chains of test client certificates:
17 # certificates share the same root, but are issued by different
164 try cp out/A.pem ../certificates/client_1.pem
165 try cp out/A.key ../certificates/client_1.key
166 try cp out/A.pk8 ../certificates/client_1.pk8
167 try cp out/B.pem ../certificates/client_1_ca.pem
169 try cp out/D.pem ../certificates/client_2.pem
170 try cp out/D.key ../certificates/client_
[all...]
H A Dgenerate-duplicate-cn-certs.sh7 # This script generates two chains of test certificates:
15 # nicknames for both certificates.
89 echo Exporting the certificates to PKCS#12
94 -out ../certificates/duplicate_cn_1.p12 \
101 -out ../certificates/duplicate_cn_2.p12 \
104 try cp out/A1.pem ../certificates/duplicate_cn_1.pem
105 try cp out/A2.pem ../certificates/duplicate_cn_2.pem
H A Dgenerate-cross-signed-certs.sh74 # Generate the leaf certificates
86 -out ../certificates/cross-signed-root-md5.pem
89 -out ../certificates/cross-signed-root-sha1.pem
92 -out ../certificates/cross-signed-leaf.pem
H A Dgenerate-aia-certs.sh8 # certificates that can be used to test fetching of an intermediate via AIA.
95 try cp out/aia-test-cert.pem ../certificates/aia-cert.pem
99 -out ../certificates/aia-intermediate.der
100 try cp out/aia-test-root.pem ../certificates/aia-root.pem
/external/chromium_org/chrome/browser/chromeos/policy/
H A Dnetwork_configuration_updater.cc87 base::ListValue certificates; local
93 &certificates);
95 ImportCertificates(certificates);
/external/chromium_org/net/cert/
H A Dnss_cert_database.cc209 const CertificateList& certificates) const {
210 DCHECK_GT(certificates.size(), 0U);
212 if (certificates.size() == 1)
213 return certificates[0].get();
215 X509Certificate* cert0 = certificates[0].get();
216 X509Certificate* cert1 = certificates[1].get();
217 X509Certificate* certn_2 = certificates[certificates.size() - 2].get();
218 X509Certificate* certn_1 = certificates[certificates
231 ImportCACerts(const CertificateList& certificates, TrustBits trust_bits, ImportCertFailureList* not_imported) argument
244 ImportServerCert(const CertificateList& certificates, TrustBits trust_bits, ImportCertFailureList* not_imported) argument
[all...]
H A Dnss_cert_database.h42 // Called with |cert| == NULL after importing a list of certificates
50 // Called with |cert| == NULL after importing a list of certificates
104 // certificates and trust records) in |public_slot|, and private information
116 // Get a list of unique certificates in the certificate database (one
117 // instance of all certificates).
121 // Asynchronously get a list of unique certificates in the certificate
122 // database (one instance of all certificates). Note that the callback may be
126 // Get a list of certificates in the certificate database of the given slot.
168 // Import certificates and private keys from PKCS #12 blob into the module.
180 // Export the given certificates an
[all...]
/external/apache-harmony/security/src/test/api/java.injected/java/security/
H A DIdentityTest.java121 assertSame(c1, i.certificates()[0]);
139 assertSame(c1, i.certificates()[0]);
166 // assertSame(c1, i.certificates()[0]);
168 // assertEquals(0, i.certificates().length);
184 * verify certificates() returns a copy of all certificates for this identity
193 Certificate[] s = i.certificates();
200 s = i.certificates();
289 * verify Identity.setPublicKey() removes old key and all identity's certificates
298 assertEquals(2, i.certificates()
[all...]
/external/chromium_org/chrome/browser/
H A Dcertificate_manager_model.cc170 const net::CertificateList& certificates,
173 bool result = cert_db_->ImportCACerts(certificates, trust_bits, not_imported);
174 if (result && not_imported->size() != certificates.size())
180 const net::CertificateList& certificates,
183 bool result = cert_db_->ImportServerCert(certificates, trust_bits,
185 if (result && not_imported->size() != certificates.size())
169 ImportCACerts( const net::CertificateList& certificates, net::NSSCertDatabase::TrustBits trust_bits, net::NSSCertDatabase::ImportCertFailureList* not_imported) argument
179 ImportServerCert( const net::CertificateList& certificates, net::NSSCertDatabase::TrustBits trust_bits, net::NSSCertDatabase::ImportCertFailureList* not_imported) argument
/external/conscrypt/src/main/java/org/conscrypt/
H A DSSLParametersImpl.java344 static byte[][] encodeIssuerX509Principals(X509Certificate[] certificates) argument
346 byte[][] principalBytes = new byte[certificates.length][];
347 for (int i = 0; i < certificates.length; i++) {
348 principalBytes[i] = certificates[i].getIssuerX500Principal().getEncoded();
362 OpenSSLX509Certificate[] certificates = new OpenSSLX509Certificate[certificateRefs.length];
364 certificates[i] = new OpenSSLX509Certificate(certificateRefs[i]);
366 return certificates;
416 X509Certificate[] certificates = keyManager.getCertificateChain(alias);
417 if (certificates == null) {
427 OpenSSLX509Certificate[] openSslCerts = new OpenSSLX509Certificate[certificates
[all...]
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cms/
H A DCMSSignedDataGenerator.java190 ASN1Set certificates = null;
194 certificates = CMSUtils.createBerSetFromList(certs);
209 certificates,

Completed in 1126 milliseconds

123