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

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Permission provider for DocMDP author signatures.
    static final String
    Permission provider for the security (encryption) handlers.
    static final String
    Permission provider for user permissions.
    static final String
    Permission provider for usage rights.
    static final String
    Permission provider for XFA usage.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Every permission provider must implement this method to query a particular object-operation combination.
  • Field Details

    • SECURITY

      static final String SECURITY
      Permission provider for the security (encryption) handlers. The security handlers include Standard, PubSec, APS, eBook.
      See Also:
    • DOC_MDP

      static final String 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

      static final String UR
      Permission provider for usage rights. It enables features in Acrobar Reader.
      See Also:
    • UP

      static final String 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

      static final String XFA
      Permission provider for XFA usage. This applies to static and dynamic XFA.
      See Also:
  • Method Details

    • isPermitted

      boolean isPermitted(ObjectOperations objOpr) throws PDFUnableToCompleteOperationException
      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 the doc parameter.
      Parameters:
      objOpr - a valid combination of object/operations available in Acrobat 7.0 Professional.
      Returns:
      boolean true if the specified operation is permitted; false otherwise.
      Throws:
      PDFUnableToCompleteOperationException - if the specified operation cannot be completed.