de.buelowssiege.mail.pgp_mime
Interface BodyPartSigner

All Known Implementing Classes:
GnuPGBodyPartSigner

public interface BodyPartSigner

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

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

Method Summary
 javax.mail.BodyPart getContentPart()
          Returns the content part that was set earlier.
 java.lang.String getMICAlg()
          Returns the name of the Message Integrity Check (MIC) Algorithm used by the signature creating process.
 javax.mail.BodyPart getSignaturePart()
          Returns the body part containing the control information necessary to verify the digital signature.
 void setContentPart(javax.mail.BodyPart contentPart)
          Sets the content part that is to be signed.
 void sign()
          This method does the actual signing.
 

Method Detail

sign

public void sign()
          throws javax.mail.MessagingException
This method does the actual signing. 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 signed.


getContentPart

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


getSignaturePart

public javax.mail.BodyPart getSignaturePart()
Returns the body part containing the control information necessary to verify the digital signature.


getMICAlg

public java.lang.String getMICAlg()
Returns the name of the Message Integrity Check (MIC) Algorithm used by the signature creating process.