|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.security.smime.SMIMEReceiver
Receives a S/MIME message from a sender and provides methods to retrieve the stored PKCS #7 ContentInfo or PKCS #10 CertificationRequest object within the S/MIME message. Construct this object with the file name containing the S/MIME message or with a SMIMEMessage object.
This definition reflects the S/MIME Version 2 Message Specification RFC 2311 specifications dated March 1998.
Constructor Summary | |
SMIMEReceiver(byte[] message)
Create a SMIMEReceiver object with a byte array of a SMIMEMessage. |
|
SMIMEReceiver(byte[] message,
String provider)
Create a SMIMEReceiver object with a byte array of a SMIMEMessage. |
|
SMIMEReceiver(InputStream in)
Create a SMIMEReceiver object with an InputStream of a SMIMEMessage. |
|
SMIMEReceiver(InputStream in,
String provider)
Create a SMIMEReceiver object with an InputStream of a SMIMEMessage. |
|
SMIMEReceiver(SMIMEMessage message)
Create a SMIMEReceiver object with a SMIMEMessage object. |
|
SMIMEReceiver(SMIMEMessage message,
String provider)
Create a SMIMEReceiver object with a SMIMEMessage object. |
|
SMIMEReceiver(String filename)
Create a SMIMEReceiver object with the file name of a SMIMEMessage. |
|
SMIMEReceiver(String filename,
String provider)
Create a SMIMEReceiver object with the file name of a SMIMEMessage. |
Method Summary | |
Object |
clone()
Creates a clone of this SMIMEReceiver object. |
CertificationRequest |
getCertificationRequest()
Get the CertificationRequest object from the byte array of the PKCS #10 CertificationRequest object that is stored in the body the SMIMEMessage object for this SMIMEReceiver object. |
byte[] |
getCertificationRequestBytes()
Get the DER-encoded byte array of the PKCS #10 CertificationRequest object that is stored in the body the SMIMEMessage object for this SMIMEReceiver object. |
ContentInfo |
getContentInfo()
Get the ContentInfo object from the byte array of the PKCS #7 ContentInfo object that is stored in the body the SMIMEMessage object for this SMIMEReceiver object. |
byte[] |
getContentInfoBytes()
Get the DER-encoded byte array of the PKCS #7 ContentInfo object that is stored in the body the SMIMEMessage object for this SMIMEReceiver object. |
byte[] |
getHeader()
Get the byte array of the header the SMIMEMessage object for this SMIMEReceiver object. |
SMIMEMessage |
getSMIMEMessage()
Get the SMIMEMessage object for this SMIMEReceiver object. |
String |
toString()
Returns a string representation of this SMIMEReceiver object. |
Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public SMIMEReceiver(byte[] message) throws IOException
message
- a byte array of a SMIMEMessage.public SMIMEReceiver(byte[] message, String provider) throws IOException
message
- a byte array of a SMIMEMessage.provider
- the provider to be used with pkcs.public SMIMEReceiver(InputStream in) throws IOException
in
- an InputStream containing a S/MIME message.public SMIMEReceiver(InputStream in, String provider) throws IOException
in
- an InputStream containing a S/MIME message.provider
- the provider to be used with pkcs.public SMIMEReceiver(String filename) throws IOException
filename
- a name of a file containing a SMIMEMessage.public SMIMEReceiver(String filename, String provider) throws IOException
filename
- a name of a file containing a SMIMEMessage.provider
- the provider to be used with pkcs.public SMIMEReceiver(SMIMEMessage message) throws IOException
message
- SMIMEMessage object.public SMIMEReceiver(SMIMEMessage message, String provider) throws IOException
message
- SMIMEMessage object.provider
- the provider to be used with pkcs.Method Detail |
public Object clone()
public SMIMEMessage getSMIMEMessage()
public byte[] getContentInfoBytes() throws IOException
public ContentInfo getContentInfo() throws IOException
public byte[] getCertificationRequestBytes() throws IOException
public CertificationRequest getCertificationRequest() throws IOException
public byte[] getHeader()
public String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |