aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/at/knowcenter/wag/egov/egiz/PdfAS.java
AgeCommit message (Collapse)AuthorFilesLines
2013-01-09pdf-as-lib maven project files moved to pdf-as-libtknall1-1575/+0
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/pdf-as/trunk@926 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
2011-06-21License replaced/added in .java filestkellner1-11/+19
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@778 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
2011-02-17preparation for releasetknall1-1/+1
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@763 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
2011-02-14- layout spec v1.4.0 addedtknall1-1/+1
- configuration adjusted git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@749 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
2011-02-04- fixed: handling incomplete response from citizen card environment (missing ↵tknall1-1/+1
headers "user-agent" or "Server") - fixed: do not try to delete non-existing file git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@743 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
2011-02-01- Bug fixed (placeholder strict mode was not applied when document does not ↵tknall1-1/+1
contain any (valid) placeholder image) - Documentation updated. git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@740 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
2011-01-28Logging in case of too small signature blocks extended (now a warning is ↵tknall1-1/+1
logged regardless the fact WHY a signature block is small (API, Placeholder or Configuration)). The default threshold value is 150. An optional configuration key (global "default.signature_block_width_warning_threshold=xyz" and local per profile "sig_obj.PROFILE.signature_block_width_warning_threshold=xyz") has been added in order to make the threshold configurable (there might be profiles some day that need to be small, e.g. some versions of minimal layout blocks). git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@739 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
2011-01-24- new reference configurationtknall1-74/+74
- maven2 repository updated git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@727 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
2010-12-09moved suppress_validate_exceptions to verifyparameterspdanner1-11/+2
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@698 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
2010-12-09added suppress_validate_exceptions parameterpdanner1-18/+28
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@695 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
2010-12-06Necessary changes for separation of pdf-as-web and rest of the projectpdanner1-30/+14
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@680 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
2010-12-03Minor updates (log messages...)tknall1-1/+1
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@667 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
2010-11-29added DynamicSignatureProfile supportpdanner1-21/+48
added override properties git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@633 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
2010-11-26Placeholder-image handlingpdanner1-5/+37
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@613 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
2010-11-04- Added image[valign|halign] config parameters to allow separate alignment ↵pdanner1-1/+1
of images. - Normalization of value cell values does not remove multiple newlines any more git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@601 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
2010-10-07Provide profile description via API call.tknall1-1/+1
More logging. WebApp: Bugfix for IE9 (download Link accessed twice) WebApp: Prevent Set-Cookie to be sent to BKU WebApp: Statistical logging added git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@592 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
2010-08-12more loggingtknall1-1/+1
new errorcode for invalid signature dictionary (232) detect invalid signature dictionary detect errors (invalid glyph mappings) when extracting text remove useless certificate digest calculation remove invocation of erroneous getCertDigest method webapp: hotfix for NPE adjustments for new mocca (applet) version (layout) POM: removed deprecated maven elements git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@587 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
2010-04-08minor updates of the web application, more logging added, ↵tknall1-1/+1
default-configuration: a-trust ccs support disabled until bugfixes ccs version is available, pdf-as configuration: small signature profile added git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@581 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
2010-03-16Catching OutOfMemory exceptions, returning appropriate error message/codetknall1-1/+1
Binary signature: bug concerning indirect pdf objects fixed SignaturePositioning improved (Signature position can be declared by String which is parsed) Some more error codes (Out of memory, Invalid signature position) iText utility for creation of pdf files added ConfigUtils updated (destination of configuration to be extracted can now be chosen) PDFASUtils updated (more tools) WebApplication: Freetext pdf creation implemented WebApplication: XSS security updates git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@580 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
2010-01-19- handling protected documents improved.tknall1-0/+2
- minor web application improvements git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@557 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
2010-01-18- bug fixed (new method v1.2.0 was not accepted by web verification connector)tknall1-1/+1
- minor bugs fixed in error.jsp - updating SIGNATURBLOCK.jsp (-> v1.2.0) git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@555 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
2010-01-15Bug regarding table formatting fixedtknall1-1/+1
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@554 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
2010-01-14- Errorcode for unsupported signature method introducedtknall1-1/+1
- Errorcode for unknown (internal error) introduced - Fixed issue: in case of unexpected error (RunTimeException for instance) the output file was not deleted - Some System.out.println commands replaced by log.debug messages - Typos fixed - "can-break-after" character list extended: "." added - Configuration updated - DefaultConfiguration updated - internal version set to 3.1 in preparation for release - maven2-repository updated (pdfbox-0.7.2-pdfas-2 compiled for log4j) - pdfbox-0.7.2-pdfas-2 updated (some debug messages) git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@552 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
2010-01-05added text sig version 1.2.0ferbas1-3/+17
fixed text extraction encoding bug git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@530 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
2009-12-21web application: many minor improvements (pdf/a selection for instance)tknall1-4/+1
Adobe signature attribute: added feature allowing configuration of field "reason" configuration updates default configuration updated git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@521 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
2009-12-02added annotation extraction with pdfbox 0.8.0ferbas1-4/+6
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@471 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
2009-11-19added non text oject infoferbas1-0/+11
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@439 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
2009-11-13added timestamp supportferbas1-5/+20
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@403 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
2009-10-27removed has_sig_idferbas1-2/+2
version: 3.1-snapshot git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@353 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
2009-09-29Bug concerning text matching algorithm fixed.tknall1-1/+1
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@341 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
2009-09-11Bugfixestknall1-1/+1
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@339 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
2009-04-27New signature layout for new MOCCA bku integrated (etsi-moc-1.1).tknall1-1/+1
New architecture implemented that allows different signature layouts for single types of BKUs. git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@337 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
2009-03-19Build script for command line version updated.tknall1-1/+1
JavaDoc fixes. Some updates for debugging messages. Parser for MOCCA-CreateXMLSignatureResponses enhanced. Many updates and fixes for the external web app interface. New profile for invisible signatures added. git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@333 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
2009-02-06Examples for the help screen of the commandline version corrected.tknall1-1/+1
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@332 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
2009-02-04Restored compatibility for old PdfAS.commandline(...) method invokation. ↵tknall1-1/+5
This method is used by external tools (Open Office plugin for instance.) git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@326 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
2009-02-04Some more log messages (e.g. encoding related issues).tknall1-1/+1
Updating web application (in external invocation mode) enhancing support for being used within an iframe. Two new (optional) parameters for external invocation mode: locale: defines the locale being used for webapp (e.g. locale=de or locale=de_DE), invoke-app-error-url: can be used to declare a callback url to the calling web application in order to transfer error messages from pdf-as. In case of error pdf-as redirects the user to the error-page-url (if given) providing the error and the cause in url encoded parameters ("error", "cause"). Formatter for mocca signature params enhanced. git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@323 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
2009-01-29api signatureKeyIdentifier override added, brz distribution assembly for ↵REL-3.0.9-20090129-rev322@329wprinz1-2/+3
maven, mime-type argument checking in SignResult constructor fixed git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@322 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
2009-01-14Switching to itext-2.1.5-rev3628.tknall1-1/+1
itext library: minor adjustments for pdf-as Adding new error code (103) for invalid pdfa/1b font configuration. Minor updates for PDF/A support. Support for local MOCCA CCS added. Multi language for web application. Encoding issue for web application fixed by implementing an EncodingFilter. Dynamic sign upload form implemented. Order of input fields for dynamic upload form changed. MOCCA logo added to sign upload form. git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@319 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
2008-11-25Preparation for multilingual support for web application.tknall1-3/+12
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@312 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
2008-10-10Deprecated webapp-folder removed from svn repository.tknall1-1/+1
New DefaultConfiguration.zip integrated in order to allow mocca signatures. Minor bug concerning choice of cce within the web application fixed. Signature with new online bku MOCCA integrated (new signature device "moc" created). Configuration keys for mocca added. New error codes (371 = signature verification not supported by this connector, 372 = invalid signing time) introduced. Optional check of the signing time for the web application implemented. At signature creation time the signing time is checked for plausibility. This is a workaround for the ITS:mac-linux signing time bug. New configuration key ("signing_time_tolerance") added (applies to web application only) to overcome invalid signing times. A signature is only accepted if its signing time is within a time frame of [current time - signing_time_tolerance, current time + signing_time_tolerance] where signing_time_tolerance is interpreted as seconds. Bugfix: Correct extraction of signatures with wrong signing times implemented. (The order of the signatures is still invalid in case of false signing times.) Optional override of the dynamic creation of the signature retrieval url (locrefcontent) implemented in order to overcome ssl problems (retrieve_signature_data_url_override). Note: Assure that this URL is accessible from the citizen card environment. Download of signed pdf-file for external application interface adjusted. Verification of mocca signed documents implemented. Retrieval of xml response via multipart implemented (mocca strictly follows security layer spec) git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@296 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
2008-07-15Parsing of PublicAuthority-Flag and PublicAuthority-Code from ↵tknall1-1/+1
MOA-VerifyXMLSignatureResponses implemented. git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@295 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
2008-06-17(Default) configuration updated regarding new configuration keys.tknall1-2/+2
Update concerting exclusion of minimal layout profiles for verification. APIDemo updated. Many printStackTraces replaces with logger-messages. Web-Application: New error code (251) introduced: Textual signature of files with no extractable textual content (e.g. files that solely contain images) is prevented. git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@293 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
2008-06-16Release 3.0.6 für BRZREL-3.0.6@330wprinz1-1/+1
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@290 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
2008-06-13Detection of incremental updates updated.tknall1-1/+1
Bug fixed. There was an error concerning empty HashInputData parsing a MOA CreateXMLSignatureResponse. Demo source for API usage created. Issue resolved: Prevent signature of empty document which leads to a meaningless error message from the bku. git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@284 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
2008-06-12A new check for the existence of a configuration has been implemented. The ↵tknall1-1/+1
extraction is skipped if any files or folders would be overwritten. Files like log- or temp-files may exist and do not prevent the deployment of the default configuration. git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@283 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
2008-06-11Serious bug solved. Method storeCertificate tried to fetch a certificate ↵tknall1-1/+1
from store before storing it. If not found (within the store resp. via ldap) the certificate was not stored. git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@282 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
2008-06-10Manual deployment of pdf-as configuration (commandline parameter -ddc) ↵tknall1-1/+1
considers the system property pdf-as.work-dir. Internal default configuration updated. log4.properties within the workdir is now being considered using the api. git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@280 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
2008-06-09Web-Application: Configuration may be declared via system property ↵tknall1-1/+6
"pdf-as.work-dir" or via Servlet-Init-Parameter "work-dir". Bug fixed in RetrieveSignatureDataServlet: Response header didn't contain a content length attribute. The ITS Mac BKU rejects those requests. Workaround for ITS Mac BKU integrated. A redirect via response does only work if the response contains a valid SL request (e.g. a NullOperationRequest). API: The configuration folder may be omitted at instantiating the api. Configuration may be set via system property "pdf-as.work-dir". If no configuration is given at all, the current user's home directory is searched for a folder "PDF-AS". If not found a default configuration is created. If the configuration is explicitely given than the temporary folder is located within the given directory otherwise within the user's temporary directory. Declaring the configuration folder, replacements for system properties like "${catalina.base}/conf/pdfas" may be used. Web-Application: Session is now being invalidated after download of the signed pdf file. Web-Application: Every hardcoded context "pdf-as" has been replaced. git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@277 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
2008-05-30CR Unsichtbare Felderwprinz1-3/+3
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@263 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c
2008-04-24Two bug fixed: 1) Unable to find certificate if binary signature does not ↵tknall1-2/+4
contain the serial number; 2) Certificates thoese issuer names contain certain RDNs (e.g. EMAILADDRESS) could not be retrieved from certstore. PDF-AS library version is logged in order to lighten bugfixing. git-svn-id: https://joinup.ec.europa.eu/svn/pdf-as/trunk@258 7b5415b0-85f9-ee4d-85bd-d5d0c3b42d1c