|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.mail.Multipart | +--javax.mail.internet.MimeMultipart | +--de.buelowssiege.mail.pgp_mime.MimeMultipartEncrypted
This class extends the MimeMultipart
to conform to the
multipart/encrypted described in
RFC 1847
Field Summary |
Fields inherited from class javax.mail.internet.MimeMultipart |
ds, parsed |
Fields inherited from class javax.mail.Multipart |
contentType, parent, parts |
Constructor Summary | |
|
MimeMultipartEncrypted(javax.activation.DataSource ds)
Constructs a MimeMultipartEncrypted object and its bodyparts from the given DataSource. |
protected |
MimeMultipartEncrypted(java.lang.String contentType)
This constructor is used by the createInstance method to create a new instance. |
Method Summary | |
static de.buelowssiege.mail.pgp_mime.MimeMultipartEncrypted |
createInstance(javax.mail.BodyPart bodyPart,
de.buelowssiege.mail.pgp_mime.BodyPartEncrypter encrypter)
Creates a new instance of this class using bodyPart as
the part to be encrypted and encrypter to do the
encrypting. |
static de.buelowssiege.mail.pgp_mime.MimeMultipartEncrypted |
createInstance(de.buelowssiege.mail.pgp_mime.BodyPartEncrypter encrypter)
Creates a new instance of this class using encrypter
to do the encrypting. |
static de.buelowssiege.mail.pgp_mime.MimeMultipartEncrypted |
createInstance(javax.mail.internet.MimeMultipart multiPart,
de.buelowssiege.mail.pgp_mime.BodyPartEncrypter encrypter)
Creates a new instance of this class using multiPart as
the part to be encrypted and encrypter to do the
encrypting. |
javax.mail.BodyPart |
decrypt(de.buelowssiege.mail.pgp_mime.BodyPartDecrypter decrypter)
Decrypts the encrypted bodypart and returns a bodypart containing the decrypted data. |
void |
setSubType()
This method does nothing, as the subtype of this multipart must always be encrypted. |
void |
writeTo(java.io.OutputStream out)
Iterates through all the parts and outputs each mime part separated by a boundary. |
Methods inherited from class javax.mail.internet.MimeMultipart |
createInternetHeaders, createMimeBodyPart, createMimeBodyPart, getBodyPart, getBodyPart, getCount, parse, setSubType, updateHeaders |
Methods inherited from class javax.mail.Multipart |
addBodyPart, addBodyPart, getContentType, getParent, removeBodyPart, removeBodyPart, setMultipartDataSource, setParent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MimeMultipartEncrypted(javax.activation.DataSource ds) throws javax.mail.MessagingException
protected MimeMultipartEncrypted(java.lang.String contentType) throws javax.mail.MessagingException
Method Detail |
public static de.buelowssiege.mail.pgp_mime.MimeMultipartEncrypted createInstance(javax.mail.BodyPart bodyPart, de.buelowssiege.mail.pgp_mime.BodyPartEncrypter encrypter) throws javax.mail.MessagingException
bodyPart
as
the part to be encrypted and encrypter
to do the
encrypting.
javax.mail.MessagingException
public static de.buelowssiege.mail.pgp_mime.MimeMultipartEncrypted createInstance(javax.mail.internet.MimeMultipart multiPart, de.buelowssiege.mail.pgp_mime.BodyPartEncrypter encrypter) throws javax.mail.MessagingException
multiPart
as
the part to be encrypted and encrypter
to do the
encrypting.
javax.mail.MessagingException
public static de.buelowssiege.mail.pgp_mime.MimeMultipartEncrypted createInstance(de.buelowssiege.mail.pgp_mime.BodyPartEncrypter encrypter) throws javax.mail.MessagingException
encrypter
to do the encrypting. The part to be encrypted must have been set
in the encrypter before calling this method.
javax.mail.MessagingException
public javax.mail.BodyPart decrypt(de.buelowssiege.mail.pgp_mime.BodyPartDecrypter decrypter) throws javax.mail.MessagingException
javax.mail.MessagingException
public void setSubType()
public void writeTo(java.io.OutputStream out) throws javax.mail.MessagingException, java.io.IOException
updateHeaders method is called.
- Overrides:
writeTo
in class javax.mail.internet.MimeMultipart
javax.mail.MessagingException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |