|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pdfbox.pdmodel.encryption.PDEncryptionDictionary
public abstract class PDEncryptionDictionary
This represents the base class for encryption dictionaries. All PDF implementations are expected to implement the Standard encryption algorithm, but others can be plugged in. See PDF Reference 1.4 section "3.5 Encryption"
Field Summary | |
---|---|
static int |
DEFAULT_LENGTH
The default length for the encryption key. |
static String |
DEFAULT_NAME
The default security handler. |
static int |
DEFAULT_VERSION
The default version, according to the PDF Reference. |
protected COSDictionary |
encryptionDictionary
The cos model wrapped object. |
static int |
VERSION0_UNDOCUMENTED_UNSUPPORTED
See PDF Reference 1.4 Table 3.13. |
static int |
VERSION1_40_BIT_ALGORITHM
See PDF Reference 1.4 Table 3.13. |
static int |
VERSION2_VARIABLE_LENGTH_ALGORITHM
See PDF Reference 1.4 Table 3.13. |
static int |
VERSION3_UNPUBLISHED_ALGORITHM
See PDF Reference 1.4 Table 3.13. |
static int |
VERSION4_SECURITY_HANDLER
See PDF Reference 1.4 Table 3.13. |
Constructor Summary | |
---|---|
protected |
PDEncryptionDictionary()
Constructor, sub classes need to fill out the required fields. |
protected |
PDEncryptionDictionary(COSDictionary dictionary)
Constructor. |
Method Summary | |
---|---|
COSDictionary |
getCOSDictionary()
This will get the dictionary associated with this encryption dictionary. |
String |
getFilter()
Read-only field of the encryption filter name. |
int |
getLength()
This will return the Length entry of the encryption dictionary. |
int |
getVersion()
This will return the V entry of the encryption dictionary. |
void |
setLength(int length)
This will set the number of bits to use for the encryption algorithm. |
void |
setVersion(int version)
This will set the V entry of the encryption dictionary. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int VERSION0_UNDOCUMENTED_UNSUPPORTED
public static final int VERSION1_40_BIT_ALGORITHM
public static final int VERSION2_VARIABLE_LENGTH_ALGORITHM
public static final int VERSION3_UNPUBLISHED_ALGORITHM
public static final int VERSION4_SECURITY_HANDLER
public static final String DEFAULT_NAME
public static final int DEFAULT_LENGTH
public static final int DEFAULT_VERSION
protected COSDictionary encryptionDictionary
Constructor Detail |
---|
protected PDEncryptionDictionary(COSDictionary dictionary)
dictionary
- The pre-existing encryption dictionary.protected PDEncryptionDictionary()
Method Detail |
---|
public COSDictionary getCOSDictionary()
public String getFilter()
public int getVersion()
public void setVersion(int version)
version
- The new encryption version.public int getLength()
public void setLength(int length)
length
- The new key length.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |