Package net.sf.libpdfsign.exception

Examples of net.sf.libpdfsign.exception.InvalidSignatureException


        AcroFields fields = reader.getAcroFields();
        PdfPKCS7 pkcs7 = fields.verifySignature(signature);

        // Use the signature to check the document integrity.
        if (!pkcs7.verify()) {
            throw new InvalidSignatureException(
                String.format(messages.getString(
                "Document_was_modified_or_corrupted_after_the_signature__%s"),
                signature));
        }
View Full Code Here

TOP

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

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.