Running SMimeShow
The SMimeShow sample application retrieves and displays messages from a POP mail server.
To run this sample application, execute the following command line in the etjava/examples directory.
java -classpath ../lib/enttoolkit.jar;<jakarta.mail.jar>;<jakarta.activation.jar>;[<other-mail-providers>] com.entrust.toolkit.examples.smime.SMimeShow|
Parameter |
Value |
|
<jakarta.mail.jar> |
<dependency> |
|
<jakarta.activation.jar> |
<dependency> |
|
<other-mail-providers> |
<dependency> <dependency> <dependency> |
For example:
c:\etjava\examples>java -classpath classes;..\lib\enttoolkit.jar;c:\java\lib\mail.jar;c:\java\lib\pop3.jar;c:\java\lib\activation.jar;c:\java\lib\angus-mail.jar com.entrust.toolkit.examples.smime.SMimeShowTotal messages = 10New messages = 0---------------------------------------------------------MESSAGE #1:This is the message envelope---------------------------FROM: RSAUser1@javatkexamples.entrust.comTO: RSAUser2@javatkexamples.entrust.comSUBJECT: IAIK-S/MIME: PlainSendDate: Mon Oct 06 11:40:25 EDT 2003Size: 10874FLAGS = X-Mailer NOT availableCONTENT-TYPE: multipart/mixed; boundary="----=_Part_0_1770722.1065454823578"----------------> Content is a Multipart----------------> Multipart: 1CONTENT-TYPE: text/plain; charset=us-asciiContent is a String---------------------------This is a Test of the IAIK S/MIME implementation!----------------> Multipart: 2CONTENT-TYPE: application/octet-stream; name=index.htmlContent is just an input stream: com.sun.mail.util.BASE64DecoderStream@4f459c---------------------------Length of data: 7651 bytes----------------> End of Multipart--------------------------MESSAGE #2:This is the message envelope---------------------------FROM: RSAUser1@javatkexamples.entrust.comTO: RSAUser2@javatkexamples.entrust.comSUBJECT: IAIK-S/MIME: Implicitly SignedSendDate: Mon Oct 06 11:40:57 EDT 2003Size: 18364FLAGS = X-Mailer NOT availableCONTENT-TYPE: application/x-pkcs7-mime; name=smime.p7mContent is just an input stream: com.sun.mail.util.BASE64DecoderStream@633e5e---------------------------Length of data: 13418 bytes--------------------------MESSAGE #3:This is the message envelope---------------------------FROM: RSAUser1@javatkexamples.entrust.comTO: RSAUser2@javatkexamples.entrust.comSUBJECT: IAIK-S/MIME: Encrypted [RC2-CBC/40]SendDate: Mon Oct 06 11:41:05 EDT 2003Size: 904FLAGS = X-Mailer NOT availableCONTENT-TYPE: application/x-pkcs7-mime; name=smime.p7mContent is just an input stream: com.sun.mail.util.BASE64DecoderStream@13c0cf---------------------------Length of data: 658 bytes--------------------------MESSAGE #4:This is the message envelope---------------------------FROM: RSAUser1@javatkexamples.entrust.comTO: RSAUser2@javatkexamples.entrust.comSUBJECT: IAIK-S/MIME: Encrypted [RC2-CBC/64]SendDate: Mon Oct 06 11:41:10 EDT 2003Size: 900FLAGS = X-Mailer NOT availableCONTENT-TYPE: application/x-pkcs7-mime; name=smime.p7mContent is just an input stream: com.sun.mail.util.BASE64DecoderStream@576e70---------------------------Length of data: 657 bytes--------------------------MESSAGE #5:This is the message envelope---------------------------FROM: RSAUser1@javatkexamples.entrust.comTO: RSAUser2@javatkexamples.entrust.comSUBJECT: IAIK-S/MIME: Encrypted [RC2-CBC/128]SendDate: Mon Oct 06 11:41:15 EDT 2003Size: 900FLAGS = X-Mailer NOT availableCONTENT-TYPE: application/x-pkcs7-mime; name=smime.p7mContent is just an input stream: com.sun.mail.util.BASE64DecoderStream@1381e7---------------------------Length of data: 657 bytes--------------------------MESSAGE #6:This is the message envelope---------------------------FROM: RSAUser1@javatkexamples.entrust.comTO: RSAUser2@javatkexamples.entrust.comSUBJECT: IAIK-S/MIME: Encrypted [DES-CBC]SendDate: Mon Oct 06 11:41:28 EDT 2003Size: 892FLAGS = X-Mailer NOT availableCONTENT-TYPE: application/x-pkcs7-mime; name=smime.p7mContent is just an input stream: com.sun.mail.util.BASE64DecoderStream@35998f---------------------------Length of data: 649 bytes--------------------------MESSAGE #7:This is the message envelope---------------------------FROM: RSAUser1@javatkexamples.entrust.comTO: RSAUser2@javatkexamples.entrust.comSUBJECT: IAIK-S/MIME: Encrypted [DES-EDE3-CBC]SendDate: Mon Oct 06 11:41:33 EDT 2003Size: 904FLAGS = X-Mailer NOT availableCONTENT-TYPE: application/x-pkcs7-mime; name=smime.p7mContent is just an input stream: com.sun.mail.util.BASE64DecoderStream@7494c8---------------------------Length of data: 660 bytes--------------------------MESSAGE #8:This is the message envelope---------------------------FROM: RSAUser1@javatkexamples.entrust.comTO: RSAUser2@javatkexamples.entrust.comSUBJECT: IAIK-S/MIME: Implicitly Signed and EncryptedSendDate: Mon Oct 06 11:41:38 EDT 2003Size: 26106FLAGS = X-Mailer NOT availableCONTENT-TYPE: application/x-pkcs7-mime; name=smime.p7mContent is just an input stream: com.sun.mail.util.BASE64DecoderStream@53db51---------------------------Length of data: 19077 bytes--------------------------MESSAGE #9:This is the message envelope---------------------------FROM: RSAUser1@javatkexamples.entrust.comTO: RSAUser2@javatkexamples.entrust.comSUBJECT: IAIK-S/MIME: Certificate RequestSendDate: Mon Oct 06 11:41:43 EDT 2003Size: 538FLAGS = X-Mailer NOT availableCONTENT-TYPE: application/x-pkcs10; name=smime.p10Content is just an input stream: com.sun.mail.util.BASE64DecoderStream@63c624---------------------------Length of data: 393 bytes--------------------------MESSAGE #10:This is the message envelope---------------------------FROM: RSAUser1@javatkexamples.entrust.comTO: RSAUser2@javatkexamples.entrust.comSUBJECT: IAIK-S/MIME: Certificate RequestSendDate: Mon Oct 06 11:41:49 EDT 2003Size: 953FLAGS = X-Mailer NOT availableCONTENT-TYPE: multipart/mixed; boundary="----=_Part_3_7314318.1065454909203"----------------> Content is a Multipart----------------> Multipart: 1CONTENT-TYPE: text/plain; charset=us-asciiContent is a String---------------------------This is a test where the request message is included in the second part!----------------> Multipart: 2CONTENT-TYPE: application/pkcs10; name=smime.p10Content is just an input stream: com.sun.mail.util.BASE64DecoderStream@657e8f---------------------------Length of data: 393 bytes----------------> End of MultipartReady! Press the space bar...