Class PermissionProviderStandard
java.lang.Object
com.adobe.internal.pdftoolkit.core.permissionprovider.PermissionProviderStandard
- All Implemented Interfaces:
PermissionProvider,BitwiseOperandEvaluator
public class PermissionProviderStandard
extends Object
implements PermissionProvider, BitwiseOperandEvaluator
This class implements the Encryption PermissionProvider.
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionPermissionProviderStandard(int perms) constructor for PermissionProviderStandard. -
Method Summary
Modifier and TypeMethodDescriptionbooleanThis is the callback from the BitwiseExpressionEvaluator which is called for each Pemission Param.intThis method returns an integer whose bits represent different permissions allowed or disallowed.booleanisPermitted(ObjectOperations objOpr) Determines whether the given object operation combination is permitted on a given document.static PermissionProviderStandardnewInstance(PermissionProvider provider) Constructs a new instance ofPermissionProviderStandardwith the same permissions allowed in passed provider here.
-
Constructor Details
-
PermissionProviderStandard
public PermissionProviderStandard(int perms) constructor for PermissionProviderStandard. It loads the permissions data that we got from the Acrobat Permissions document.
-
-
Method Details
-
newInstance
public static PermissionProviderStandard newInstance(PermissionProvider provider) throws PDFUnableToCompleteOperationException Constructs a new instance ofPermissionProviderStandardwith the same permissions allowed in passed provider here. -
getPermissionBits
public int getPermissionBits()This method returns an integer whose bits represent different permissions allowed or disallowed. -
isPermitted
Determines whether the given object operation combination is permitted on a given document.- Specified by:
isPermittedin interfacePermissionProvider- Parameters:
objOpr- a valid combination of object/operations available in Acrobat 7.0 Professional.- Returns:
- boolean Only the valid object operations are allowed as input paramater.
-
evaluate
This is the callback from the BitwiseExpressionEvaluator which is called for each Pemission Param.- Specified by:
evaluatein interfaceBitwiseOperandEvaluator- Throws:
InvalidOperandException- See Also:
-