/external/nist-pkits/src/libcore/java/security/cert/ |
D | X509CertificateNistPkitsTest.java | 86 X509Certificate[] certs = new X509Certificate[names.length]; in getCertificates() local 89 certs[i] = getCertificate(f, names[i]); in getCertificates() 92 return certs; in getCertificates() 120 X509Certificate[] certs = getCertificates(f, pathCerts); in getTestPath() local 121 return f.generateCertPath(Arrays.asList(certs)); in getTestPath() 126 X509Certificate[] certs = getCertificates(f, pathCerts); in getTestPathParams() local 132 certCollection.addAll(Arrays.asList(certs)); in getTestPathParams() 147 private void assertInvalidPath(String trustAnchor, String[] certs, String[] crls) in assertInvalidPath() argument 151 PKIXParameters params = getTestPathParams(f, trustAnchor, certs, crls); in assertInvalidPath() 152 CertPath cp = getTestPath(f, certs); in assertInvalidPath() [all …]
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/x509/ |
D | PKIXCertPath.java | 72 List certs) in sortCerts() argument 74 if (certs.size() < 2) in sortCerts() 76 return certs; in sortCerts() 79 X500Principal issuer = ((X509Certificate)certs.get(0)).getIssuerX500Principal(); in sortCerts() 82 for (int i = 1; i != certs.size(); i++) in sortCerts() 84 X509Certificate cert = (X509Certificate)certs.get(i); in sortCerts() 88 issuer = ((X509Certificate)certs.get(i)).getIssuerX500Principal(); in sortCerts() 99 return certs; in sortCerts() 103 List retList = new ArrayList(certs.size()); in sortCerts() 104 List orig = new ArrayList(certs); in sortCerts() [all …]
|
D | X509CRLObject.java | 280 Enumeration certs = c.getRevokedCertificateEnumeration(); in loadCRLEntries() local 283 while (certs.hasMoreElements()) in loadCRLEntries() 285 TBSCertList.CRLEntry entry = (TBSCertList.CRLEntry)certs.nextElement(); in loadCRLEntries() 304 Enumeration certs = c.getRevokedCertificateEnumeration(); in getRevokedCertificate() local 307 while (certs.hasMoreElements()) in getRevokedCertificate() 309 TBSCertList.CRLEntry entry = (TBSCertList.CRLEntry)certs.nextElement(); in getRevokedCertificate() 526 Enumeration certs = c.getRevokedCertificateEnumeration(); in isRevoked() local 530 if (certs.hasMoreElements()) in isRevoked() 534 while (certs.hasMoreElements()) in isRevoked() 536 TBSCertList.CRLEntry entry = TBSCertList.CRLEntry.getInstance(certs.nextElement()); in isRevoked()
|
/external/boringssl/src/crypto/x509/ |
D | pkcs7_test.c | 473 STACK_OF(X509) *certs = sk_X509_new_null(); in test_cert_reparse() 479 if (!PKCS7_get_certificates(certs, &pkcs7)) { in test_cert_reparse() 485 if (!PKCS7_bundle_certificates(&cbb, certs) || in test_cert_reparse() 497 if (sk_X509_num(certs) != sk_X509_num(certs2)) { in test_cert_reparse() 502 for (i = 0; i < sk_X509_num(certs); i++) { in test_cert_reparse() 503 X509 *a = sk_X509_value(certs, i); in test_cert_reparse() 528 sk_X509_pop_free(certs, X509_free); in test_cert_reparse() 600 STACK_OF(X509) *certs = sk_X509_new_null(); in test_pem_certs() 602 if (!PKCS7_get_PEM_certificates(certs, bio)) { in test_pem_certs() 607 if (sk_X509_num(certs) != 1) { in test_pem_certs() [all …]
|
/external/google-tv-pairing-protocol/java/src/com/google/polo/pairing/ |
D | PoloUtil.java | 43 Certificate[] certs = session.getPeerCertificates(); in getPeerCert() local 44 if (certs == null || certs.length < 1) { in getPeerCert() 47 return certs[0]; in getPeerCert() 62 Certificate[] certs = session.getLocalCertificates(); in getLocalCert() local 63 if (certs == null || certs.length < 1) { in getLocalCert() 66 return certs[0]; in getLocalCert()
|
/external/apache-harmony/security/src/test/support/common/java/org/apache/harmony/security/tests/support/ |
D | TestCertUtils.java | 103 Certificate[] certs = new Certificate[howMany]; in genCertPath() local 105 certs[i] = new TestCertificate(Integer.toString(startID + i)); in genCertPath() 107 return new TestCertPath(certs); in genCertPath() 153 private Certificate[] certs; field in TestCertUtils.TestCertPath 163 certs = getCertChain(); in TestCertPath() 174 public TestCertPath(Certificate[] certs) { in TestCertPath() argument 176 this.certs = certs; in TestCertPath() 183 return Arrays.asList(certs); in getCertificates() 213 if (certs == null) { in toString() 216 buf.append(certs.length).append("\n"); in toString() [all …]
|
/external/apache-harmony/x-net/src/test/impl/java.injected/org/apache/harmony/xnet/provider/jsse/ |
D | CertificateMessageTest.java | 63 assertEquals("incorrect message", 0, message.certs.length); in testCertificateMessage1() 75 assertEquals("incorrect message_2", 0, message_2.certs.length); in testCertificateMessage1() 92 assertTrue("incorrect cert encoding", Arrays.equals(message.certs[0] in testCertificateMessage2() 103 assertEquals("Incorrect message decoding", message.certs.length, message_2.certs.length); in testCertificateMessage2() 104 assertTrue("incorrect cert encoding", Arrays.equals(message.certs[0] in testCertificateMessage2() 105 .getEncoded(), message_2.certs[0].getEncoded())); in testCertificateMessage2()
|
/external/jetty/src/java/org/eclipse/jetty/server/ssl/ |
D | SslCertificates.java | 113 X509Certificate[] certs; in customize() local 120 certs=cachedInfo.getCerts(); in customize() 126 certs=SslCertificates.getCertChain(sslSession); in customize() 129 cachedInfo=new CachedInfo(keySize,certs,idStr); in customize() 133 if (certs!=null) in customize() 134 request.setAttribute("javax.servlet.request.X509Certificate",certs); in customize() 159 CachedInfo(Integer keySize, X509Certificate[] certs,String idStr) in CachedInfo() argument 162 this._certs=certs; in CachedInfo()
|
/external/conscrypt/src/main/java/org/conscrypt/ |
D | OpenSSLX509CertPath.java | 93 final OpenSSLX509Certificate[] certs = new OpenSSLX509Certificate[mCertificates.size()]; in getEncoded() local 94 final long[] certRefs = new long[certs.length]; in getEncoded() 96 for (int i = 0, j = certs.length - 1; j >= 0; i++, j--) { in getEncoded() 100 certs[j] = (OpenSSLX509Certificate) cert; in getEncoded() 102 certs[j] = OpenSSLX509Certificate.fromX509Der(cert.getEncoded()); in getEncoded() 105 certRefs[j] = certs[j].getContext(); in getEncoded() 165 final List<OpenSSLX509Certificate> certs = in fromPkiPathEncoding() local 171 certs.add(new OpenSSLX509Certificate(certRefs[i])); in fromPkiPathEncoding() 174 return new OpenSSLX509CertPath(certs); in fromPkiPathEncoding()
|
D | AbstractSessionContext.java | 219 Certificate[] certs = session.getPeerCertificates(); in toBytes() local 220 daos.writeInt(certs.length); in toBytes() 222 for (Certificate cert : certs) { in toBytes() 259 X509Certificate[] certs = new X509Certificate[count]; in toSession() local 264 certs[i] = OpenSSLX509Certificate.fromX509Der(certData); in toSession() 267 return new OpenSSLSessionImpl(sessionData, host, port, certs, this); in toSession()
|
/external/ipsec-tools/src/racoon/ |
D | eaytest.c | 225 char **certs; local 342 certs = getcerts(certpath); 350 certs = getcerts(NULL); 360 while (*certs != NULL) { 368 c.v = *certs; 369 c.l = strlen(*certs); 406 certs++; 415 char **certs = NULL, **p; local 551 p = (char **)realloc(certs, (n + 1) * sizeof(certs)); 554 certs = p; [all …]
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jce/provider/ |
D | RFC3280CertPathUtilities.java | 535 List certs = builder.engineBuild(extParams).getCertPath().getCertificates(); in processCRLF() local 537 validKeys.add(CertPathValidatorUtilities.getNextWorkingKey(certs, 0, helper)); in processCRLF() 896 List certs = certPath.getCertificates(); in prepareCertB() local 897 X509Certificate cert = (X509Certificate)certs.get(index); in prepareCertB() 898 int n = certs.size(); in prepareCertB() 1080 List certs = certPath.getCertificates(); in prepareNextCertA() local 1081 X509Certificate cert = (X509Certificate)certs.get(index); in prepareNextCertA() 1156 List certs = certPath.getCertificates(); in processCertE() local 1157 X509Certificate cert = (X509Certificate)certs.get(index); in processCertE() 1185 List certs = certPath.getCertificates(); in processCertBC() local [all …]
|
D | PKIXCertPathValidatorSpi.java | 110 List certs = certPath.getCertificates(); in engineValidate() local 111 int n = certs.size(); in engineValidate() 113 if (certs.isEmpty()) in engineValidate() 119 X509Certificate cert = (X509Certificate) certs.get(0); in engineValidate() 150 … trust = CertPathValidatorUtilities.findTrustAnchor((X509Certificate) certs.get(certs.size() - 1), in engineValidate() 155 throw new CertPathValidatorException(e.getMessage(), e, certPath, certs.size() - 1); in engineValidate() 292 && !paramsPKIX.getTargetConstraints().match((X509Certificate) certs.get(0))) in engineValidate() 310 for (index = certs.size() - 1; index >= 0; index--) in engineValidate() 334 cert = (X509Certificate) certs.get(index); in engineValidate() 335 boolean verificationAlreadyPerformed = (index == certs.size() - 1); in engineValidate()
|
D | X509CRLObject.java | 279 Enumeration certs = c.getRevokedCertificateEnumeration(); in loadCRLEntries() local 282 while (certs.hasMoreElements()) in loadCRLEntries() 284 TBSCertList.CRLEntry entry = (TBSCertList.CRLEntry)certs.nextElement(); in loadCRLEntries() 303 Enumeration certs = c.getRevokedCertificateEnumeration(); in getRevokedCertificate() local 306 while (certs.hasMoreElements()) in getRevokedCertificate() 308 TBSCertList.CRLEntry entry = (TBSCertList.CRLEntry)certs.nextElement(); in getRevokedCertificate() 525 Enumeration certs = c.getRevokedCertificateEnumeration(); in isRevoked() local 529 if (certs != null) in isRevoked() 533 while (certs.hasMoreElements()) in isRevoked() 535 TBSCertList.CRLEntry entry = TBSCertList.CRLEntry.getInstance(certs.nextElement()); in isRevoked()
|
/external/boringssl/src/tool/ |
D | pkcs12.cc | 123 STACK_OF(X509) *certs = sk_X509_new_null(); in DoPKCS12() 125 if (!PKCS12_get_key_and_certs(&key, certs, &pkcs12, password)) { in DoPKCS12() 134 for (size_t i = 0; i < sk_X509_num(certs); i++) { in DoPKCS12() 135 PEM_write_X509(stdout, sk_X509_value(certs, i)); in DoPKCS12() 137 sk_X509_pop_free(certs, X509_free); in DoPKCS12()
|
/external/apache-harmony/x-net/src/test/api/java/org/apache/harmony/xnet/tests/javax/net/ssl/ |
D | HandshakeCompletedEventTest.java | 101 Certificate[] certs = event.getLocalCertificates(); in testGetLocalCertificates() local 103 if (certs == null && ses_certs == null) { in testGetLocalCertificates() 106 if (certs == null || ses_certs == null) { in testGetLocalCertificates() 109 for (int i = 0; i < certs.length; i++) { in testGetLocalCertificates() 110 if (certs[i] != ses_certs[i]) { in testGetLocalCertificates()
|
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/cert/ |
D | CertificateFactory_ImplTest.java | 353 private void verifyCertificates(Collection certs) throws Exception { in verifyCertificates() argument 356 for (Iterator it = certs.iterator(); it.hasNext(); ) { in verifyCertificates() 554 Collection certs = in testGenerateBase64Certificates() local 556 assertNotNull("Factory returned null on correct data", certs); in testGenerateBase64Certificates() 558 expected_size, certs.size()); in testGenerateBase64Certificates() 559 verifyCertificates(certs); in testGenerateBase64Certificates() 586 Collection certs = factory.generateCertificates(bais); in testGenerateBase64PKCS7() local 587 assertNotNull("Factory returned null on correct PKCS7 data", certs); in testGenerateBase64PKCS7() 589 2, certs.size()); in testGenerateBase64PKCS7() 592 for (Iterator it = certs.iterator(); it.hasNext(); ) { in testGenerateBase64PKCS7() [all …]
|
/external/boringssl/src/crypto/pkcs8/ |
D | pkcs12_test.cc | 685 ScopedX509Stack certs(sk_X509_new_null()); in Test() local 686 if (!certs) { in Test() 693 if (!PKCS12_get_key_and_certs(&key, certs.get(), &pkcs12, "foo")) { in Test() 700 if (sk_X509_num(certs.get()) != 1 || key == nullptr) { in Test()
|
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/cert/ |
D | CertificateFactory3Test.java | 90 Certificate[] certs = new Certificate[3]; in testGenerateCertificate() local 92 certs[i] = certFs[i].generateCertificate(new ByteArrayInputStream( in testGenerateCertificate() 95 assertEquals(certs[0], certs[1]); in testGenerateCertificate() 96 assertEquals(certs[0], certs[2]); in testGenerateCertificate()
|
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/ |
D | KeyStore_Impl1Test.java | 459 KeyStoreTestSupport.MCertificate certs[] = { in testEntry02() local 466 certs); in testEntry02() 502 certs.length); in testEntry02() 504 assertEquals("Incorrect CertificateChain", cc[t], certs[t]); in testEntry02() 519 certs.length); in testEntry02() 521 assertEquals("Incorrect CertificateChain", cc[t], certs[t]); in testEntry02() 725 KeyStoreTestSupport.MCertificate certs[] = { in testEntry05() local 741 kss[i].setKeyEntry("ZZZ", null, pwd, certs); in testEntry05() 760 kss[i].setKeyEntry(aliases[j], key, pwd, certs); in testEntry05() 763 kss[i].setKeyEntry("KeyAlias", key, pwd, certs); in testEntry05() [all …]
|
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/ |
D | org.eclipse.ecf.ssl_1.0.0.v20100529-0735.jar | ... private java.security.cert.X509Certificate[] certs
private String type
public void <init> (java ... |
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cms/ |
D | CMSUtils.java | 59 List certs = new ArrayList(); in getCertificatesFromStore() local 67 certs.add(c.toASN1Structure()); in getCertificatesFromStore() 70 return certs; in getCertificatesFromStore() 81 List certs = new ArrayList(); in getAttributeCertificatesFromStore() local 89 certs.add(new DERTaggedObject(false, 2, attrCert.toASN1Structure())); in getAttributeCertificatesFromStore() 92 return certs; in getAttributeCertificatesFromStore()
|
D | CMSSignedGenerator.java | 86 protected List certs = new ArrayList(); field in CMSSignedGenerator 118 certs.add(certificate.toASN1Structure()); in addCertificate() 131 certs.addAll(CMSUtils.getCertificatesFromStore(certStore)); in addCertificates() 167 certs.add(new DERTaggedObject(false, 2, attrCert.toASN1Structure())); in addAttributeCertificate() 180 certs.addAll(CMSUtils.getAttributeCertificatesFromStore(attrStore)); in addAttributeCertificates()
|
/external/jetty/src/java/org/eclipse/jetty/security/authentication/ |
D | ClientCertAuthenticator.java | 97 …X509Certificate[] certs = (X509Certificate[]) request.getAttribute("javax.servlet.request.X509Cert… in validateRequest() local 102 if (certs != null && certs.length > 0) in validateRequest() 112 validator.validate(certs); in validateRequest() 115 for (X509Certificate cert: certs) in validateRequest()
|
/external/libvncserver/webclients/java-applet/ssl/ |
D | tightvnc-1.3dev7_javasrc-vncviewer-ssl.patch | 323 + java.security.cert.X509Certificate[] certs, 328 + java.security.cert.X509Certificate[] certs, 348 + java.security.cert.X509Certificate[] certs, 353 + java.security.cert.X509Certificate[] certs, 355 + /* we want to check 'certs' against 'trusturlCerts' */ 364 + if (certs == null) { 366 + "No this-certs array."); 368 + if (certs.length < 1) { 370 + "No this-certs Certs."); 372 + if (certs.length != trusturlCerts.length) { [all …]
|