|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.ibm.security.smime.jmail.PKCS7MimeDataSource
The PKCS7MimeDataSource class provides an object that wraps a ContentInfo object in a DataSource interface.
PKCS7MimeHandler
,
ContentInfo
Field Summary | |
static String |
CONTENT_TYPE_PKCS7
|
static String |
CONTENT_TYPE_PKCS7_SIGNATURE
|
Constructor Summary | |
PKCS7MimeDataSource(byte[] encoding,
boolean base64)
Create a PKCS7MimeDataSource with the byte array of the DER-encoded or BASE64-encoded ContentInfo object. |
|
PKCS7MimeDataSource(byte[] encoding,
boolean base64,
String provider)
Create a PKCS7MimeDataSource with the byte array of the DER-encoded or BASE64-encoded ContentInfo object. |
|
PKCS7MimeDataSource(ContentInfo contentInfo)
Create a PKCS7MimeDataSource with the ContentInfo object. |
|
PKCS7MimeDataSource(ContentInfo contentInfo,
String provider)
Create a PKCS7MimeDataSource with the ContentInfo object. |
Method Summary | |
Object |
clone()
Creates a clone of this PKCS7MimeDataSource object. |
ContentInfo |
getContentInfo()
Returns a clone of the ContentInfo object contained in this PKCS7MimeDataSource object. |
String |
getContentType()
Returns the MIME type of the underlying object. |
InputStream |
getInputStream()
This method returns a ByteArrayInputStream representing the DER encoding of the ContentInfo object. |
String |
getName()
Returns the name of the underlying ContentInfo object type. |
OutputStream |
getOutputStream()
This method returns a ByteArrayOutputStream to which the DER encoding of the ContentInfo object can be written.. |
String |
toString()
Returns a string representation of this PKCS7MimeDataSource object consisting of the contained ContentInfo object. |
Field Detail |
public static final String CONTENT_TYPE_PKCS7
public static final String CONTENT_TYPE_PKCS7_SIGNATURE
Constructor Detail |
public PKCS7MimeDataSource(ContentInfo contentInfo)
contentInfo
- ContentInfo object.public PKCS7MimeDataSource(ContentInfo contentInfo, String provider)
contentInfo
- ContentInfo object.provider
- the provider to be used with pkcs.public PKCS7MimeDataSource(byte[] encoding, boolean base64) throws IOException
encoding
- byte array of the DER-encoded or base64-encoded ContentInfo objectbase64
- true if BASE64-encoded, false if DER-encodedpublic PKCS7MimeDataSource(byte[] encoding, boolean base64, String provider) throws IOException
encoding
- byte array of the DER-encoded or base64-encoded ContentInfo objectbase64
- true if BASE64-encoded, false if DER-encodedprovider
- the provider to be usedMethod Detail |
public Object clone()
public ContentInfo getContentInfo()
public InputStream getInputStream() throws IOException
public OutputStream getOutputStream() throws IOException
public String getContentType()
public String getName()
public String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |