public class PdfSigFieldLockDictionary extends PdfObjectWrapper<PdfDictionary>
Modifier and Type | Class and Description |
---|---|
static class |
PdfSigFieldLockDictionary.LockAction
Enumerates the different actions of a signature field lock.
|
static class |
PdfSigFieldLockDictionary.LockPermissions
Enumerates the different levels of access permissions granted for the document when the corresponding signature field is signed: PdfSigFieldLockDictionary.LockPermissions.NO_CHANGES_ALLOWED - no changes to the document are permitted; any change to the document invalidates the signature, PdfSigFieldLockDictionary.LockPermissions.FORM_FILLING - permitted changes are filling in forms, instantiating page templates, and signing; other changes invalidate the signature, PdfSigFieldLockDictionary.LockPermissions.FORM_FILLING_AND_ANNOTATION - permitted changes are the same as for the previous, as well as annotation creation, deletion, and modification; other changes invalidate the signature.
|
Constructor and Description |
---|
PdfSigFieldLockDictionary()
Creates an instance of PdfSigFieldLockDictionary .
|
PdfSigFieldLockDictionary(PdfDictionary dict)
Creates an instance of PdfSigFieldLockDictionary .
|
Modifier and Type | Method and Description |
---|---|
static PdfName |
getLockActionValue(PdfSigFieldLockDictionary.LockAction action) |
static PdfNumber |
getLockPermission(PdfSigFieldLockDictionary.LockPermissions permissions) |
protected boolean |
isWrappedObjectMustBeIndirect()
Defines if the object behind this wrapper must be an indirect object in the resultant document.
|
PdfSigFieldLockDictionary |
setDocumentPermissions(PdfSigFieldLockDictionary.LockPermissions permissions)
Sets the permissions granted for the document when the corresponding signature field is signed.
|
PdfSigFieldLockDictionary |
setFieldLock(PdfSigFieldLockDictionary.LockAction action, String... fields)
Sets signature lock for specific fields in the document.
|
ensureObjectIsAddedToDocument, ensureUnderlyingObjectHasIndirectReference, flush, getPdfObject, isFlushed, makeIndirect, makeIndirect, markObjectAsIndirect, setForbidRelease, setModified, setPdfObject, unsetForbidRelease
public PdfSigFieldLockDictionary()
PdfSigFieldLockDictionary
.
public PdfSigFieldLockDictionary(PdfDictionary dict)
PdfSigFieldLockDictionary
.
dict
- The dictionary whose entries should be added to the signature field lock dictionary.
public PdfSigFieldLockDictionary setDocumentPermissions(PdfSigFieldLockDictionary.LockPermissions permissions)
PdfSigFieldLockDictionary.LockPermissions
for getting more info.
permissions
- The permissions granted for the document.
PdfSigFieldLockDictionary
object.
public PdfSigFieldLockDictionary setFieldLock(PdfSigFieldLockDictionary.LockAction action, String... fields)
action
- Indicates the set of fields that should be locked after the actual signing of the corresponding signature takes place.
fields
- Names indicating the fields.
PdfSigFieldLockDictionary
object.
public static PdfName getLockActionValue(PdfSigFieldLockDictionary.LockAction action)
public static PdfNumber getLockPermission(PdfSigFieldLockDictionary.LockPermissions permissions)
protected boolean isWrappedObjectMustBeIndirect()
PdfObjectWrapper
isWrappedObjectMustBeIndirect
in class PdfObjectWrapper<PdfDictionary>
Copyright © 1998–2017 iText Group NV. All rights reserved.