/libcore/ojluni/src/main/java/sun/security/provider/certpath/ |
D | X509CertPath.java | 71 private List<X509Certificate> certs; field in X509CertPath 104 public X509CertPath(List<? extends Certificate> certs) throws CertificateException { in X509CertPath() argument 114 for (Object obj : certs) { in X509CertPath() 126 this.certs = Collections.unmodifiableList( in X509CertPath() 127 new ArrayList<X509Certificate>((List<X509Certificate>)certs)); in X509CertPath() 158 certs = parsePKIPATH(is); in X509CertPath() 161 certs = parsePKCS7(is); in X509CertPath() 289 ListIterator<X509Certificate> li = certs.listIterator(certs.size()); in encodePKIPATH() 297 if (certs.lastIndexOf(cert) != certs.indexOf(cert)) { in encodePKIPATH() 326 certs.toArray(new X509Certificate[certs.size()]), in encodePKCS7() [all …]
|
D | URICertStore.java | 104 private Collection<X509Certificate> certs = Collections.emptySet(); field in URICertStore 273 return getMatchingCerts(certs, selector); in engineGetCertificates() 289 return getMatchingCerts(certs, selector); in engineGetCertificates() 298 return getMatchingCerts(certs, selector); in engineGetCertificates() 306 certs = (Collection<X509Certificate>) in engineGetCertificates() 309 return getMatchingCerts(certs, selector); in engineGetCertificates() 318 certs = Collections.emptySet(); in engineGetCertificates() 319 return certs; in engineGetCertificates() 328 (Collection<X509Certificate> certs, CertSelector selector) { in getMatchingCerts() argument 331 return certs; in getMatchingCerts() [all …]
|
D | PKIX.java | 88 private List<X509Certificate> certs; field in PKIX.ValidatorParams 124 if (certs == null) { in certificates() 126 certs = Collections.emptyList(); in certificates() 134 certs = xc; in certificates() 137 return certs; in certificates() 258 Collection<? extends Certificate> certs = in getTargetSubject() local 261 if (!certs.isEmpty()) { in getTargetSubject() 263 (X509Certificate)certs.iterator().next(); in getTargetSubject()
|
D | OCSPResponse.java | 184 private List<X509CertImpl> certs; field in OCSPResponse 219 certs = new ArrayList<X509CertImpl>(); in OCSPResponse() 370 certs = new ArrayList<X509CertImpl>(derCerts.length); in OCSPResponse() 375 certs.add(cert); in OCSPResponse() 386 certs = new ArrayList<X509CertImpl>(); in OCSPResponse() 431 certs.add(X509CertImpl.toImpl(issuerCert)); in verify() 433 certs.add(X509CertImpl.toImpl(responderCert)); in verify() 441 for (X509CertImpl cert : certs) { in verify() 448 for (X509CertImpl cert : certs) { in verify()
|
/libcore/ojluni/src/main/java/java/util/jar/ |
D | JarEntry.java | 39 Certificate[] certs; field in JarEntry 74 this.certs = je.certs; in JarEntry() 107 return certs == null ? null : certs.clone(); in getCertificates()
|
/libcore/ojluni/src/main/java/sun/security/ssl/ |
D | SunX509KeyManagerImpl.java | 135 Certificate[] certs = ks.getCertificateChain(alias); in SunX509KeyManagerImpl() local 136 if ((certs == null) || (certs.length == 0) || in SunX509KeyManagerImpl() 137 !(certs[0] instanceof X509Certificate)) { in SunX509KeyManagerImpl() 140 if (!(certs instanceof X509Certificate[])) { in SunX509KeyManagerImpl() 141 Certificate[] tmp = new X509Certificate[certs.length]; in SunX509KeyManagerImpl() 142 System.arraycopy(certs, 0, tmp, 0, certs.length); in SunX509KeyManagerImpl() 143 certs = tmp; in SunX509KeyManagerImpl() 147 (X509Certificate[])certs); in SunX509KeyManagerImpl() 152 for (int i = 0; i < certs.length; i++) { in SunX509KeyManagerImpl() 154 + certs[i]); in SunX509KeyManagerImpl() [all …]
|
/libcore/ojluni/src/main/java/sun/security/validator/ |
D | KeyStores.java | 107 Certificate[] certs = ks.getCertificateChain(alias); in getTrustedCerts() local 108 if ((certs != null) && (certs.length > 0) && in getTrustedCerts() 109 (certs[0] instanceof X509Certificate)) { in getTrustedCerts() 110 set.add((X509Certificate)certs[0]); in getTrustedCerts()
|
D | PKIXValidator.java | 368 Collection<X509Certificate> certs = in doBuild() local 370 certs.addAll(Arrays.asList(chain)); in doBuild() 372 certs.addAll(otherCerts); in doBuild() 375 new CollectionCertStoreParameters(certs)); in doBuild()
|
/libcore/luni/src/test/java/tests/targets/security/cert/ |
D | CertificateTest.java | 694 private X509Certificate[] certs= new X509Certificate[3]; field in CertificateTest 702 certs[0] = (X509Certificate) certificateFactory in getCertList() 705 certs[1] = (X509Certificate) certificateFactory in getCertList() 708 certs[2] = (X509Certificate) certificateFactory in getCertList() 712 certs[0] = (X509Certificate) certificateFactory in getCertList() 715 certs[1] = (X509Certificate) certificateFactory in getCertList() 718 certs[2] = (X509Certificate) certificateFactory in getCertList() 724 result.add(certs[2]); in getCertList() 725 result.add(certs[1]); in getCertList() 727 result.add(certs[0]); in getCertList() [all …]
|
/libcore/ojluni/src/main/java/javax/net/ssl/ |
D | HandshakeCompletedEvent.java | 188 Certificate[] certs = getPeerCertificates(); in getPeerPrincipal() 190 ((X509Certificate)certs[0]).getSubjectX500Principal(); in getPeerPrincipal() 217 Certificate[] certs = getLocalCertificates(); in getLocalPrincipal() 218 if (certs != null) { in getLocalPrincipal() 220 ((X509Certificate)certs[0]).getSubjectX500Principal(); in getLocalPrincipal()
|
D | HttpsURLConnection.java | 147 java.security.cert.Certificate[] certs = getServerCertificates(); in getPeerPrincipal() local 149 ((X509Certificate)certs[0]).getSubjectX500Principal()); in getPeerPrincipal() 175 java.security.cert.Certificate[] certs = getLocalCertificates(); in getLocalPrincipal() local 176 if (certs != null) { in getLocalPrincipal() 178 ((X509Certificate)certs[0]).getSubjectX500Principal()); in getLocalPrincipal()
|
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/ |
D | TestCertUtils.java | 105 Certificate[] certs = new Certificate[howMany]; in genCertPath() local 107 certs[i] = new TestCertificate(Integer.toString(startID + i)); in genCertPath() 109 return new TestCertPath(certs); in genCertPath() 156 private Certificate[] certs; field in TestCertUtils.TestCertPath 166 certs = getCertChain(); in TestCertPath() 176 public TestCertPath(Certificate[] certs) { in TestCertPath() argument 178 this.certs = certs; in TestCertPath() 185 return Arrays.asList(certs); in getCertificates() 215 if( certs == null ) { in toString() 219 buf.append(certs.length).append("\n"); in toString() [all …]
|
/libcore/support/src/test/java/org/apache/harmony/xnet/tests/support/ |
D | mySSLSession.java | 28 private Certificate[] certs = null; field in mySSLSession 32 certs = null; in mySSLSession() 41 certs = TestCertUtils.getCertChain(); in mySSLSession() 46 certs = xc; in mySSLSession() 90 if (certs == null) { in getPeerCertificates() 93 return certs; in getPeerCertificates()
|
/libcore/ojluni/src/main/java/sun/security/pkcs/ |
D | SigningCertificateInfo.java | 115 DerValue[] certs = derValue.data.getSequence(1); in parse() local 116 certId = new ESSCertId[certs.length]; in parse() 117 for (int i = 0; i < certs.length; i++) { in parse() 118 certId[i] = new ESSCertId(certs[i]); in parse()
|
/libcore/luni/src/test/java/tests/security/cert/ |
D | CertificateFactory3Test.java | 89 Certificate[] certs = new Certificate[3]; in testGenerateCertificate() local 91 certs[i] = certFs[i].generateCertificate(new ByteArrayInputStream( in testGenerateCertificate() 94 assertEquals(certs[0], certs[1]); in testGenerateCertificate() 95 assertEquals(certs[0], certs[2]); in testGenerateCertificate()
|
/libcore/ojluni/src/main/java/java/security/ |
D | Timestamp.java | 147 List<? extends Certificate> certs = signerCertPath.getCertificates(); in toString() local 148 if (!certs.isEmpty()) { in toString() 149 sb.append("TSA: " + certs.get(0)); in toString()
|
D | Identity.java | 319 Certificate[] certs = new Certificate[len]; in certificates() local 320 certificates.copyInto(certs); in certificates() 321 return certs; in certificates()
|
/libcore/ojluni/src/main/java/sun/security/provider/certpath/ldap/ |
D | LDAPCertStore.java | 456 List<X509Certificate> certs = new ArrayList<>(n); in getCertificates() local 463 certs.add((X509Certificate)cert); in getCertificates() 476 return certs; in getCertificates() 609 HashSet<X509Certificate> certs = new HashSet<>(); in engineGetCertificates() local 639 certs.addAll(getMatchingCrossCerts(request, xsel, null)); in engineGetCertificates() 643 + certs.size()); in engineGetCertificates() 645 certs.addAll(getCertificates(request, CA_CERT, xsel)); in engineGetCertificates() 649 + certs.size()); in engineGetCertificates() 653 certs.addAll(getCertificates(request, USER_CERT, xsel)); in engineGetCertificates() 657 + certs.size()); in engineGetCertificates() [all …]
|
/libcore/luni/src/test/java/libcore/java/security/cert/ |
D | X509CertificateTest.java | 1128 Collection<? extends X509Certificate> certs = getCertificates(f, CERTS_X509_DER); 1129 assertNotNull(certs); 1130 assertEquals(2, certs.size()); 1135 Collection<? extends X509Certificate> certs = getCertificates(f, CERTS_X509_PEM); 1136 assertNotNull(certs); 1137 assertEquals(2, certs.size()); 1142 Collection<? extends X509Certificate> certs = getCertificates(f, CERTS_PKCS7_PEM); 1143 assertNotNull(certs); 1146 assertEquals(0, certs.size()); 1148 assertEquals(2, certs.size()); [all …]
|
D | CertificateFactoryTest.java | 373 List<X509Certificate> certs = new ArrayList<X509Certificate>(); in testGenerateCertPath() local 374 certs.add(cert3.certificate); in testGenerateCertPath() 375 certs.add(cert2.certificate); in testGenerateCertPath() 376 certs.add(cert1.certificate); in testGenerateCertPath() 378 List<X509Certificate> duplicatedCerts = new ArrayList<X509Certificate>(certs); in testGenerateCertPath() 400 testCertPathEncoding(cf, certs, null); in testGenerateCertPath() 404 final Iterator<String> it2 = cf.generateCertPath(certs).getEncodings(); in testGenerateCertPath() 427 testCertPathEncoding(cf, certs, encoding); in testGenerateCertPath()
|
/libcore/ojluni/src/main/java/sun/net/www/protocol/jar/ |
D | URLJarFile.java | 250 Certificate[] certs = je.getCertificates(); in getCertificates() local 251 return certs == null? null: certs.clone(); in getCertificates()
|
/libcore/luni/src/test/java/libcore/java/util/zip/ |
D | OldAndroidZipStressTest.java | 50 Certificate[] certs = je != null ? je.getCertificates() : null; in checkJarCertificates() local 54 if (certs == null) { in checkJarCertificates() 57 System.out.println("We have " + certs.length + " certificates"); in checkJarCertificates()
|
/libcore/support/src/test/java/tests/resources/x509/ |
D | create.sh | 124 cat "$DIR/cert-rsa.der" "$DIR/cert-dsa.der" > /tmp/certs.der 125 openssl x509 -inform d -in "$DIR/cert-rsa.der" > /tmp/certs.pem 126 openssl x509 -inform d -in "$DIR/cert-dsa.der" >> /tmp/certs.pem 128 openssl crl2pkcs7 -certfile /tmp/certs.pem -nocrl > "$DIR/certs-pk7.pem" 129 openssl crl2pkcs7 -certfile /tmp/certs.pem -nocrl -outform d > "$DIR/certs-pk7.der" 131 rm /tmp/certs.pem
|
/libcore/support/src/test/java/libcore/javax/net/ssl/ |
D | TestKeyManager.java | 129 private X509Certificate[] dumpCerts(X509Certificate[] certs) { in dumpCerts() argument 131 for (X509Certificate cert : certs) { in dumpCerts() 136 return certs; in dumpCerts()
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
D | KSPrivateKeyEntryTest.java | 63 Certificate[] certs = new MyCertificate[1];//new Certificate[1]; in testPrivateKeyEntry01() local 66 new KeyStore.PrivateKeyEntry(pk, certs); in testPrivateKeyEntry01()
|