| 
					
  		
		 	IAIK CMS/SMIME Toolkit API Documentation
			 Version 6.1  | 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
iaik.cms.CMSException
iaik.smime.SMimeException
iaik.smime.ess.ESSException
iaik.smime.ess.utils.ESSLayerException
public class ESSLayerException
This exception is thrown when a problem occurs while decomposing a S/MIME message
 into its layers. Calling method 
 getReason may be used to get the reason code for the failure.
| Field Summary | |
|---|---|
static int | 
ATTRIBUTE_MISMATCH
MLA exception "Attribute mismatch" (5). | 
static int | 
ATTRIBUTE_PARSING_ERROR
MLA exception "Error parsing
 attribute" (3). | 
static int | 
CEK_DECRYPTION_ERROR
MLA exception "Error decrypting
 content encryption key" (2). | 
static int | 
CONTENT_PARSING_PROBLEM
MLA exception "Error parsing
 MIME content" (0). | 
static int | 
MAIL_LIST_EXPANSION_LOOP
MLA exception "Mail list
 expansion loop" (3). | 
static int | 
NO_DECRYPTION_KEY
MLA exception "No decryption key" (0). | 
static int | 
RECEIPT_REQUEST_IN_OUTER_LAYER
MLA exception "ReceipRequest attribute not 
 allowed in outer layer." (7). | 
static int | 
SECURITY_LABEL
MLA exception "Access
 denied by SecurityLabel attribute" (6). | 
static int | 
SIGNATURE_VERIFICATION_ERROR
MLA exception "Signature verification 
 error." (8). | 
| Constructor Summary | |
|---|---|
ESSLayerException(int reason,
                  ESSLayer layer)
Creates an ESSLayerException for the specified reason.  | 
|
ESSLayerException(int reason,
                  java.lang.Exception ex,
                  ESSLayer layer)
Creates an ESSLayerException for the specified reason and original exception.  | 
|
ESSLayerException(int reason,
                  java.lang.String message,
                  ESSLayer layer)
Creates an ESSLayerException for the specified reason and error message.  | 
|
ESSLayerException(int reason,
                  java.lang.String msg,
                  java.lang.Exception ex,
                  ESSLayer layer)
Creates an ESSLayerException for the specified reason and message and original exception.  | 
|
| Method Summary | |
|---|---|
 ESSLayer | 
getLayer()
Gets the layer in which the exception has occured.  | 
 int | 
getReason()
Returns the reason why no SignedReceipt has been created.  | 
static java.lang.String | 
getReasonMsg(int reason)
Returns a message describing the given reason code.  | 
 java.lang.Exception | 
getWrappedException()
Get the (original) exception that has caused this ESSLayerException.  | 
| Methods inherited from class java.lang.Throwable | 
|---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait | 
| Field Detail | 
|---|
public static final int CONTENT_PARSING_PROBLEM
MLA exception "Error parsing
 MIME content" (0). 
 This exception is thrown if an error occurs when accessin/parsing the content
 of an S/MIME layer.
public static final int NO_DECRYPTION_KEY
MLA exception "No decryption key" (0). 
 This exception is thrown if a composed S/MIME layer contains an enveloped
 layer but no key is available to decrypt the layer.
public static final int CEK_DECRYPTION_ERROR
MLA exception "Error decrypting
 content encryption key" (2). 
 This exception is thrown if an error occurs when trying to decrypt the
 content encryption key of an enveloped layer.
public static final int ATTRIBUTE_PARSING_ERROR
MLA exception "Error parsing
 attribute" (3). 
 This exception is thrown if an error occurs while parsing an attribute
 included, e.g. in a signed content.
public static final int ATTRIBUTE_MISMATCH
MLA exception "Attribute mismatch" (5).
 This exception indicates that there are ESS attributes included in a SignedData layer 
 that are not identical, but are requested to be identical by the ESS 
 specification (e.g. any ReceiptRequest
 attribute of a SignedData layer has to be identical).
public static final int MAIL_LIST_EXPANSION_LOOP
MLA exception "Mail list
 expansion loop" (3). 
 This exception is thrown if
 a mail list expansion loop is detected while handling a SignedData layer
 (the MLA detects its own ID among the MLData records it has received).
public static final int SECURITY_LABEL
MLA exception "Access
 denied by SecurityLabel attribute" (6). 
 This exception is thrown if
 a signed layer contains a SecurityLabel attribute that does not allow
 to access the content of the layer.
public static final int RECEIPT_REQUEST_IN_OUTER_LAYER
MLA exception "ReceipRequest attribute not 
 allowed in outer layer." (7). 
 This exception indicates that an outer signed layer has been found where any
 of the SignerInfos contains a ReceiptRequest attribute (which is not allowed).
public static final int SIGNATURE_VERIFICATION_ERROR
MLA exception "Signature verification 
 error." (8). 
 This exception indicates that some of the signatures of a signed layer
 is invalid.
| Constructor Detail | 
|---|
public ESSLayerException(int reason,
                         ESSLayer layer)
"Error parsing content" (integer 0)
  "No decryption key" (integer 1)
  "Error decrypting content encryption key" (integer 2)
  "Attribute parsing error" (integer 3)
  "Attributes are not identical as required" (integer 3)
  "Mail list expansion loop detected" (integer 5)
  "Access denied by SecurityLabel attribute" (integer 6)
  "ReceipRequest attribute not allowed in outer layer" (integer 7)
  "Signature verification error" (integer 8)
 
reason - the reason why no SignedReceipt has been createdlayer - the layer in which the exception occured
public ESSLayerException(int reason,
                         java.lang.String message,
                         ESSLayer layer)
"Error parsing content" (integer 0)
  "No decryption key" (integer 1)
  "Error decrypting content encryption key" (integer 2)
  "Attribute parsing error" (integer 3)
  "Attributes are not identical as required" (integer 3)
  "Mail list expansion loop detected" (integer 5)
  "Access denied by SecurityLabel attribute" (integer 6)
  "ReceipRequest attribute not allowed in outer layer" (integer 7)
  "Signature verification error" (integer 8)
 
reason - the reason why no SignedReceipt has been createdmessage - the error messagelayer - the layer in which the exception occured
public ESSLayerException(int reason,
                         java.lang.Exception ex,
                         ESSLayer layer)
"Error parsing content" (integer 0)
  "No decryption key" (integer 1)
  "Error decrypting content encryption key" (integer 2)
  "Attribute parsing error" (integer 3)
  "Attributes are not identical as required" (integer 3)
  "Mail list expansion loop detected" (integer 5)
  "Access denied by SecurityLabel attribute" (integer 6)
  "ReceipRequest attribute not allowed in outer layer" (integer 7)
  "Signature verification error" (integer 8)
 
reason - the reason why no SignedReceipt has been createdex - the (original) exception that has caused this ESSLayerExceptionlayer - the layer in which the exception occured
public ESSLayerException(int reason,
                         java.lang.String msg,
                         java.lang.Exception ex,
                         ESSLayer layer)
"Error parsing content" (integer 0)
  "No decryption key" (integer 1)
  "Error decrypting content encryption key" (integer 2)
  "Attribute parsing error" (integer 3)
  "Attributes are not identical as required" (integer 3)
  "Mail list expansion loop detected" (integer 5)
  "Access denied by SecurityLabel attribute" (integer 6)
  "ReceipRequest attribute not allowed in outer layer" (integer 7)
  "Signature verification error" (integer 8)
 
reason - the reason why no SignedReceipt has been createdmsg - the message string describing this exceptionex - the (original) exception that has caused this ESSLayerException| Method Detail | 
|---|
public int getReason()
"Error parsing content" (integer 0)
  "No decryption key" (integer 1)
  "Error decrypting content encryption key" (integer 2)
  "Attribute parsing error" (integer 3)
  "Attributes are not identical as required" (integer 3)
  "Mail list expansion loop detected" (integer 5)
  "Access denied by SecurityLabel attribute" (integer 6)
  "ReceipRequest attribute not allowed in outer layer" (integer 7)
  "Signature verification error" (integer 8)
 
public java.lang.Exception getWrappedException()
null
         if this ESSLayerException itself is the original exceptionpublic ESSLayer getLayer()
public static java.lang.String getReasonMsg(int reason)
reason - the reason code
  | 
					
  		
		 	IAIK CMS/SMIME Toolkit API Documentation
			 Version 6.1  | 
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
					 
				 | 
				
					v6.1 (c) 2002 IAIK, (c) 2003 - 2025 SIC  | 
				
					 
				 |