Module org.sejda.impl.sambox
Package org.sejda.impl.sambox.component
Class PDDocumentAccessPermission
java.lang.Object
org.sejda.impl.sambox.component.PDDocumentAccessPermission
Wrapper around
AccessPermission providing convenient methods to check permissions.- Author:
- Andrea Vacondio
-
Method Summary
Modifier and TypeMethodDescriptionvoidEnsures that owner permissions are available.voidensurePermission(PdfAccessPermission required) Ensures that the required permission is granted
-
Method Details
-
ensureOwnerPermissions
Ensures that owner permissions are available.- Throws:
TaskPermissionsException- if not owner permissions are granted.
-
ensurePermission
Ensures that the required permission is granted- Parameters:
required-- Throws:
TaskPermissionsException- if not granted.
-