public enum KeySize extends Enum<KeySize>
Defines different key sizes which can be used to encrypt pdf documents.
Enum Constant and Description |
---|
x128
128 bit key.
|
x256
256 bit key.
|
x40
40 bit key.
|
Modifier and Type | Method and Description |
---|---|
int |
getValue() |
static KeySize |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static KeySize[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
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);
public static final KeySize x128
128 bit key. Both RC4 and AES algorithms can use such key size.
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).
public static KeySize[] values()
for (KeySize c : KeySize.values()) System.out.println(c);
public static KeySize valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getValue()
Copyright © 2023 Aspose. All Rights Reserved.