Package com.itextpdf.signatures
Class SignaturePermissions
java.lang.Object
com.itextpdf.signatures.SignaturePermissions
A helper class that tells you more about the type of signature (certification or approval) and the signature's DMP settings.
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
Class that contains a field lock action and an array of the fields that are involved. -
Constructor Summary
ConstructorDescriptionSignaturePermissions
(PdfDictionary sigDict, SignaturePermissions previous) Creates an object that can inform you about the type of signature in a signature dictionary as well as some of the permissions defined by the signature. -
Method Summary
Modifier and TypeMethodDescriptionGetter for the field lock actions, and fields that are impacted by the actionboolean
Getter to find out if adding annotations is allowed after signing.boolean
Getter to find out if the signature is a certification signature.boolean
Getter to find out if filling out fields is allowed after signing.
-
Constructor Details
-
SignaturePermissions
Creates an object that can inform you about the type of signature in a signature dictionary as well as some of the permissions defined by the signature.- Parameters:
-
sigDict
- the signature dictionary -
previous
- the signature permissions
-
-
Method Details
-
isCertification
public boolean isCertification()Getter to find out if the signature is a certification signature.- Returns:
- true if the signature is a certification signature, false for an approval signature.
-
isFillInAllowed
public boolean isFillInAllowed()Getter to find out if filling out fields is allowed after signing.- Returns:
- true if filling out fields is allowed
-
isAnnotationsAllowed
public boolean isAnnotationsAllowed()Getter to find out if adding annotations is allowed after signing.- Returns:
- true if adding annotations is allowed
-
getFieldLocks
Getter for the field lock actions, and fields that are impacted by the action- Returns:
- an Array with field names
-