|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.ibm.security.smime.jmail.SMIMEMimeMultipart
The SMIMEMimeMultipart class supports multipart/signed S/MIME messages where the contents of the message is detached and sent as a separate part with the encoded SignedData object that does not include the contents.
Constructor Summary | |
SMIMEMimeMultipart()
Construct an uninitialized SMIMEMimeMultipart object that can be used with the signSignatureOnly method. |
|
SMIMEMimeMultipart(DataSource ds)
Construct a SMIMEMimeMultipart object with the specified DataSource. |
|
SMIMEMimeMultipart(DataSource ds,
String provider)
Construct a SMIMEMimeMultipart object with the specified DataSource. |
|
SMIMEMimeMultipart(String subtype)
Construct a SMIMEMimeMultipart object of the given subtype. |
|
SMIMEMimeMultipart(String subtype,
String provider)
Construct a SMIMEMimeMultipart object of the given subtype. |
Method Summary | |
void |
setProvider(String provider)
Set the provider. |
void |
signSignatureOnly(Object message,
Certificate signerCert,
PrivateKey privateKey,
String digestSignatureAlgorithm)
Signs the message with the specified private key. |
String |
toString()
Returns a string representation of this SMIMEMimeMultipart object. |
Constructor Detail |
public SMIMEMimeMultipart()
public SMIMEMimeMultipart(DataSource ds) throws com.ibm.security.smime.jmail.MessagingException
ds
- DataSource PKCS7MimeDataSourcepublic SMIMEMimeMultipart(DataSource ds, String provider) throws com.ibm.security.smime.jmail.MessagingException
ds
- DataSource PKCS7MimeDataSourceprovider
- the provider to be usedpublic SMIMEMimeMultipart(String subtype)
public SMIMEMimeMultipart(String subtype, String provider)
Method Detail |
public void setProvider(String provider)
provider
- the provider to be usedpublic void signSignatureOnly(Object message, Certificate signerCert, PrivateKey privateKey, String digestSignatureAlgorithm) throws PKCSException, IOException, NoSuchAlgorithmException, com.ibm.security.smime.jmail.MessagingException
This SMIMEMimeMessage object must not already contain a ContentInfo object, otherwise this method will throw a PKCSException.
message
- String or Multipart contents to signsignerCert
- certificate of the signerprivateKey
- private key of the certificatedigestSignatureAlgorithm
- signature algorithmpublic String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |