/**
* OpenCPS PKI is the open source PKI Integration software
* Copyright (C) 2016-present OpenCPS community

* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* any later version.

* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>
*/
package org.opencps.pki;

import java.security.GeneralSecurityException;

import com.itextpdf.text.pdf.security.PdfPKCS7;

/**
 * Signature information of pdf document
 *
 * @author Nguyen Van Nguyen <nguyennv@iwayvietnam.com>
 */
public class PdfSignatureInfo extends SignatureInfo {

    private PdfPKCS7 pkcs7;

    /**
     * Constructor
     */
    public PdfSignatureInfo(PdfPKCS7 pkcs7) {
        super(
            pkcs7.getSigningCertificate(),
            new CertificateInfo(pkcs7.getSigningCertificate()),
            pkcs7.getSignDate(),
            pkcs7.getTimeStampDate(), pkcs7.getDigestAlgorithm(),
            pkcs7.getHashAlgorithm()
        );
        this.pkcs7 = pkcs7;
    }

    /**
     * Get Pdf PKCS#7
     */
    public PdfPKCS7 getPdfPKCS7() {
        return pkcs7;
    }

    /**
     * Check signature is verified
     */
    @Override
    public Boolean isVerify() throws GeneralSecurityException {
        return pkcs7.verify();
    }
}

@@ -1326,16 +1326,28 @@
 pDate(),
+%0A           
  pkcs7.g

Fix typo