public enum PasswordType extends Enum<PasswordType>
This enum represents known password types used for password protected pdf documents.
Enum Constant and Description |
---|
Inaccessible
Pdf document is password protected but both user and owner passwords are not empty and none
of the passwords was defined or supplied password was incorrect.
|
None
Pdf document is not password protected.
|
Owner
Pdf document was opened using change permissions password (full access).
|
User
Pdf document was opened using document open password (restricted access).
|
Modifier and Type | Method and Description |
---|---|
static PasswordType |
getByValue(int value) |
int |
getValue() |
static PasswordType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PasswordType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PasswordType None
Pdf document is not password protected.
public static final PasswordType User
Pdf document was opened using document open password (restricted access).
public static final PasswordType Owner
Pdf document was opened using change permissions password (full access).
public static final PasswordType Inaccessible
Pdf document is password protected but both user and owner passwords are not empty and none of the passwords was defined or supplied password was incorrect. So it impossible to deduce the type of the password.
public static PasswordType[] values()
for (PasswordType c : PasswordType.values()) System.out.println(c);
public static PasswordType 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()
public static PasswordType getByValue(int value)
Copyright © 2025 Aspose. All Rights Reserved.