public class EncryptionServiceException extends Exception
Modifier and Type | Field and Description |
---|---|
static int |
E_BAD_PDF_ENCRYPTION
Indicates that an invalid encrypted PDF document was specified.
|
static int |
E_BAD_PERMNISSION
A constant that indicates that an invalid permission value was specified.
|
static int |
E_CERTIFICATE_NOT_PRESENT
A constant that indicates that the certificate required for encrypting
the document was not found
|
static int |
E_COMPAT
Indicates that a bad compatability level was specified.
|
static int |
E_ENC_OPT
Indicates that a invalid encryption option was specified.
|
static int |
E_ENCRYPTED
Indicates that a PDF document was already encrypted.
|
static int |
E_ENCRYPTION_FAILED
A constant that indicates that the encryption operation failed.
|
static int |
E_ERR
Represents a generic error.
|
static int |
E_INCORRECT_CERTIFICATE
A constant that indicates that the certificate is not fit to be used for
encryption
|
static int |
E_INCORRECT_CREDENTIAL
A constant that indicates that the credential being used for decrypting
the document is not fit for decryption
|
static int |
E_INSUFF_PRIV |
static int |
E_INVALID_ARG
A constant that indicates that invalid argument was passed.
|
static int |
E_NOT_ENCRYPTED
Indicates that a PDF document is not encrypted.
|
static int |
E_NOT_FIPS_COMPLIANT
A constant that indicates that the algorithm being used for encryption is
not FIPS compliant
|
static int |
E_OPERATION_FAILED
Indicates that the current operation failed.
|
static int |
E_RE
A constant that indicates that the Input Document was Reader Extended
|
static int |
E_SIGNATURE
A constant that indicates that the document is already signed.
|
static int |
E_TODO
A constant that indicates.
|
static int |
E_WRONG_PERMISSIONS
Indicates that a wrong permission value was specified.
|
protected String |
errMsg |
protected static org.slf4j.Logger |
logger |
protected StringBuffer |
stackTrace |
Constructor and Description |
---|
EncryptionServiceException(int errorCode) |
EncryptionServiceException(String message) |
EncryptionServiceException(String message,
int errorCode) |
EncryptionServiceException(String message,
int errorCode,
Throwable cause) |
EncryptionServiceException(String message,
Object[] params) |
EncryptionServiceException(String message,
Object[] params,
int errorCode) |
EncryptionServiceException(String message,
Object[] params,
int errorCode,
Throwable cause) |
EncryptionServiceException(String message,
Object[] params,
Throwable cause) |
EncryptionServiceException(String message,
Throwable cause) |
Modifier and Type | Method and Description |
---|---|
int |
getErrorCode()
Retrieves the error code for the exception.
|
String |
getInitCauseStackTrace()
Returns the cause stack trace from the Encryption service.
|
protected static void |
initProps(String fileName,
Properties properties,
Class currentClass)
A static function that should be called by all exception classes that
derive from this abstract base class, in the static section of their
definitions.
|
static String |
makeErrorMessage(String message,
int errorCode)
Creates an error message with a given message and error code.
|
void |
printStackTrace()
Prints the StackTrace on System.err.
|
void |
printStackTrace(PrintStream s)
Prints the StackTrace onto the input PrintStream.
|
void |
printStackTrace(PrintWriter w)
Prints the StackTrace onto the input PrintWriter.
|
void |
setInitCauseStackTrace(String initCauseStackTrace)
Sets the stack trace value.
|
public static final int E_ERR
public static final int E_OPERATION_FAILED
public static final int E_TODO
public static final int E_COMPAT
public static final int E_ENC_OPT
public static final int E_ENCRYPTED
public static final int E_NOT_ENCRYPTED
public static final int E_WRONG_PERMISSIONS
public static final int E_BAD_PDF_ENCRYPTION
public static final int E_ENCRYPTION_FAILED
public static final int E_BAD_PERMNISSION
public static final int E_SIGNATURE
public static final int E_CERTIFICATE_NOT_PRESENT
public static final int E_NOT_FIPS_COMPLIANT
public static final int E_INCORRECT_CERTIFICATE
public static final int E_INCORRECT_CREDENTIAL
public static final int E_RE
public static final int E_INSUFF_PRIV
public static final int E_INVALID_ARG
protected static org.slf4j.Logger logger
protected String errMsg
protected StringBuffer stackTrace
public EncryptionServiceException(int errorCode)
public EncryptionServiceException(String message, int errorCode)
public EncryptionServiceException(String message, int errorCode, Throwable cause)
public EncryptionServiceException(String message, Object[] params, int errorCode)
public EncryptionServiceException(String message, Object[] params, int errorCode, Throwable cause)
public EncryptionServiceException(String message)
public static String makeErrorMessage(String message, int errorCode)
message
- The detail message.errorCode
- The error code.public int getErrorCode()
public String getInitCauseStackTrace()
public void setInitCauseStackTrace(String initCauseStackTrace)
initCauseStackTrace
- A string value that represents the stack trace.public void printStackTrace()
printStackTrace
in class Throwable
public void printStackTrace(PrintStream s)
printStackTrace
in class Throwable
public void printStackTrace(PrintWriter w)
printStackTrace
in class Throwable
protected static void initProps(String fileName, Properties properties, Class currentClass)
props
function.fileName
- The name of the file which contains the key-value pairs
corresponding to the unique MessageIds used while throwing
exceptions and their corresponding localised Exception Messages.
This file is searched in the same location where the class
definition of the input arguement current class is available.properties
- The properties object that will be initialised with the
contents of the file pointed to by fileNamecurrentClass
- The class relative to which the file pointed to by fileName
will be searched.Copyright © 1982–2023 Adobe Systems Incorporated. All rights reserved.