|
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.Objectiaik.smime.ess.utils.ESSLayer
public class ESSLayer
A wrapper for an ESS S/MIME layer.
| Field Summary | |
|---|---|
protected java.lang.Object |
content_
The content of this ESSLayer. |
protected javax.activation.DataHandler |
dataHandler_
The DataHandler that may wrap the content. |
static int |
ENVELOPED_DATA
ESSLayer type CMS ENVELOPED_DATA (1). |
static int |
SIGNED_DATA
ESSLayer type CMS SIGNED_DATA (0). |
protected int |
type_
The type of this ESS layer, either SIGNED_DATA (0)
or ENVELOPED_DATA (1), or -1 (any other type). |
| Constructor Summary | |
|---|---|
|
ESSLayer(java.lang.Object content)
Creates an ESSLayer for the given content, which may represent a cryptographically enhanced S/MIME entity like SignedContent or
EncryptedContent, or any other type of content. |
protected |
ESSLayer(java.lang.Object content,
int type)
Creates an ESSLayer for the given content of given type. |
| Method Summary | |
|---|---|
java.lang.Object |
getContent()
Gets the content of this ESSLayer. |
javax.activation.DataHandler |
getDataHandler()
Gets the DataHandler that wraps the content of this layer, if set. |
ESSLayerException |
getException()
Gets the exception that indicates a problem that has occured when parsing this layer. |
int |
getType()
Gets the type of this ESS layer, either SIGNED_DATA (0)
or ENVELOPED_DATA (1), or -1 (any other type). |
protected void |
setDataHandler(javax.activation.DataHandler dataHandler)
Sets the DataHandler that wraps the content of this layer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int SIGNED_DATA
public static final int ENVELOPED_DATA
protected int type_
SIGNED_DATA (0)
or ENVELOPED_DATA (1), or -1 (any other type).
This does not represent the content type of the S/MIME message, rather
it maybe used to check whether this layer is cryptographically enhnaced
or not.
protected java.lang.Object content_
SignedContent or EncryptedContent, or any other MIME entity
(e.g. MimeMultipart, MimeBodyPart) or content represented by an, e.g. InputStream, or String, ... .
protected javax.activation.DataHandler dataHandler_
| Constructor Detail |
|---|
public ESSLayer(java.lang.Object content)
SignedContent or
EncryptedContent, or any other type of content.
content - the content for this ESSLayer
protected ESSLayer(java.lang.Object content,
int type)
SignedContent or EncryptedContent, or any other type of
content.
content - the content for this ESSLayertype - the cryptograhic enhancement type, either SIGNED_DATA (0)
or ENVELOPED_DATA (1), or -1 (any other type) of this layer| Method Detail |
|---|
public int getType()
SIGNED_DATA (0)
or ENVELOPED_DATA (1), or -1 (any other type).
This does not represent the content type of the S/MIME message, rather
it maybe used to check whether this layer is cryptographically enhnaced
or not.
SIGNED_DATA (0)
or ENVELOPED_DATA (1), or -1 (any other type) of this layer
public java.lang.Object getContent()
throws java.io.IOException
SignedContent
or EncryptedContent, or any other MIME
entity (e.g. MimeMultipart, MimeBodyPart) or content represented by an, e.g.
InputStream, or String, ... .
java.io.IOException - if an error occurs when accessing the contentpublic javax.activation.DataHandler getDataHandler()
null
if there is no DataHandlerprotected void setDataHandler(javax.activation.DataHandler dataHandler)
dataHandler - the DataHandler that wraps the content of this layerpublic ESSLayerException getException()
null if no problem has occured
when parsing the layer
|
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 |
|