G
guiding5
Hello, mysterious ALL.
I need an advice on implementation of S/MIME and PGP/MIME using
JavaMail API.
The task is to encrypt messages using inline calls for
openssl/openPGP/gnuPG (Linux).
Its easy to retrieve message's content from JavaMail objects, but
I'm facing a problem of injecting encrypted messages back. Suddenly
JavaMail API is looking too bulky and way to overkill to use. Looks
like I need to implement a lot of classes to simply insert "ready"
content into the message.
Here the question:
Is there a way to simply set content type and add headers to the
message?
Is there a way to wrap MimePart in something with easy access to its
content? (I'd like to have something like setContentType(),
setContent(String/File), addHeader(String).
P.S. Looking into different implementations of SMIME/PGP didn't
really help; most of the implementations are way too bulky.
Thanks in advance,
Best regards, Guiding5.
I need an advice on implementation of S/MIME and PGP/MIME using
JavaMail API.
The task is to encrypt messages using inline calls for
openssl/openPGP/gnuPG (Linux).
Its easy to retrieve message's content from JavaMail objects, but
I'm facing a problem of injecting encrypted messages back. Suddenly
JavaMail API is looking too bulky and way to overkill to use. Looks
like I need to implement a lot of classes to simply insert "ready"
content into the message.
Here the question:
Is there a way to simply set content type and add headers to the
message?
Is there a way to wrap MimePart in something with easy access to its
content? (I'd like to have something like setContentType(),
setContent(String/File), addHeader(String).
P.S. Looking into different implementations of SMIME/PGP didn't
really help; most of the implementations are way too bulky.
Thanks in advance,
Best regards, Guiding5.