|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.pdf.PDFObject
org.apache.fop.pdf.PDFEncryption
class representing a /Filter /Standard object.
Field Summary | |
---|---|
static int |
PERMISSION_COPY_CONTENT
Value of content extraction permission |
static int |
PERMISSION_EDIT_ANNOTATIONS
Value of annotation editting permission |
static int |
PERMISSION_EDIT_CONTENT
Value of content editting permission |
static int |
PERMISSION_PRINT
Value of PRINT permission |
Fields inherited from class org.apache.fop.pdf.PDFObject |
---|
generation, number |
Constructor Summary | |
---|---|
PDFEncryption(int number)
create a /Filter /Standard object. |
Method Summary | |
---|---|
byte[] |
encryptData(byte[] data,
int number,
int generation)
This method encrypts the passed data using the generated keys. |
static boolean |
encryptionAvailable()
|
byte[] |
getFileID()
Returns the document file ID |
java.lang.String |
getFileID(int index)
This method returns the indexed file ID |
java.lang.String |
getOwnerPassword()
Returns the owner password for the PDF |
java.lang.String |
getUserPassword()
Returns the current user password |
void |
init()
This method initializes the encryption algorithms and values |
PDFFilter |
makeFilter(int number,
int generation)
Creates PDFFilter for the encryption object |
void |
setAllowCopyContent(boolean value)
Set whether the document will allow the content to be extracted |
void |
setAllowEditAnnotation(boolean value)
Set whether the document will allow annotation modificcations |
void |
setAllowEditContent(boolean value)
Set whether the document will allow content editting |
void |
setAllowPrint(boolean value)
Set whether the document will allow printing. |
void |
setOwnerPassword(java.lang.String value)
Sets the owner password for the PDF |
void |
setUserPassword(java.lang.String value)
This method allows the setting of the user password |
byte[] |
toPDF()
represent the object in PDF |
Methods inherited from class org.apache.fop.pdf.PDFObject |
---|
getNumber, output, referencePDF |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int PERMISSION_PRINT
public static final int PERMISSION_EDIT_CONTENT
public static final int PERMISSION_COPY_CONTENT
public static final int PERMISSION_EDIT_ANNOTATIONS
Constructor Detail |
public PDFEncryption(int number)
number
- the object's numberMethod Detail |
public void setUserPassword(java.lang.String value)
value
- The string to use as the user password. It may be blank but not null.public java.lang.String getUserPassword()
public void setOwnerPassword(java.lang.String value)
value
- The owner passwordpublic java.lang.String getOwnerPassword()
public void setAllowPrint(boolean value)
value
- The new permision valuepublic void setAllowCopyContent(boolean value)
value
- The new permission valuepublic void setAllowEditContent(boolean value)
value
- The new permission valuepublic void setAllowEditAnnotation(boolean value)
value
- The new permission valuepublic byte[] getFileID()
public java.lang.String getFileID(int index)
index
- The index to access the file ID
public void init()
public byte[] encryptData(byte[] data, int number, int generation)
data
- The data to be encryptednumber
- The block numbergeneration
- The block generation
public PDFFilter makeFilter(int number, int generation)
number
- The object numbergeneration
- The objects generation
public byte[] toPDF() throws java.lang.IllegalStateException
java.lang.IllegalStateException
public static boolean encryptionAvailable()
|
||||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |