de.buelowssiege.mail.pgp_mime
Interface BodyPartEncrypter

All Known Implementing Classes:
GnuPGBodyPartEncrypter

public interface BodyPartEncrypter

An implementation of this interface should provide implementations of the encryption creating process as described in RFC 1847.

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

Method Summary
 void encrypt()
          This method does the actual encrypting.
 javax.mail.BodyPart getContentPart()
          Returns the content part that was set earlier.
 javax.mail.BodyPart getControlPart()
          Returns the body part containing the control information.
 javax.mail.BodyPart getEncryptedPart()
          Returns the body part containing the encrypted data.
 void setContentPart(javax.mail.BodyPart contentPart)
          Sets the content part that is to be encrypted.
 

Method Detail

encrypt

public void encrypt()
             throws javax.mail.MessagingException
This method does the actual encrypting. The content part must have been set before executing this method.

javax.mail.MessagingException

setContentPart

public void setContentPart(javax.mail.BodyPart contentPart)
Sets the content part that is to be encrypted.


getContentPart

public javax.mail.BodyPart getContentPart()
Returns the content part that was set earlier.


getEncryptedPart

public javax.mail.BodyPart getEncryptedPart()
Returns the body part containing the encrypted data.


getControlPart

public javax.mail.BodyPart getControlPart()
Returns the body part containing the control information.