From dev-return-58792-archive-asf-public=cust-asf.ponee.io@pdfbox.apache.org Thu Oct 11 12:28:04 2018 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 797EB18064A for ; Thu, 11 Oct 2018 12:28:03 +0200 (CEST) Received: (qmail 77460 invoked by uid 500); 11 Oct 2018 10:28:02 -0000 Mailing-List: contact dev-help@pdfbox.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@pdfbox.apache.org Delivered-To: mailing list dev@pdfbox.apache.org Received: (qmail 77449 invoked by uid 99); 11 Oct 2018 10:28:02 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Oct 2018 10:28:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 07E1D1A2360 for ; Thu, 11 Oct 2018 10:28:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -110.301 X-Spam-Level: X-Spam-Status: No, score=-110.301 tagged_above=-999 required=6.31 tests=[ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001, USER_IN_DEF_SPF_WL=-7.5, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id oqV4zPj5Ibze for ; Thu, 11 Oct 2018 10:28:01 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id ECB145F356 for ; Thu, 11 Oct 2018 10:28:00 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 75DB5E02BE for ; Thu, 11 Oct 2018 10:28:00 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 2089D2486A for ; Thu, 11 Oct 2018 10:28:00 +0000 (UTC) Date: Thu, 11 Oct 2018 10:28:00 +0000 (UTC) From: "Vittal Aithal (JIRA)" To: dev@pdfbox.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (PDFBOX-3390) Code sample for create a PDF PADES-LTV MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/PDFBOX-3390?page=3Dcom.atlassia= n.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D166= 46248#comment-16646248 ]=20 Vittal Aithal commented on PDFBOX-3390: --------------------------------------- I believe this was provided in=C2=A0PDFBOX-3984. Example code was added in [https://svn.apache.org/viewvc/pdfbox/trunk/examp= les/src/main/java/org/apache/pdfbox/examples/signature/validation/.|https:/= /svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apache/pdfbo= x/examples/signature/validation/] This class can take a PDF and will add th= e LTV relevant information based on the last applied signature. > Code sample for create a PDF PADES-LTV > -------------------------------------- > > Key: PDFBOX-3390 > URL: https://issues.apache.org/jira/browse/PDFBOX-3390 > Project: PDFBox > Issue Type: New Feature > Components: Signing > Affects Versions: 2.0.2 > Reporter: Leuqarut > Priority: Minor > Labels: build, test > > 0 > down vote > favorite > I'm using PDFBox 2.0 I would like to create a PDF with PADES-LTV format b= ut not me steps to do so. My question is on the part of the LTV parameters = and when applied. > Need to know at what point are added and how > I put part of my code if you can guide me.But I am using the example of s= igning it PDFBox > https://svn.apache.org/viewvc/pdfbox/trunk/examples/src/main/java/org/apa= che/pdfbox/examples/signature/ > I have this information but not how to apply it PDFBox > According to ETSI TS 102 778-4 V1.1.2 (2009-12) the structure of a PDF do= cument to which LTV is applied is illustrated in figure 2. > Figure 2: Illustration of PDF Document with LTV > The life-time of the protection can be further extended beyond the life-o= f the last document Time-stamp applied by adding further DSS information to= validate the previous last document Time-stamp along with a new document T= ime-stamp. This is illustrated in figure 3. > Figure 3: Illustration of PDF Document with repeated LTV > On the other hand, according to Adobe (as written by their PDF evangelist= Leonard Rosenthol on the iText mailing list in January 2013), > LTV enabled means that all information necessary to validate the file (mi= nus root certs) is contained within. So this statement of yours would be tr= ue. > the PDF is signed correctly and contains all necessary certificates, a va= lid CRL or OSCP response for every certificate But since the only way for t= hat statement to be true is for the presence of DSS, you must have DSS for = LTV-enabled to appear. No timestamp (regular or document level) is required= . Due to this divergence PDF documents with LTV according to ETSI usually a= re presented by Adobe software to have one not LTV-enabled document time st= amp. > reference (for itext) :http://stackoverflow.com/questions/27892960/how-to= -enable-ltv-for-a-timestamp-signature > Thanks in advance -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@pdfbox.apache.org For additional commands, e-mail: dev-help@pdfbox.apache.org