com.snowtide.pdf
Class EncryptedPDFException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by com.snowtide.pdf.EncryptedPDFException
All Implemented Interfaces:
java.io.Serializable

public class EncryptedPDFException
extends java.io.IOException

A subclass of IOException that is thrown by PDFTextStream constructors if one of the following conditions occurs:

Version:
©2004-2012 Snowtide Informatics Systems, Inc.
See Also:
Serialized Form

Field Summary
static java.lang.Object ERROR_BAD_PASSWORD
          Error type indicating that a PDFTextStream instance was created without a password when one was needed, or that the instance was created with an incorrect password.
static java.lang.Object ERROR_SECURITY_API_FAILURE
          Error type indicating that the encrypted PDF could not be decrypted because of a failure of the current JDK's security implementation.
static java.lang.Object ERROR_SYNTAX
          Error type indicating that a decryption parameter is either missing or has an invalid value.
static java.lang.Object ERROR_UNSPECIFIED
          Error type indicating an unspecified encryption error.
static java.lang.Object ERROR_UNSUPPORTED
          Error type indicating that a PDF file is encrypted using a method that is unsupported by the current version of PDFTextStream.
 
Method Summary
 java.lang.Object getErrorType()
          Returns an object indicating the type of error that caused this exception to be thrown.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ERROR_UNSPECIFIED

public static final java.lang.Object ERROR_UNSPECIFIED
Error type indicating an unspecified encryption error.


ERROR_BAD_PASSWORD

public static final java.lang.Object ERROR_BAD_PASSWORD
Error type indicating that a PDFTextStream instance was created without a password when one was needed, or that the instance was created with an incorrect password.


ERROR_SECURITY_API_FAILURE

public static final java.lang.Object ERROR_SECURITY_API_FAILURE
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.


ERROR_UNSUPPORTED

public static final java.lang.Object ERROR_UNSUPPORTED
Error type indicating that a PDF file is encrypted using a method that is unsupported by the current version of PDFTextStream.


ERROR_SYNTAX

public static final java.lang.Object ERROR_SYNTAX
Error type indicating that a decryption parameter is either missing or has an invalid value.

Method Detail

getErrorType

public java.lang.Object getErrorType()
Returns an object indicating the type of error that caused this exception to be thrown. The returned objects should be equal to one of the ERROR_* Object constants provided by this class.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Throwable