public static enum EncryptedPDFException.ErrorType extends java.lang.Enum<EncryptedPDFException.ErrorType>
error types
that can be indicated by a thrown
EncryptedPDFException
.Enum Constant and Description |
---|
BadPassword
Error type indicating that a
Document was opened without a password when one was
needed, or that the instance was created with an incorrect password. |
SecurityAPIFailure
Error type indicating that the encrypted PDF could not be decrypted because of a failure
of the current JDK's security implementation.
|
Syntax
Error type indicating that a necessary decryption parameter either could not be found within the source
PDF document, or has an invalid value.
|
Unspecified
Error type indicating an unspecified encryption error.
|
Unsupported
Error type indicating that a PDF file is encrypted using a method that is unsupported by the
current version of PDFxStream.
|
Modifier and Type | Method and Description |
---|---|
static EncryptedPDFException.ErrorType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EncryptedPDFException.ErrorType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EncryptedPDFException.ErrorType Unspecified
public static final EncryptedPDFException.ErrorType BadPassword
Document
was opened without a password when one was
needed, or that the instance was created with an incorrect password.public static final EncryptedPDFException.ErrorType SecurityAPIFailure
getMessage()
method.public static final EncryptedPDFException.ErrorType Unsupported
public static final EncryptedPDFException.ErrorType Syntax
public static EncryptedPDFException.ErrorType[] values()
for (EncryptedPDFException.ErrorType c : EncryptedPDFException.ErrorType.values()) System.out.println(c);
public static EncryptedPDFException.ErrorType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null