vals.put("reason", sig.getReason()); Calendar cal = sig.getSignDate(); if (cal != null) { dateFormat.setTimeZone(cal.getTimeZone());
if (sig.getSignDate() != null) System.out.println("Modified: " + sdf.format(sig.getSignDate().getTime())); if (sig.getSignDate() != null) cert.checkValidity(sig.getSignDate().getTime()); System.out.println("Certificate valid at signing time"); if (sig.getSignDate() != null) sig.getSignDate().getTime());
if (sig.getSignDate() != null) certFromSignedData.checkValidity(sig.getSignDate().getTime()); System.out.println("Certificate valid at signing time"); if (sig.getSignDate() != null) verifyCertificateChain(certificatesStore, certFromSignedData, sig.getSignDate().getTime());
@Override public Calendar getSignDate() { if (this.signature != null) { return this.signature.getSignDate(); } return null; }
signDate = signature.getSignDate();
vals.put("reason", sig.getReason()); Calendar cal = sig.getSignDate(); if (cal != null) { dateFormat.setTimeZone(cal.getTimeZone());
vals.put("reason", sig.getReason()); Calendar cal = sig.getSignDate(); if (cal != null) { dateFormat.setTimeZone(cal.getTimeZone());
vals.put("reason", sig.getReason()); Calendar cal = sig.getSignDate(); if (cal != null) { dateFormat.setTimeZone(cal.getTimeZone());
if (sig.getSignDate() != null) System.out.println("Modified: " + sdf.format(sig.getSignDate().getTime())); if (sig.getSignDate() != null) cert.checkValidity(sig.getSignDate().getTime()); System.out.println("Certificate valid at signing time"); if (sig.getSignDate() != null) sig.getSignDate().getTime());
/** * @param validationCertPool * @param outerCatalog the PDF Dict of the outer document, if the PDFDocument in a enclosed revision. Can be null. * @param document the signed PDFDocument * @param cms the CMS bytes (CAdES signature) * @param inputStream the stream of the whole signed document * @throws IOException */ PdfBoxCMSInfo(CertificatePool validationCertPool, PdfDict outerCatalog, PDDocument document, PDSignature signature, byte[] cms, InputStream inputStream) throws DSSException, IOException { this.validationCertPool = validationCertPool; this.outerCatalog = PdfDssDict.build(outerCatalog); this.cms = cms; this.location = signature.getLocation(); this.signingDate = signature.getSignDate() != null ? signature.getSignDate().getTime() : null; this.signatureByteRange = signature.getByteRange(); final COSDictionary cosDictionary = document.getDocumentCatalog().getCOSDictionary(); final PdfBoxDict documentDict = new PdfBoxDict(cosDictionary, document); documentDictionary = PdfDssDict.build(documentDict); try { if (cms == null) { // due to not very good revision extracting throw new DSSPadesNoSignatureFound(); } signedBytes = signature.getSignedContent(inputStream); } catch (IOException e) { throw new DSSException(e); } }
if (sig.getSignDate() != null) certFromSignedData.checkValidity(sig.getSignDate().getTime()); System.out.println("Certificate valid at signing time"); if (sig.getSignDate() != null) verifyCertificateChain(certificatesStore, certFromSignedData, sig.getSignDate().getTime());
signDate = signature.getSignDate();