Package net.sf.libpdfsign.exception

Examples of net.sf.libpdfsign.exception.NoSignatureException


        // Get the list of signatures in the document.
        AcroFields fields = reader.getAcroFields();
        ArrayList<String> signatures = fields.getSignatureNames();
        if (signatures.size() == 0) {
            throw new NoSignatureException(messages.getString(
                "Document_has_no_signature."));
        }

        // Check if the last signature is a timestamp.
        String lastSignature = signatures.get(signatures.size() - 1);
View Full Code Here


        ArrayList<String> signatures = fields.getSignatureNames();
        Map<String, PdfPKCS7> result = new LinkedHashMap<String, PdfPKCS7>();

        // Check if the input document is signed.
        if (signatures.size() == 0) {
            throw new NoSignatureException(messages.getString(
                "Document_has_no_signature."));
        }
       
        // Validate each signature.
        for (String signature : signatures) {
View Full Code Here

        // Get the signatures in the document.
        AcroFields fields = reader.getAcroFields();
        ArrayList<String> signatures = fields.getSignatureNames();
        if (signatures.size() == 0) {
            throw new NoSignatureException(messages.getString(
                "Document_has_no_signature."));
        }

        // Check if the last signature is a timestamp.
        String lastSignature = signatures.get(signatures.size() - 1);
View Full Code Here

TOP

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

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.