/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 | 87 private List<X509Certificate> certs; field in PKIX.ValidatorParams 123 if (certs == null) { in certificates() 125 certs = Collections.emptyList(); in certificates() 133 certs = xc; in certificates() 136 return certs; in certificates() 251 Collection<? extends Certificate> certs = in getTargetSubject() local 254 if (!certs.isEmpty()) { in getTargetSubject() 256 (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()
|
D | ForwardBuilder.java | 126 Set<X509Certificate> certs = new TreeSet<>(comparator); in getMatchingCerts() local 132 getMatchingEECerts(currState, certStores, certs); in getMatchingCerts() 134 getMatchingCACerts(currState, certStores, certs); in getMatchingCerts() 136 return certs; in getMatchingCerts() 357 Collection<X509Certificate> certs) in getCerts() argument 372 if (certs.addAll((Collection<X509Certificate>) in getCerts()
|
/libcore/ojluni/src/main/java/java/util/jar/ |
D | JarEntry.java | 39 Certificate[] certs; field in JarEntry 74 this.certs = je.certs; in JarEntry() 108 return certs == null ? null : certs.clone(); in getCertificates()
|
D | JarFile.java | 313 if (certs == null && jv != null) { in getCertificates() 314 certs = jv.getCerts(JarFile.this, this); in getCertificates() 316 return certs == null ? null : certs.clone(); in getCertificates()
|
/libcore/ojluni/src/main/java/javax/net/ssl/ |
D | HandshakeCompletedEvent.java | 187 Certificate[] certs = getPeerCertificates(); in getPeerPrincipal() 188 principal = ((X509Certificate)certs[0]).getSubjectX500Principal(); in getPeerPrincipal() 215 Certificate[] certs = getLocalCertificates(); in getLocalPrincipal() 216 if (certs != null) { in getLocalPrincipal() 218 ((X509Certificate)certs[0]).getSubjectX500Principal(); in getLocalPrincipal()
|
D | HttpsURLConnection.java | 146 java.security.cert.Certificate[] certs = getServerCertificates(); in getPeerPrincipal() local 147 return ((X509Certificate)certs[0]).getSubjectX500Principal(); in getPeerPrincipal() 173 java.security.cert.Certificate[] certs = getLocalCertificates(); in getLocalPrincipal() local 174 if (certs != null) { in getLocalPrincipal() 175 return ((X509Certificate)certs[0]).getSubjectX500Principal(); in getLocalPrincipal()
|
/libcore/luni/src/test/java/tests/targets/security/cert/ |
D | CertificateTest.java | 704 private X509Certificate[] certs= new X509Certificate[3]; field in CertificateTest 712 certs[0] = (X509Certificate) certificateFactory in getCertList() 715 certs[1] = (X509Certificate) certificateFactory in getCertList() 718 certs[2] = (X509Certificate) certificateFactory in getCertList() 722 certs[0] = (X509Certificate) certificateFactory in getCertList() 725 certs[1] = (X509Certificate) certificateFactory in getCertList() 728 certs[2] = (X509Certificate) certificateFactory in getCertList() 734 result.add(certs[2]); in getCertList() 735 result.add(certs[1]); in getCertList() 737 result.add(certs[0]); in getCertList() [all …]
|
/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/ojluni/src/main/java/sun/security/util/ |
D | AnchorCertificates.java | 47 private static HashSet<String> certs; field in AnchorCertificates 60 certs = new HashSet<>(); in AccessController.doPrivileged() argument 69 certs.add(X509CertImpl.getFingerprint(HASH, cert)); in AccessController.doPrivileged() 92 boolean result = certs.contains(key); in contains()
|
/libcore/ojluni/src/test/java/security/cert/ |
D | AKISerialNumberTest.java | 129 ArrayList<X509Certificate> certs = new ArrayList<>(); in main() local 130 certs.add(intCert); in main() 131 certs.add(eeCert); in main() 133 new CollectionCertStoreParameters(certs); in main()
|
D | PKIXCertPathValidatorValidity.java | 110 ArrayList<X509Certificate> certs = new ArrayList<>(); in runTest() local 112 certs.add(generateCert(certStr, cf)); in runTest() 114 CertPath cp = cf.generateCertPath(certs); in runTest()
|
/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()
|
D | UnresolvedPermission.java | 50 java.security.cert.Certificate certs[]) { super(""); } in UnresolvedPermission() argument
|
D | CodeSource.java | 53 public CodeSource(URL url, java.security.cert.Certificate certs[]) { in CodeSource() argument
|
/libcore/luni/src/test/java/libcore/java/security/cert/ |
D | X509CertificateTest.java | 1144 Collection<? extends X509Certificate> certs = getCertificates(f, CERTS_X509_DER); 1145 assertNotNull(certs); 1146 assertEquals(2, certs.size()); 1151 Collection<? extends X509Certificate> certs = getCertificates(f, CERTS_X509_PEM); 1152 assertNotNull(certs); 1153 assertEquals(2, certs.size()); 1158 Collection<? extends X509Certificate> certs = getCertificates(f, CERTS_PKCS7_PEM); 1159 assertNotNull(certs); 1160 assertEquals(2, certs.size()); 1165 Collection<? extends X509Certificate> certs = getCertificates(f, CERTS_PKCS7_DER); [all …]
|
/libcore/ojluni/src/main/java/sun/net/www/protocol/jar/ |
D | URLJarFile.java | 277 Certificate[] certs = je.getCertificates(); in getCertificates() local 278 return certs == null? null: certs.clone(); in getCertificates()
|
/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 | 128 private X509Certificate[] dumpCerts(X509Certificate[] certs) { in dumpCerts() argument 130 for (X509Certificate cert : certs) { in dumpCerts() 135 return certs; in dumpCerts()
|