Package net.sf.libpdfsign.exception

Examples of net.sf.libpdfsign.exception.NoRevocationStatusException


                // Select a method to check revocation status.
                boolean useOCSP = OCSPClient.getOCSPURLs(certificate).size() > 0;
                boolean useCRL = CRLDownloader.getCRLDistributionPoints(certificate).size() > 0;
                if (!useOCSP && !useCRL) {
                    throw new NoRevocationStatusException(
                        String.format(messages.getString(
                        "Certificate_has_no_method_to_verify_revocation_status__%s"),
                        CertificateValidator.getCertificateName(certificate)));
                }
View Full Code Here


            // Select a method to check revocation status.
            boolean useOCSP = OCSPClient.getOCSPURLs(certificate).size() > 0;
            boolean useCRL = CRLDownloader.getCRLDistributionPoints(certificate).size() > 0;
            if (!useOCSP && !useCRL) {
                throw new NoRevocationStatusException(
                    String.format(messages.getString(
                    "Certificate_has_no_method_to_verify_revocation_status__%s"),
                    CertificateValidator.getCertificateName(certificate)));
            }
View Full Code Here

                X509CRL crl = (X509CRL) factory.generateCRL(new ByteArrayInputStream(PdfReader.getStreamBytes(stream)));
                crls.add(crl);
            }
        }
        if (ocsps.size() == 0 && crls.size() == 0) {
            throw new NoRevocationStatusException(messages.getString(
                "Document_has_neither_OCSP_responses_nor_CRLs_for_offline_check_of_certificate_revocation_status."));
        }

        // Use date from last timestamp to validade next signature.
        Calendar date = pkcs7.getTimeStampDate();
View Full Code Here

TOP

Related Classes of net.sf.libpdfsign.exception.NoRevocationStatusException

Copyright © 2018 www.massapicom. 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.