|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.security.smime.SMIMEMessage
The SMIMEMessage class represents a S/MIME message object. Create this object with a S/MIME message from a file or InputStream This class focuses on supporting a limited set of S/MIME messages for PKCS #7 ContentInfo and PKCS #10 CertificationRequest objects. It is not a complete MIME message parser.
This definition reflects the S/MIME Version 2 Message Specification RFC 2311 specifications dated March 1998.
Constructor Summary | |
SMIMEMessage(byte[] message)
Create a SMIMEMessage object with a byte array of a S/MIME message. |
|
SMIMEMessage(byte[] message,
String provider)
Create a SMIMEMessage object with a byte array of a S/MIME message. |
|
SMIMEMessage(InputStream in)
Create a SMIMEMessage object with an InputStream of a S/MIME message. |
|
SMIMEMessage(InputStream in,
String provider)
Create a SMIMEMessage object with an InputStream of a S/MIME message. |
|
SMIMEMessage(String filename)
Create a SMIMEMessage object with the filename of a S/MIME message. |
|
SMIMEMessage(String filename,
String provider)
Create a SMIMEMessage object with the filename of a S/MIME message. |
Method Summary | |
Object |
clone()
Creates a clone of this SMIMEMessage object. |
byte[] |
getBody()
Returns a copy of the body of this SMIMEMessage object as a byte array. |
byte[] |
getBytes()
Returns a copy the message of this SMIMEMessage object as a byte array of the header and body. |
CertificationRequest |
getCertificationRequest()
Returns a copy of the CertificationRequest contained in this SMIMEMessage object. |
byte[] |
getCertificationRequestBytes()
Returns a copy of the byte array representing the BASE64 encoding of the CertificationRequest contained in this SMIMEMessage object. |
ContentInfo |
getContentInfo()
Returns a copy of the ContentInfo contained in this SMIMEMessage object. |
byte[] |
getContentInfoBytes()
Returns a copy of the byte array representing the BASE64 encoding of the ContentInfo contained in this SMIMEMessage object. |
byte[] |
getHeader()
Returns a copy of the header of this SMIMEMessage object as a byte array. |
Hashtable |
getHeaderHashTable()
Returns the Hashtable representing the header of this SMIMEMessage object. |
byte[] |
getMessage()
Returns a copy of the byte array representing the message of this SMIMEMessage object. |
String |
toString()
Returns a string representation of this SMIMEMessage object. |
Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public SMIMEMessage(byte[] message) throws IOException
message
- a byte array of a S/MIME message.public SMIMEMessage(byte[] message, String provider) throws IOException
message
- a byte array of a S/MIME message.provider
- the provider to be used with pkcs.public SMIMEMessage(InputStream in) throws IOException
in
- an InputStream containing a S/MIME message.public SMIMEMessage(InputStream in, String provider) throws IOException
in
- an InputStream containing a S/MIME message.provider
- the provider to be used with pkcs.public SMIMEMessage(String filename) throws IOException
filename
- a name of a file containing the S/MIME message.public SMIMEMessage(String filename, String provider) throws IOException
filename
- a name of a file containing the S/MIME message.provider
- the provider to be used with pkcs.Method Detail |
public Object clone()
public byte[] getBytes() throws IOException
public byte[] getHeader()
public Hashtable getHeaderHashTable()
public byte[] getBody()
public byte[] getMessage()
public byte[] getContentInfoBytes()
public ContentInfo getContentInfo() throws IOException
public byte[] getCertificationRequestBytes()
public CertificationRequest getCertificationRequest() throws IOException
public String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |