KeySize
Contents
[
Hide
]Inheritance: java.lang.Object, java.lang.Enum
public enum KeySize extends Enum<KeySize>
Defines different key sizes which can be used to encrypt pdf documents.
Fields
Field | Description |
---|---|
x40 | 40 bit key. |
x128 | 128 bit key. |
x256 | 256 bit key. |
Methods
Method | Description |
---|---|
values() | |
valueOf(String name) | |
getValue() |
x40
public static final KeySize x40
40 bit key. Such key size is used with RC4 algorithm and provides low level of security. Nevertheless old versions of pdf documents can be encrypted only with such keys (v. 1.3 and lower);
x128
public static final KeySize x128
128 bit key. Both RC4 and AES algorithms can use such key size.
x256
public static final KeySize x256
256 bit key. Such key size can be used only with AES and is recognized with the last Adobe Reader versions (starting from v.9).
values()
public static KeySize[] values()
Returns: com.aspose.pdf.facades.KeySize[]
valueOf(String name)
public static KeySize valueOf(String name)
Parameters:
Parameter | Type | Description |
---|---|---|
name | java.lang.String |
Returns: KeySize
getValue()
public int getValue()
Returns: int