|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--de.buelowssiege.mail.pgp_mime.gpg.GnuPGExecuter
|
+--de.buelowssiege.mail.pgp_mime.gpg.GnuPGBodyPartSigner
This implementation of the BodyPartSigner and
BodyPartVerifier uses the GnuPG program to construct
or verify the signature.
| Field Summary |
| Fields inherited from class de.buelowssiege.mail.pgp_mime.gpg.GnuPGExecuter |
binaryPath, logger, RETURN_BAD_SIGNATURE, RETURN_OK |
| Constructor Summary | |
GnuPGBodyPartSigner(java.lang.String binaryPath)
This constructor may only be used if we will only use the created instance to verify. |
|
GnuPGBodyPartSigner(java.lang.String binaryPath,
de.buelowssiege.mail.pgp_mime.PGPAuthenticator authenticator)
Use this constructor if the instance is supposed to be used for signing. |
|
| 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. |
java.lang.String |
getVerifyMessages()
Returns the messages that are returned by GnuPG when verifying a signed multipart |
void |
setContentPart(javax.mail.BodyPart contentPart)
Sets the content part that is to be signed. |
void |
setSignaturePart(javax.mail.BodyPart signaturePart)
Sets the body part, that contains the signature created over the content part. |
void |
sign()
This method does the actual signing. |
void |
verify()
This method does the actual verifying. |
| Methods inherited from class de.buelowssiege.mail.pgp_mime.gpg.GnuPGExecuter |
createTempFile, joinProcess, readBodyPart, sendPassPhrase, startProcess, updateHeaders, writeBodyPart |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public GnuPGBodyPartSigner(java.lang.String binaryPath,
de.buelowssiege.mail.pgp_mime.PGPAuthenticator authenticator)
public GnuPGBodyPartSigner(java.lang.String binaryPath)
| Method Detail |
public void sign()
throws javax.mail.MessagingException
sign in interface BodyPartSignerjavax.mail.MessagingException
public void verify()
throws javax.mail.MessagingException
verify in interface BodyPartVerifierjavax.mail.MessagingExceptionpublic void setContentPart(javax.mail.BodyPart contentPart)
setContentPart in interface BodyPartSignerpublic javax.mail.BodyPart getContentPart()
getContentPart in interface BodyPartSignerpublic void setSignaturePart(javax.mail.BodyPart signaturePart)
setSignaturePart in interface BodyPartVerifierpublic javax.mail.BodyPart getSignaturePart()
getSignaturePart in interface BodyPartSignerpublic java.lang.String getMICAlg()
getMICAlg in interface BodyPartSignerpublic java.lang.String getVerifyMessages()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||