Enum EncryptedPDFException.ErrorType

    • Enum Constant Detail

      • BadPassword

        public static final EncryptedPDFException.ErrorType 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

        public static final EncryptedPDFException.ErrorType SecurityAPIFailure
        Error type indicating that the encrypted PDF could not be decrypted because of a failure of the current JDK's security implementation. Details are typically included in the String message available via the getMessage() method.
      • Unsupported

        public static final EncryptedPDFException.ErrorType Unsupported
        Error type indicating that a PDF file is encrypted using a method that is unsupported by the current version of PDFxStream.
      • Syntax

        public static final EncryptedPDFException.ErrorType Syntax
        Error type indicating that a necessary decryption parameter either could not be found within the source PDF document, or has an invalid value.
    • Method Detail

      • values

        public static EncryptedPDFException.ErrorType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (EncryptedPDFException.ErrorType c : EncryptedPDFException.ErrorType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static EncryptedPDFException.ErrorType valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null