|
||||||||||
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
This class executes the GnuPG program.
Field Summary | |
protected java.lang.String |
binaryPath
|
protected static org.apache.log4j.Logger |
logger
|
protected static int |
RETURN_BAD_SIGNATURE
|
protected static int |
RETURN_OK
|
Constructor Summary | |
GnuPGExecuter(java.lang.String binaryPath)
|
Method Summary | |
protected java.io.File |
createTempFile()
Creates a temporary files. |
protected int |
joinProcess()
Waits for the process to terminate. |
protected javax.mail.BodyPart |
readBodyPart(java.io.File file)
Reads a bodypart from a file. |
protected void |
sendPassPhrase(char[] passphrase)
Sends the passphrase into an output stream. |
protected void |
startProcess(java.lang.String command)
Starts a process executing a command. |
protected void |
updateHeaders(java.lang.Object part)
This method is based on code from the MimeBodyPart
and the MimeMultiPart implementation from SUN. |
protected java.io.File |
writeBodyPart(javax.mail.BodyPart bodyPart)
Writes a bodypart to a temporary file. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final int RETURN_OK
protected static final int RETURN_BAD_SIGNATURE
protected java.lang.String binaryPath
protected static org.apache.log4j.Logger logger
Constructor Detail |
public GnuPGExecuter(java.lang.String binaryPath)
Method Detail |
protected int joinProcess() throws java.lang.InterruptedException, java.io.IOException
java.lang.InterruptedException
java.io.IOException
protected void startProcess(java.lang.String command) throws java.io.IOException
java.io.IOException
protected void sendPassPhrase(char[] passphrase) throws java.io.IOException
java.io.IOException
protected java.io.File createTempFile() throws java.io.IOException
java.io.IOException
protected java.io.File writeBodyPart(javax.mail.BodyPart bodyPart) throws java.io.IOException, javax.mail.MessagingException
java.io.IOException
javax.mail.MessagingException
protected javax.mail.BodyPart readBodyPart(java.io.File file) throws java.io.IOException, javax.mail.MessagingException
java.io.IOException
javax.mail.MessagingException
protected void updateHeaders(java.lang.Object part) throws javax.mail.MessagingException
MimeBodyPart
and the MimeMultiPart
implementation from SUN.
javax.mail.MessagingException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |