Searched refs:certs (Results 1 - 25 of 48) sorted by relevance

12

/libcore/ojluni/src/main/java/java/util/jar/
H A DJarEntry.java39 Certificate[] certs; field in class:JarEntry
74 this.certs = je.certs;
107 return certs == null ? null : certs.clone();
H A DJarFile.java275 if (certs == null && jv != null) {
276 certs = jv.getCerts(JarFile.this, this);
278 return certs == null ? null : certs.clone();
/libcore/ojluni/src/main/java/sun/security/validator/
H A DKeyStores.java107 Certificate[] certs = ks.getCertificateChain(alias);
108 if ((certs != null) && (certs.length > 0) &&
109 (certs[0] instanceof X509Certificate)) {
110 set.add((X509Certificate)certs[0]);
H A DPKIXValidator.java368 Collection<X509Certificate> certs =
370 certs.addAll(Arrays.asList(chain));
372 certs.addAll(otherCerts);
375 new CollectionCertStoreParameters(certs));
/libcore/ojluni/src/main/java/javax/net/ssl/
H A DHandshakeCompletedEvent.java186 // if the provider does not support it, fallback to peer certs.
188 Certificate[] certs = getPeerCertificates();
190 ((X509Certificate)certs[0]).getSubjectX500Principal();
215 // if the provider does not support it, fallback to local certs.
217 Certificate[] certs = getLocalCertificates();
218 if (certs != null) {
220 ((X509Certificate)certs[0]).getSubjectX500Principal();
H A DHttpsURLConnection.java147 java.security.cert.Certificate[] certs = getServerCertificates();
149 ((X509Certificate)certs[0]).getSubjectX500Principal());
175 java.security.cert.Certificate[] certs = getLocalCertificates();
176 if (certs != null) {
178 ((X509Certificate)certs[0]).getSubjectX500Principal());
/libcore/ojluni/src/main/java/sun/security/ssl/
H A DSunX509KeyManagerImpl.java83 * server certs). See chooseServerAlias() for details.
135 Certificate[] certs = ks.getCertificateChain(alias);
136 if ((certs == null) || (certs.length == 0) ||
137 !(certs[0] instanceof X509Certificate)) {
140 if (!(certs instanceof X509Certificate[])) {
141 Certificate[] tmp = new X509Certificate[certs.length];
142 System.arraycopy(certs, 0, tmp, 0, certs.length);
143 certs
[all...]
/libcore/ojluni/src/main/java/sun/security/provider/certpath/
H A DX509CertPath.java71 private List<X509Certificate> certs; field in class:X509CertPath
99 * @param certs a <code>List</code> of <code>X509Certificate</code>s
100 * @exception CertificateException if <code>certs</code> contains an element
104 public X509CertPath(List<? extends Certificate> certs) throws CertificateException { argument
109 // Note; The certs parameter is not necessarily to be of Certificate
113 // for (Certificate obj : certs)
114 for (Object obj : certs) {
126 this.certs = Collections.unmodifiableList(
127 new ArrayList<X509Certificate>((List<X509Certificate>)certs));
158 certs
[all...]
H A DURICertStore.java68 * a collection of Certificates encoded as a PKCS#7 "certs-only" CMS message.
104 private Collection<X509Certificate> certs = Collections.emptySet(); field in class:URICertStore
165 // if ldap URI, use an LDAPCertStore to fetch certs and CRLs
273 return getMatchingCerts(certs, selector);
289 return getMatchingCerts(certs, selector);
298 return getMatchingCerts(certs, selector);
306 certs = (Collection<X509Certificate>)
309 return getMatchingCerts(certs, selector);
318 certs = Collections.emptySet();
319 return certs;
327 getMatchingCerts(Collection<X509Certificate> certs, CertSelector selector) argument
[all...]
H A DPKIX.java88 private List<X509Certificate> certs; field in class:PKIX.ValidatorParams
124 if (certs == null) {
126 certs = Collections.emptyList();
134 certs = xc;
137 return certs;
258 Collection<? extends Certificate> certs =
261 if (!certs.isEmpty()) {
263 (X509Certificate)certs.iterator().next();
270 "non-fatal exception retrieving certs: " + e);
H A DOCSPResponse.java79 * certs [0] EXPLICIT SEQUENCE OF Certificate OPTIONAL }
184 private List<X509CertImpl> certs; field in class:OCSPResponse
219 certs = new ArrayList<X509CertImpl>();
363 // certs are available
366 throw new IOException("Bad encoding in certs element of " +
370 certs = new ArrayList<X509CertImpl>(derCerts.length);
375 certs.add(cert);
386 certs = new ArrayList<X509CertImpl>();
409 // certs that were supplied in the request
429 // of certs fro
[all...]
/libcore/ojluni/src/main/java/java/security/
H A DTimestamp.java147 List<? extends Certificate> certs = signerCertPath.getCertificates();
148 if (!certs.isEmpty()) {
149 sb.append("TSA: " + certs.get(0));
H A DCodeSource.java44 public CodeSource(URL url, java.security.cert.Certificate certs[]) { } argument
H A DUnresolvedPermission.java48 java.security.cert.Certificate certs[]) { super(""); }
45 UnresolvedPermission(String type, String name, String actions, java.security.cert.Certificate certs[]) argument
H A DIdentity.java319 Certificate[] certs = new Certificate[len];
320 certificates.copyInto(certs);
321 return certs;
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
H A DTestCertUtils.java70 * real chain of certificates, it's just an array of 3 certs. The method
105 Certificate[] certs = new Certificate[howMany];
107 certs[i] = new TestCertificate(Integer.toString(startID + i));
109 return new TestCertPath(certs);
156 private Certificate[] certs; field in class:TestCertUtils.TestCertPath
166 certs = getCertChain();
174 * @param certs
176 public TestCertPath(Certificate[] certs) { argument
178 this.certs = certs;
675 engineGenerateCertPath(List certs) argument
[all...]
/libcore/luni/src/test/java/tests/targets/security/cert/
H A DCertificateTest.java694 private X509Certificate[] certs= new X509Certificate[3]; field in class:CertificateTest
702 certs[0] = (X509Certificate) certificateFactory
705 certs[1] = (X509Certificate) certificateFactory
708 certs[2] = (X509Certificate) certificateFactory
712 certs[0] = (X509Certificate) certificateFactory
715 certs[1] = (X509Certificate) certificateFactory
718 certs[2] = (X509Certificate) certificateFactory
724 result.add(certs[2]);
725 result.add(certs[1]);
727 result.add(certs[
[all...]
/libcore/support/src/test/java/org/apache/harmony/xnet/tests/support/
H A DmySSLSession.java28 private Certificate[] certs = null; field in class:mySSLSession
32 certs = null;
41 certs = TestCertUtils.getCertChain();
46 certs = xc;
90 if (certs == null) {
93 return certs;
/libcore/ojluni/src/main/java/sun/security/pkcs/
H A DSigningCertificateInfo.java47 * certs SEQUENCE OF ESSCertID,
114 // Parse certs
115 DerValue[] certs = derValue.data.getSequence(1);
116 certId = new ESSCertId[certs.length];
117 for (int i = 0; i < certs.length; i++) {
118 certId[i] = new ESSCertId(certs[i]);
/libcore/luni/src/test/java/tests/security/cert/
H A DCertificateFactory3Test.java89 Certificate[] certs = new Certificate[3];
91 certs[i] = certFs[i].generateCertificate(new ByteArrayInputStream(
94 assertEquals(certs[0], certs[1]);
95 assertEquals(certs[0], certs[2]);
/libcore/ojluni/src/main/java/sun/security/provider/certpath/ldap/
H A DLDAPCertStore.java443 /* fetch encoded certs from storage */
456 List<X509Certificate> certs = new ArrayList<>(n);
457 /* decode certs and check if they satisfy selector */
463 certs.add((X509Certificate)cert);
476 return certs;
603 "to find certs");
609 HashSet<X509Certificate> certs = new HashSet<>();
616 // -2: only EE certs accepted
639 certs.addAll(getMatchingCrossCerts(request, xsel, null));
642 + "getMatchingCrossCerts(subject,xsel,null),certs
[all...]
/libcore/luni/src/test/java/libcore/java/util/zip/
H A DOldAndroidZipStressTest.java50 Certificate[] certs = je != null ? je.getCertificates() : null;
54 if (certs == null) {
57 System.out.println("We have " + certs.length + " certificates");
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
H A DKSPrivateKeyEntryTest.java63 Certificate[] certs = new MyCertificate[1];//new Certificate[1];
66 new KeyStore.PrivateKeyEntry(pk, certs);
/libcore/ojluni/src/main/java/javax/crypto/
H A DJarVerifier.java136 * Verify that the provided certs include the
139 * @param certs the list of certs to be checked.
140 * @throws Exception if the list of certs did not contain
143 static void verifyPolicySigned(java.security.cert.Certificate[] certs) argument
/libcore/luni/src/test/java/libcore/java/security/cert/
H A DCertificateFactoryTest.java373 List<X509Certificate> certs = new ArrayList<X509Certificate>();
374 certs.add(cert3.certificate);
375 certs.add(cert2.certificate);
376 certs.add(cert1.certificate);
378 List<X509Certificate> duplicatedCerts = new ArrayList<X509Certificate>(certs);
400 testCertPathEncoding(cf, certs, null);
404 final Iterator<String> it2 = cf.generateCertPath(certs).getEncodings();
427 testCertPathEncoding(cf, certs, encoding);

Completed in 1079 milliseconds

12