Home » pdfbox-1.1.0-src » org.apache.pdfbox.pdmodel.encryption » [javadoc | source]
org.apache.pdfbox.pdmodel.encryption
public class: PDStandardEncryption [javadoc | source]
java.lang.Object
   org.apache.pdfbox.pdmodel.encryption.PDEncryptionDictionary
      org.apache.pdfbox.pdmodel.encryption.PDStandardEncryption
Deprecated! Made - deprecated by the new security layer of PDFBox. Use SecurityHandlers instead.

This class holds information that is related to the standard PDF encryption. See PDF Reference 1.4 section "3.5 Encryption"
Field Summary
public static final  String FILTER_NAME    The 'Filter' name for this security handler. 
public static final  int DEFAULT_REVISION    The default revision of one is not specified. 
public static final  int REVISION2    Encryption revision 2. 
public static final  int REVISION3    Encryption revision 3. 
public static final  int REVISION4    Encryption revision 4. 
public static final  int DEFAULT_PERMISSIONS    The default set of permissions which is to allow all. 
Fields inherited from org.apache.pdfbox.pdmodel.encryption.PDEncryptionDictionary:
VERSION0_UNDOCUMENTED_UNSUPPORTED,  VERSION1_40_BIT_ALGORITHM,  VERSION2_VARIABLE_LENGTH_ALGORITHM,  VERSION3_UNPUBLISHED_ALGORITHM,  VERSION4_SECURITY_HANDLER,  DEFAULT_NAME,  DEFAULT_LENGTH,  DEFAULT_VERSION,  encryptionDictionary
Constructor:
 public PDStandardEncryption() 
 public PDStandardEncryption(COSDictionary dict) 
    Constructor from existing dictionary.
    Parameters:
    dict - The existing encryption dictionary.
Method from org.apache.pdfbox.pdmodel.encryption.PDStandardEncryption Summary:
canAssembleDocument,   canExtractContent,   canExtractForAccessibility,   canFillInForm,   canModify,   canModifyAnnotations,   canPrint,   canPrintDegraded,   getOwnerKey,   getPermissions,   getRevision,   getUserKey,   setCanAssembleDocument,   setCanExtractContent,   setCanExtractForAccessibility,   setCanFillInForm,   setCanModify,   setCanModifyAnnotations,   setCanPrint,   setCanPrintDegraded,   setOwnerKey,   setPermissions,   setRevision,   setUserKey
Methods from org.apache.pdfbox.pdmodel.encryption.PDEncryptionDictionary:
getCOSDictionary,   getFilter,   getLength,   getOwnerKey,   getPermissions,   getRecipientStringAt,   getRecipientsLength,   getRevision,   getUserKey,   getVersion,   setFilter,   setLength,   setOwnerKey,   setPermissions,   setRecipients,   setRevision,   setSubFilter,   setUserKey,   setVersion
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.pdfbox.pdmodel.encryption.PDStandardEncryption Detail:
 public boolean canAssembleDocument() 
      Deprecated!
    This will tell if the user can insert/rotate/delete pages.
 public boolean canExtractContent() 
      Deprecated!
    This will tell if the user can extract text and images from the PDF document.
 public boolean canExtractForAccessibility() 
      Deprecated!
    This will tell if the user can extract text and images from the PDF document for accessibility purposes.
 public boolean canFillInForm() 
      Deprecated!
    This will tell if the user can fill in interactive forms.
 public boolean canModify() 
      Deprecated!
    This will tell if the user can modify contents of the document.
 public boolean canModifyAnnotations() 
      Deprecated!
    This will tell if the user can add/modify text annotations, fill in interactive forms fields.
 public boolean canPrint() 
      Deprecated!
    This will tell if the user can print.
 public boolean canPrintDegraded() 
      Deprecated!
    This will tell if the user can print the document in a degraded format.
 public byte[] getOwnerKey() 
      Deprecated!
    This will get the O entry in the standard encryption dictionary.
 public int getPermissions() 
      Deprecated!
    This will get the permissions bit mask.
 public int getRevision() 
      Deprecated!
    This will return the R entry of the encryption dictionary.

    See PDF Reference 1.4 Table 3.14.
 public byte[] getUserKey() 
      Deprecated!
    This will get the U entry in the standard encryption dictionary.
 public  void setCanAssembleDocument(boolean allowAssembly) 
      Deprecated!
    Set if the user can insert/rotate/delete pages.
 public  void setCanExtractContent(boolean allowExtraction) 
      Deprecated!
    Set if the user can extract content from the document.
 public  void setCanExtractForAccessibility(boolean allowExtraction) 
      Deprecated!
    Set if the user can extract content from the document for accessibility purposes.
 public  void setCanFillInForm(boolean allowFillingInForm) 
      Deprecated!
    Set if the user can fill in interactive forms.
 public  void setCanModify(boolean allowModifications) 
      Deprecated!
    Set if the user can modify the document.
 public  void setCanModifyAnnotations(boolean allowAnnotationModification) 
      Deprecated!
    Set if the user can modify annotations.
 public  void setCanPrint(boolean allowPrinting) 
      Deprecated!
    Set if the user can print.
 public  void setCanPrintDegraded(boolean allowAssembly) 
      Deprecated!
    Set if the user can print the document in a degraded format.
 public  void setOwnerKey(byte[] o) throws IOException 
      Deprecated!
    This will set the O entry in the standard encryption dictionary.
 public  void setPermissions(int p) 
      Deprecated!
    This will set the permissions bit mask.
 public  void setRevision(int revision) 
      Deprecated!
    This will set the R entry of the encryption dictionary.

    See PDF Reference 1.4 Table 3.14.

    Note: This value is used to decrypt the pdf document. If you change this when the document is encrypted then decryption will fail!.
 public  void setUserKey(byte[] u) throws IOException 
      Deprecated!
    This will set the U entry in the standard encryption dictionary.