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
ConstructorDescriptionPAdESExtensionService
(CertificateVerifier certificateVerifier) Constructor instantiating defaultIPdfObjFactory
PAdESExtensionService
(CertificateVerifier certificateVerifier, IPdfObjFactory pdfObjectFactory) Default constructor -
Method Summary
Modifier and TypeMethodDescriptionincorporateValidationData
(DSSDocument document) This method adds a DSS dictionary revision to the givendocument
without 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 givendocument
protected by apasswordProtection
with 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 givendocument
protected by apasswordProtection
with 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
-CertificateVerifier
pdfObjectFactory
-IPdfObjFactory
-
-
Method Details
-
incorporateValidationData
This method adds a DSS dictionary revision to the givendocument
without 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
-DSSDocument
to extend- Returns:
DSSDocument
extended document
-
incorporateValidationData
This method adds a DSS dictionary revision to the givendocument
protected by apasswordProtection
with 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
-DSSDocument
to extendpasswordProtection
- a password protection for the PDF document, when required- Returns:
DSSDocument
extended document
-
incorporateValidationData
public DSSDocument incorporateValidationData(DSSDocument document, char[] passwordProtection, boolean includeVRIDict) This method adds a DSS dictionary revision to the givendocument
protected by apasswordProtection
with 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
-DSSDocument
to 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:
DSSDocument
extended document
-