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 java.lang.String DOC_MDP
      Permission provider for DocMDP author signatures.
      static java.lang.String SECURITY
      Permission provider for the security (encryption) handlers.
      static java.lang.String UP
      Permission provider for user permissions.
      static java.lang.String UR
      Permission provider for usage rights.
      static java.lang.String XFA
      Permission provider for XFA usage.
    • Field Detail

      • DOC_MDP

        static final java.lang.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:
        Constant Field Values
      • UR

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

        static final java.lang.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:
        Constant Field Values
      • XFA

        static final java.lang.String XFA
        Permission provider for XFA usage. This applies to static and dynamic XFA.
        See Also:
        Constant Field Values
    • Method Detail

      • 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.