Class PAdESExtensionService
java.lang.Object
eu.europa.esig.dss.pades.signature.PAdESExtensionService
The service is used to obtain a validation data for signatures/timestamps within a PDF file and
incorporate it on the LT-level of the document (create a DSS dictionary revision)
-
Constructor Summary
ConstructorsConstructorDescriptionPAdESExtensionService(CertificateVerifier certificateVerifier) Constructor instantiating defaultIPdfObjFactoryPAdESExtensionService(CertificateVerifier certificateVerifier, IPdfObjFactory pdfObjectFactory) Default constructor -
Method Summary
Modifier and TypeMethodDescriptionincorporateValidationData(DSSDocument document) This method adds a DSS dictionary revision to the givendocumentwithout password-protection with the required validation data if needed and no VRI dictionary created.incorporateValidationData(DSSDocument document, char[] passwordProtection) This method adds a DSS dictionary revision to the givendocumentprotected by apasswordProtectionwith the required validation data if needed, without VRI dictionary created.incorporateValidationData(DSSDocument document, char[] passwordProtection, boolean includeVRIDict) This method adds a DSS dictionary revision to the givendocumentprotected by apasswordProtectionwith the required validation data if needed, and a VRI dictionary is defined.
-
Constructor Details
-
PAdESExtensionService
Constructor instantiating defaultIPdfObjFactory- Parameters:
certificateVerifier-CertificateVerifier
-
PAdESExtensionService
public PAdESExtensionService(CertificateVerifier certificateVerifier, IPdfObjFactory pdfObjectFactory) Default constructor- Parameters:
certificateVerifier-CertificateVerifierpdfObjectFactory-IPdfObjFactory
-
-
Method Details
-
incorporateValidationData
This method adds a DSS dictionary revision to the givendocumentwithout password-protection with the required validation data if needed and no VRI dictionary created. NOTE: This method does not check the validity of the provided signatures/timestamps (e.g. a T-level, ...)- Parameters:
document-DSSDocumentto extend- Returns:
DSSDocumentextended document
-
incorporateValidationData
This method adds a DSS dictionary revision to the givendocumentprotected by apasswordProtectionwith the required validation data if needed, without VRI dictionary created. NOTE: This method does not check the validity of the provided signatures/timestamps (e.g. a T-level, ...)- Parameters:
document-DSSDocumentto extendpasswordProtection- a password protection for the PDF document, when required- Returns:
DSSDocumentextended document
-
incorporateValidationData
public DSSDocument incorporateValidationData(DSSDocument document, char[] passwordProtection, boolean includeVRIDict) This method adds a DSS dictionary revision to the givendocumentprotected by apasswordProtectionwith the required validation data if needed, and a VRI dictionary is defined. NOTE: This method does not check the validity of the provided signatures/timestamps (e.g. a T-level, ...)- Parameters:
document-DSSDocumentto extendpasswordProtection- a password protection for the PDF document, when requiredincludeVRIDict- defines whether VRI dictionary should be included to the created DSS dictionary (when applicable)- Returns:
DSSDocumentextended document
-