multivalent.std.adaptor.pdf
public class SecurityHandlerStandard extends SecurityHandler
Bit masks for permission bits are given with PERM_
prefix.
Version: $Revision: 1.24 $ $Date: 2003/08/17 08:40:44 $
Field Summary | |
---|---|
static int | PERM_ALL |
static int | PERM_ANNO Permission: Add or modify text annotations, fill in interactive form fields, and, if PERM_MODIFY is also set, create or modify interactive form fields (including signature fields). |
static int | PERM_ASSEMBLE Permission: (Revision 3 only) Assemble the document (insert, rotate, or delete pages and create bookmarks or thumbnail images), even if PERM_MODIFY is clear. |
static int | PERM_COPY Permission:
(Revision 2) Copy or otherwise extract text and graphics from the document, including extracting text and graphics (in support of accessibility to disabled users or for other purposes).
|
static int | PERM_COPY_R3 Permission: (Revision 3 only) Extract text and graphics (in support of accessibility to disabled users or for other purposes). |
static int | PERM_FILL Permission: (Revision 3 only) Fill in existing interactive form fields (including signature fields), even if PERM_ANNO is clear. |
static int | PERM_MODIFY Permission: Modify the contents of the document by operations other than those controlled by PERM_ANNO, PERM_FILL, PERM_ASSEMBLE. |
static int | PERM_NONE |
static int | PERM_PRINT Permission: (Revision 2) Print the document. |
static int | PERM_PRINT_GOOD Permission: Permission: (Revision 3 only) Print the document to a representation from which a faithful digital copy of the PDF content could be generated. |
Constructor Summary | |
---|---|
SecurityHandlerStandard(Dict edict, COSSource coss) | |
SecurityHandlerStandard(StringBuffer id0, int R, int P, int Length, String userpassword, String ownerpassword)
Construct a Standard encryption filter with given parameters and passwords.
| |
SecurityHandlerStandard(byte[] key) |
Method Summary | |
---|---|
boolean | authOwner(String owner)
Algorithm 3.7 Authenticating the owner password. |
boolean | authUser(String user)
Algorithm 3.6 Authenticating the user password. |
Object | clone() |
byte[] | computeKey(String password) |
byte[] | computeKey(String password, int keylen) Algorithm 3.2 Computing an encryption key. |
StringBuffer | computeO(String owner, String user) Algorithm 3.3 Computing the encryption dictionary'ís O (owner password) value. |
StringBuffer | computeU(String user)
Algorithm 3.4 Computing the encryption dictionary's U (user password) value (Revision 2), and
Algorithm 3.5 Computing the encryption dictionary's U (user password) value (Revision 3) |
byte[] | decrypt(byte[] data, int off, int len) |
byte[] | encrypt(byte[] data, int off, int len) |
static byte[] | encrypt(byte[] key, byte[] data, int off, int len, int objnum, int gennum)
Algorithm 3.1 Encryption of data using an encryption key. |
byte[] | getKey() |
int | getLength() Returns length of encryption key. |
int | getP()
Returns permission bits. |
int | getR() Returns version of standard security handler. |
boolean | isAuthorized() |
protected static byte[] | pad(String str) Algorithm 3.2, Step 1. |
SecurityHandler | reset(int objnum, int gennum) |
PERM_
bitmask, the user has that permission.See Also: ContractualObligation