@@ -0,0 +1,1620 @@
+/**%0A* OpenCPS PKI is the open source PKI Integration software%0A* Copyright (C) 2016-present OpenCPS community%0A%0A* This program is free software: you can redistribute it and/or modify%0A* it under the terms of the GNU Affero General Public License as published by%0A* the Free Software Foundation, either version 3 of the License, or%0A* any later version.%0A%0A* This program is distributed in the hope that it will be useful,%0A* but WITHOUT ANY WARRANTY; without even the implied warranty of%0A* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the%0A* GNU Affero General Public License for more details.%0A* You should have received a copy of the GNU Affero General Public License%0A* along with this program. If not, see %3Chttp://www.gnu.org/licenses/%3E%0A*/%0Apackage org.opencps.pki;%0A%0Aimport java.security.GeneralSecurityException;%0Aimport java.security.cert.X509Certificate;%0A%0Aimport com.itextpdf.text.pdf.security.PdfPKCS7;%0A%0A/**%0A * Signature information of pdf document%0A *%0A * @author Nguyen Van Nguyen %3Cnguyennv@iwayvietnam.com%3E%0A */%0Apublic class PdfSignatureInfo extends SignatureInfo %7B%0A%0A    private PdfPKCS7 pkcs7;%0A%0A%09/**%0A%09 * Constructor%0A%09 */%0A%09public PdfSignatureInfo(PdfPKCS7 pkcs7) %7B%0A        this.pkcs7 = pkcs7;%0A        certInfo = new CertificateInfo(pkcs7.getSigningCertificate());%0A        signDate = pkcs7.getSignDate();%0A        timeStamp = pkcs7.getTimeStampDate();%0A    %7D%0A%0A    /**%0A     * Get Pdf PKCS#7%0A     */%0A    public PdfPKCS7 getPdfPKCS7() %7B%0A        return pkcs7;%0A    %7D%0A%0A    /**%0A     * Check signature is verified%0A     */%0A%09@Override%0A%09public Boolean isVerify() throws GeneralSecurityException %7B%0A%09%09return pkcs7.verify();%0A%09%7D%0A%7D%0A

Add Signature information of pdf document