de.buelowssiege.mail.pgp_mime
Interface BodyPartDecrypter

All Known Implementing Classes:
GnuPGBodyPartEncrypter

public interface BodyPartDecrypter

An implementation of this interface decrypts the encrypted data in a multipart/encrypted as described in RFC 1847.

Version:
$Id: BodyPartDecrypter.html,v 1.1 2004/02/11 12:51:34 mschwerin Exp $
Author:
Maximilian Schwerin

Method Summary
 void decrypt()
          This method does the actual decrypting.
 javax.mail.BodyPart getContentPart()
          Returns the bodypart containing the decrypted data.
 void setControlPart(javax.mail.BodyPart controlPart)
          Sets the content part containing the control information.
 void setEncryptedPart(javax.mail.BodyPart encryptedPart)
          Sets the body part, that contains the encrypted data.
 

Method Detail

decrypt

public void decrypt()
             throws javax.mail.MessagingException
This method does the actual decrypting. Both the control part and the encrypted part must have been set.

javax.mail.MessagingException

setControlPart

public void setControlPart(javax.mail.BodyPart controlPart)
Sets the content part containing the control information.


setEncryptedPart

public void setEncryptedPart(javax.mail.BodyPart encryptedPart)
Sets the body part, that contains the encrypted data.


getContentPart

public javax.mail.BodyPart getContentPart()
Returns the bodypart containing the decrypted data.