Examples of OcspClientBouncyCastle


Examples of com.itextpdf.text.pdf.OcspClientBouncyCastle

          }
        }

        if (parentCertificate != null) {
          if ((oscpUrl != null) && (oscpUrl.trim().length() > 0)) {
            OcspClient ocspClient = new OcspClientBouncyCastle(certificate, parentCertificate, oscpUrl);
            oscp = ocspClient.getEncoded();
          }
        }
      }

      PdfPKCS7 pkcs7 = new PdfPKCS7(privateKey, chain, null, digestType.getAlgorithm(), null, false);
View Full Code Here

Examples of com.itextpdf.text.pdf.OcspClientBouncyCastle

          }
        }

        if (parentCertificate != null) {
          if ((oscpUrl != null) && (oscpUrl.trim().length() > 0)) {
            OcspClient ocspClient = new OcspClientBouncyCastle(certificate, parentCertificate, oscpUrl);
            oscp = ocspClient.getEncoded();
          }
        }
      }

      PdfPKCS7 pkcs7 = new PdfPKCS7(privateKey, chain, null, digestType.getAlgorithm(), null, false);
View Full Code Here

Examples of com.itextpdf.text.pdf.OcspClientBouncyCastle

          }
        }

        if (parentCertificate != null) {
          if ((oscpUrl != null) && (oscpUrl.trim().length() > 0)) {
            OcspClient ocspClient = new OcspClientBouncyCastle(certificate, parentCertificate, oscpUrl);
            oscp = ocspClient.getEncoded();
          }
        }
      }

      PdfPKCS7 pkcs7 = new PdfPKCS7(privateKey, chain, null, digestType.getAlgorithm(), null, false);
View Full Code Here

Examples of com.itextpdf.text.pdf.OcspClientBouncyCastle

          }
        }

        if (parentCertificate != null) {
          if ((oscpUrl != null) && (oscpUrl.trim().length() > 0)) {
            OcspClient ocspClient = new OcspClientBouncyCastle(certificate, parentCertificate, oscpUrl);
            oscp = ocspClient.getEncoded();
          }
        }
      }

      PdfPKCS7 pkcs7 = new PdfPKCS7(privateKey, chain, null, digestType.getAlgorithm(), null, false);
View Full Code Here

Examples of com.itextpdf.text.pdf.security.OcspClientBouncyCastle

        if (urls.size() == 0) {
            return null;
        }

        // Query each OCSP responder until it gets a valid response.
        OcspClientBouncyCastle client = new OcspClientBouncyCastle();
        for (String url : urls) {
            BasicOCSPResp response = client.getBasicOCSPResp(certificate, issuerCertificate, url);
            if (response != null) {
                return response;
            }
        }
View Full Code Here

Examples of com.itextpdf.text.pdf.security.OcspClientBouncyCastle

    // revocation list e relativo agent (non strettamente necessari) richiede Internet
    OcspClient ocspClient = null;
    if(useInternetCrl)
    {
      ocspClient = new OcspClientBouncyCastle();
      if(crlList == null)
      {
        crlList = new ArrayList<CrlClient>();
        crlList.add(new CrlClientOnline(chain));
      }
View Full Code Here

Examples of com.itextpdf.text.pdf.security.OcspClientBouncyCastle

          }
        }

        if (parentCertificate != null) {
          if ((ocspUrl != null) && (ocspUrl.trim().length() > 0)) {
            ocsp = new OcspClientBouncyCastle();
          }
        }
      }

      MakeSignature.signDetached(appearance, externalDigest, externalSignature, chain, null, ocsp, tsc, 0, CryptoStandard.CMS);
View Full Code Here

Examples of com.itextpdf.text.pdf.security.OcspClientBouncyCastle

          }
        }

        if (parentCertificate != null) {
          if ((ocspUrl != null) && (ocspUrl.trim().length() > 0)) {
            ocsp = new OcspClientBouncyCastle();
          }
        }
      }

      MakeSignature.signDetached(appearance, externalDigest, externalSignature, chain, null, ocsp, tsc, 0, CryptoStandard.CMS);
View Full Code Here

Examples of com.itextpdf.text.pdf.security.OcspClientBouncyCastle

          }
        }

        if (parentCertificate != null) {
          if ((ocspUrl != null) && (ocspUrl.trim().length() > 0)) {
            ocsp = new OcspClientBouncyCastle();
          }
        }
      }

      MakeSignature.signDetached(appearance, externalDigest, externalSignature, chain, null, ocsp, tsc, 0, CryptoStandard.CMS);
View Full Code Here

Examples of com.lowagie.text.pdf.OcspClientBouncyCastle

      if (options.isOcspEnabledX() && chain.length >= 2) {
        options.log("console.getOCSPURL");
        String url = PdfPKCS7.getOCSPURL((X509Certificate) chain[0]);
        if (url != null && url.length() > 0) {
          options.log("console.readingOCSP");
          final OcspClientBouncyCastle ocspClient = new OcspClientBouncyCastle((X509Certificate) chain[0],
              (X509Certificate) chain[1], url);
          ocspClient.setProxy(tmpProxy);
          ocsp = ocspClient.getEncoded();
        }
      }
      byte sh[] = sgn.getAuthenticatedAttributeBytes(hash, cal, ocsp);
      sgn.update(sh, 0, sh.length);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.