Package eu.europa.esig.dss.pdf
Class AbstractPdfObjFactory
java.lang.Object
eu.europa.esig.dss.pdf.AbstractPdfObjFactory
- All Implemented Interfaces:
IPdfObjFactory
- Direct Known Subclasses:
ITextDefaultPdfObjFactory
,PdfBoxDefaultObjectFactory
,PdfBoxNativeObjectFactory
,ServiceLoaderPdfObjFactory
An abstract implementation of IPdfObjFactory allowing to set the configuration options
-
Constructor Summary
ModifierConstructorDescriptionprotected
Default constructor instantiating object with null values -
Method Summary
Modifier and TypeMethodDescriptionprotected PDFSignatureService
configure
(PDFSignatureService pdfSignatureService) This method is used to provide configuration to the givenpdfSignatureService
(e.g. set the resources handler builder).void
setPdfDifferencesFinder
(PdfDifferencesFinder pdfDifferencesFinder) This method is used to set a customPdfDifferencesFinder
to detect differences between signed and final PDF document revisions.void
setPdfObjectModificationsFinder
(PdfObjectModificationsFinder pdfObjectModificationsFinder) This method is used to set a customPdfObjectModificationsFinder
to detect modifications occurred within internal PDF objects between signed and final PDF document revisions.void
setPdfPermissionsChecker
(PdfPermissionsChecker pdfPermissionsChecker) This method is used to set a customPdfPermissionsChecker
to verify the PDF document encryption dictionary permission rules for a new signature creation, when applicablevoid
setPdfSignatureFieldPositionChecker
(PdfSignatureFieldPositionChecker pdfSignatureFieldPositionChecker) This method is used to set a customPdfSignatureFieldPositionChecker
to verify the validity of new signature field placement.void
setResourcesHandlerBuilder
(DSSResourcesHandlerBuilder resourcesHandlerBuilder) This method sets aDSSResourcesHandlerBuilder
to be used for operating with internal objects during the signature creation procedure.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface eu.europa.esig.dss.pdf.IPdfObjFactory
newArchiveTimestampService, newContentTimestampService, newPAdESSignatureService, newSignatureTimestampService
-
Constructor Details
-
AbstractPdfObjFactory
protected AbstractPdfObjFactory()Default constructor instantiating object with null values
-
-
Method Details
-
setResourcesHandlerBuilder
Description copied from interface:IPdfObjFactory
This method sets aDSSResourcesHandlerBuilder
to be used for operating with internal objects during the signature creation procedure.- Specified by:
setResourcesHandlerBuilder
in interfaceIPdfObjFactory
- Parameters:
resourcesHandlerBuilder
-DSSResourcesHandlerBuilder
-
setPdfDifferencesFinder
Description copied from interface:IPdfObjFactory
This method is used to set a customPdfDifferencesFinder
to detect differences between signed and final PDF document revisions.- Specified by:
setPdfDifferencesFinder
in interfaceIPdfObjFactory
- Parameters:
pdfDifferencesFinder
-PdfDifferencesFinder
-
setPdfObjectModificationsFinder
public void setPdfObjectModificationsFinder(PdfObjectModificationsFinder pdfObjectModificationsFinder) Description copied from interface:IPdfObjFactory
This method is used to set a customPdfObjectModificationsFinder
to detect modifications occurred within internal PDF objects between signed and final PDF document revisions.- Specified by:
setPdfObjectModificationsFinder
in interfaceIPdfObjFactory
- Parameters:
pdfObjectModificationsFinder
-PdfObjectModificationsFinder
-
setPdfPermissionsChecker
Description copied from interface:IPdfObjFactory
This method is used to set a customPdfPermissionsChecker
to verify the PDF document encryption dictionary permission rules for a new signature creation, when applicable- Specified by:
setPdfPermissionsChecker
in interfaceIPdfObjFactory
- Parameters:
pdfPermissionsChecker
-PdfPermissionsChecker
-
setPdfSignatureFieldPositionChecker
public void setPdfSignatureFieldPositionChecker(PdfSignatureFieldPositionChecker pdfSignatureFieldPositionChecker) Description copied from interface:IPdfObjFactory
This method is used to set a customPdfSignatureFieldPositionChecker
to verify the validity of new signature field placement.- Specified by:
setPdfSignatureFieldPositionChecker
in interfaceIPdfObjFactory
- Parameters:
pdfSignatureFieldPositionChecker
-PdfPermissionsChecker
-
configure
This method is used to provide configuration to the givenpdfSignatureService
(e.g. set the resources handler builder).- Parameters:
pdfSignatureService
-PDFSignatureService
to configure- Returns:
PDFSignatureService
configured
-