com.spire.pdf.interactive.digitalsignatures
Class PdfMDPSignatureMaker

java.lang.Object
  extended by com.spire.pdf.interactive.digitalsignatures.PdfSignatureMaker
      extended by com.spire.pdf.interactive.digitalsignatures.PdfMDPSignatureMaker

public class PdfMDPSignatureMaker
extends PdfSignatureMaker

Pdf MDP (modification detection and prevention) signature maker. A document can contain only one MDP signature, it must be the first signed in the document. It enables the author to specify what changes are permitted to be made the document and what changes invalidate the author’s signature.


Field Summary
static int Level1Permissions
          No changes to the document are permitted; any change to the document invalidates the signature.
static int Level2Permissions
          Permitted changes are filling in forms, instantiating page templates, and signing; other changes invalidate the signature.
static int Level3Permissions
          Permitted changes are the same as for 2, as well as annotation creation, deletion, and modification; other changes invalidate the signature
 
Constructor Summary
PdfMDPSignatureMaker(PdfDocument document, PdfCertificate certificate)
          Initialize a new instance.
PdfMDPSignatureMaker(PdfDocument document, PdfCertificate certificate, int permissions)
          Initialize a new instance.
 
Method Summary
 
Methods inherited from class com.spire.pdf.interactive.digitalsignatures.PdfSignatureMaker
getSignature, makeSignature, makeSignature, makeSignature, makeSignature, setAcro6Layers
 

Field Detail

Level1Permissions

public static final int Level1Permissions
No changes to the document are permitted; any change to the document invalidates the signature.

See Also:
Constant Field Values

Level2Permissions

public static final int Level2Permissions
Permitted changes are filling in forms, instantiating page templates, and signing; other changes invalidate the signature.

See Also:
Constant Field Values

Level3Permissions

public static final int Level3Permissions
Permitted changes are the same as for 2, as well as annotation creation, deletion, and modification; other changes invalidate the signature

See Also:
Constant Field Values
Constructor Detail

PdfMDPSignatureMaker

public PdfMDPSignatureMaker(PdfDocument document,
                            PdfCertificate certificate)
Initialize a new instance.

Parameters:
document - The pdf document object.
certificate - The X.509 certificate.

PdfMDPSignatureMaker

public PdfMDPSignatureMaker(PdfDocument document,
                            PdfCertificate certificate,
                            int permissions)
Initialize a new instance.

Parameters:
document - The pdf document object.
certificate - The X.509 certificate.
permissions - The access permissions granted for this document. Validate values: PdfMDPSignatureMaker.Level1Permissions/PdfMDPSignatureMaker.Level2Permissions/PdfMDPSignatureMaker.Level3Permissions