iText 8.0.5 API
iText.Signatures.Validation.V1.DocumentRevisionsValidator Class Reference

Validator, which is responsible for document revisions validation according to doc-MDP and field-MDP rules. More...

Public Member Functions

virtual iText.Signatures.Validation.V1.DocumentRevisionsValidator  SetEventCountingMetaInfo (IMetaInfo metaInfo)
  Sets the iText.Commons.Actions.Contexts.IMetaInfo that will be used during new iText.Kernel.Pdf.PdfDocument creations. More...
 
virtual iText.Signatures.Validation.V1.DocumentRevisionsValidator  SetAccessPermissions (AccessPermissions accessPermissions)
  Set access permissions to be used during docMDP validation. More...
 
virtual iText.Signatures.Validation.V1.DocumentRevisionsValidator  SetUnexpectedXrefChangesStatus (ReportItem.ReportItemStatus status)
  Set the status to be used for the report items produced during docMDP validation in case revision contains unexpected changes in the XREF table. More...
 
virtual ValidationReport  ValidateAllDocumentRevisions (ValidationContext context, PdfDocument document)
  Validate all document revisions according to docMDP and fieldMDP transform methods. More...
 

Package Functions

  DocumentRevisionsValidator (ValidatorChainBuilder chainBuilder)
  Creates new instance of DocumentRevisionsValidator. More...
 

Detailed Description

Validator, which is responsible for document revisions validation according to doc-MDP and field-MDP rules.

Constructor & Destructor Documentation

◆ DocumentRevisionsValidator()

iText.Signatures.Validation.V1.DocumentRevisionsValidator.DocumentRevisionsValidator ( ValidatorChainBuilder  chainBuilder )
inlinepackage

Creates new instance of DocumentRevisionsValidator.

Parameters
chainBuilder See ValidatorChainBuilder

Member Function Documentation

◆ SetAccessPermissions()

virtual iText.Signatures.Validation.V1.DocumentRevisionsValidator iText.Signatures.Validation.V1.DocumentRevisionsValidator.SetAccessPermissions ( AccessPermissions  accessPermissions )
inlinevirtual

Set access permissions to be used during docMDP validation.

Set access permissions to be used during docMDP validation. If value is provided, access permission related signature parameters will be ignored during the validation.

Parameters
accessPermissions

iText.Signatures.AccessPermissions docMDP validation level

Returns
the same DocumentRevisionsValidator instance.

◆ SetEventCountingMetaInfo()

virtual iText.Signatures.Validation.V1.DocumentRevisionsValidator iText.Signatures.Validation.V1.DocumentRevisionsValidator.SetEventCountingMetaInfo ( IMetaInfo  metaInfo )
inlinevirtual

Sets the iText.Commons.Actions.Contexts.IMetaInfo that will be used during new iText.Kernel.Pdf.PdfDocument creations.

Parameters
metaInfo meta info to set
Returns
the same DocumentRevisionsValidator instance.

◆ SetUnexpectedXrefChangesStatus()

virtual iText.Signatures.Validation.V1.DocumentRevisionsValidator iText.Signatures.Validation.V1.DocumentRevisionsValidator.SetUnexpectedXrefChangesStatus ( ReportItem.ReportItemStatus  status )
inlinevirtual

Set the status to be used for the report items produced during docMDP validation in case revision contains unexpected changes in the XREF table.

Set the status to be used for the report items produced during docMDP validation in case revision contains unexpected changes in the XREF table. Default value is iText.Signatures.Validation.V1.Report.ReportItem.ReportItemStatus.INFO.

Parameters
status

iText.Signatures.Validation.V1.Report.ReportItem.ReportItemStatus to be used in case of unexpected changes in the XREF table

Returns
the same DocumentRevisionsValidator instance.

◆ ValidateAllDocumentRevisions()

virtual ValidationReport iText.Signatures.Validation.V1.DocumentRevisionsValidator.ValidateAllDocumentRevisions ( ValidationContext  context,
PdfDocument  document 
)
inlinevirtual

Validate all document revisions according to docMDP and fieldMDP transform methods.

Parameters
context the validation context in which to validate document revisions
document the document to be validated
Returns

iText.Signatures.Validation.V1.Report.ValidationReport which contains detailed validation results.