Interface PermissionProvider
- All Known Implementing Classes:
PermissionProviderStandard
public interface PermissionProvider
This interface must be implemented by each permission provider.
This class specifies the available permission providers.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringPermission provider for DocMDP author signatures.static final StringPermission provider for the security (encryption) handlers.static final StringPermission provider for user permissions.static final StringPermission provider for usage rights.static final StringPermission provider for XFA usage. -
Method Summary
Modifier and TypeMethodDescriptionbooleanisPermitted(ObjectOperations objOpr) Every permission provider must implement this method to query a particular object-operation combination.
-
Field Details
-
SECURITY
Permission provider for the security (encryption) handlers. The security handlers include Standard, PubSec, APS, eBook.- See Also:
-
DOC_MDP
Permission provider for DocMDP author signatures. An author may specify what changes are allowed to a document before the signature becomes invalid.- See Also:
-
UR
Permission provider for usage rights. It enables features in Acrobar Reader.- See Also:
-
UP
Permission provider for user permissions. This allows lightweight setting and clearing of document permissions. These permissions are not protected by signatures or encryption. Therefore, they can be set and cleared by any user.- See Also:
-
XFA
Permission provider for XFA usage. This applies to static and dynamic XFA.- See Also:
-
-
Method Details
-
isPermitted
Every permission provider must implement this method to query a particular object-operation combination. Subsequent calls to this method will refer to the document specified by thedocparameter.- Parameters:
objOpr- a valid combination of object/operations available in Acrobat 7.0 Professional.- Returns:
- boolean
trueif the specified operation is permitted;falseotherwise. - Throws:
PDFUnableToCompleteOperationException- if the specified operation cannot be completed.
-