Running SMimeShow for S/MIME v3

The SMimeShow sample application for S/MIME v3 retrieves and displays messages from a POP mail server.

To run this sample application, execute 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>
<groupId>com.sun.mail</groupId>
<artifactId>jakarta.mail</artifactId>
<version>2.0.1</version>
</dependency>

<jakarta.activation.jar>

<dependency>
<groupId>com.sun.activation</groupId>
<artifactId>jakarta.activation</artifactId>
<version>2.0.1</version>
</dependency>

<other-mail-providers>

<dependency>
<groupId>org.eclipse.angus</groupId>
<artifactId>angus-mail</artifactId>
<version>2.0.3</version>
</dependency>
<dependency>
<groupId>org.eclipse.angus</groupId>
<artifactId>angus-activation</artifactId>
<version>2.0.2</version>
</dependency>
<dependency>
<groupId>org.eclipse.angus</groupId>
<artifactId>pop3</artifactId>
<version>2.0.3</version>
</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.SMimeShow
 
Total messages = 35
New messages = 0
-------------------------------
--------------------------
MESSAGE #1:
This is the message envelope
---------------------------
FROM: regray@wottjgrayibm
TO: jogray@wottjgrayibm
SUBJECT: IAIK-S/MIME: Plain
SendDate: Mon Jul 18 16:23:16 EDT 2005
Size: 218
FLAGS =
X-Mailer NOT available
CONTENT-TYPE: multipart/mixed;
boundary="----=_Part_0_11985823.1121718196792"
----------------> Content is a Multipart
----------------> Multipart: 1
CONTENT-TYPE: text/plain; charset=us-ascii
Content is a String
---------------------------
This is a Test of the IAIK S/MIME implementation!
 
 
----------------> End of Multipart
--------------------------
MESSAGE #2:
This is the message envelope
---------------------------
FROM: regray@wottjgrayibm
TO: jogray@wottjgrayibm
SUBJECT: IAIK-S/MIME: Compressed [ZLIB-COMPRESS]
SendDate: Mon Jul 18 16:23:17 EDT 2005
Size: 446
FLAGS =
X-Mailer NOT available
CONTENT-TYPE: application/pkcs7-mime; smime-type=compressed-data;
name=smime.p7z
This message is a compressed content!
Algorithm: ZLIB-COMPRESS
----------------> Content is a Multipart
----------------> Multipart: 1
CONTENT-TYPE: text/plain; charset=us-ascii
Content is a String
---------------------------
This is a Test of the IAIK S/MIME implementation!
 
 
----------------> End of Multipart
--------------------------
MESSAGE #3:
This is the message envelope
---------------------------
FROM: regray@wottjgrayibm
TO: jogray@wottjgrayibm
SUBJECT: IAIK-S/MIME: Explicitly Signed
SendDate: Mon Jul 18 16:23:19 EDT 2005
Size: 3874
FLAGS =
X-Mailer NOT available
CONTENT-TYPE: multipart/signed; micalg=sha1;
protocol="application/pkcs7-signature";
boundary="----=_Part_1_32189467.1121718199417"
This message is signed!
Verification with verify() successful!
This message is signed from: cn=RSA User1,ou=PKI7,o=Java Toolkit Samples,c=CA
Verification with verify(cert) successful!
Certificate trusted!
Certificate trusted!
SignerInfo 0 contains the following signed attributes:
OBJECT ID = contentType
contentType = OBJECT ID = PKCS#7 data
 
 
OBJECT ID = signingTime
signingTime = UTCTime = 050718202319Z
 
 
OBJECT ID = messageDigest
messageDigest = OCTET STRING = 20 bytes: D3:AC:7C:D8:1C...
 
 
OBJECT ID = symmetricCapabilities
symmetricCapabilities = SEQUENCE[C] = 5 elements
SEQUENCE[C] = 1 elements
OBJECT ID = DES-EDE3-CBC
SEQUENCE[C] = 2 elements
OBJECT ID = RC2-CBC
INTEGER = 128
SEQUENCE[C] = 2 elements
OBJECT ID = RC2-CBC
INTEGER = 64
SEQUENCE[C] = 2 elements
OBJECT ID = RC2-CBC
INTEGER = 40
SEQUENCE[C] = 1 elements
OBJECT ID = DES-CBC
 
 
----------------> Content is a Multipart
----------------> Multipart: 1
CONTENT-TYPE: text/plain; charset=us-ascii
Content is a String
---------------------------
This is a Test of the IAIK S/MIME implementation!
 
 
----------------> End of Multipart
--------------------------
MESSAGE #4:
This is the message envelope
---------------------------
FROM: regray@wottjgrayibm
TO: jogray@wottjgrayibm
SUBJECT: IAIK-S/MIME: Compressed [ZLIB-COMPRESS]
SendDate: Mon Jul 18 16:23:20 EDT 2005
Size: 3476
FLAGS =
X-Mailer NOT available
CONTENT-TYPE: application/pkcs7-mime; smime-type=compressed-data;
name=smime.p7z
This message is a compressed content!
Algorithm: ZLIB-COMPRESS
This message is signed!
Verification with verify() successful!
This message is signed from: cn=RSA User1,ou=PKI7,o=Java Toolkit Samples,c=CA
Verification with verify(cert) successful!
Certificate trusted!
Certificate trusted!
SignerInfo 0 contains the following signed attributes:
OBJECT ID = contentType
contentType = OBJECT ID = PKCS#7 data
 
 
OBJECT ID = signingTime
signingTime = UTCTime = 050718202319Z
 
 
OBJECT ID = messageDigest
messageDigest = OCTET STRING = 20 bytes: D3:AC:7C:D8:1C...
 
 
OBJECT ID = symmetricCapabilities
symmetricCapabilities = SEQUENCE[C] = 5 elements
SEQUENCE[C] = 1 elements
OBJECT ID = DES-EDE3-CBC
SEQUENCE[C] = 2 elements
OBJECT ID = RC2-CBC
INTEGER = 128
SEQUENCE[C] = 2 elements
OBJECT ID = RC2-CBC
INTEGER = 64
SEQUENCE[C] = 2 elements
OBJECT ID = RC2-CBC
INTEGER = 40
SEQUENCE[C] = 1 elements
OBJECT ID = DES-CBC
 
 
----------------> Content is a Multipart
----------------> Multipart: 1
CONTENT-TYPE: text/plain; charset=us-ascii
Content is a String
---------------------------
This is a Test of the IAIK S/MIME implementation!
 
 
----------------> End of Multipart
--------------------------
MESSAGE #5:
This is the message envelope
---------------------------
FROM: regray@wottjgrayibm
TO: jogray@wottjgrayibm
SUBJECT: IAIK-S/MIME: Implicitly Signed
SendDate: Mon Jul 18 16:23:21 EDT 2005
Size: 3726
FLAGS =
X-Mailer NOT available
CONTENT-TYPE: application/pkcs7-mime; name=smime.p7m
This message is signed!
Verification with verify() successful!
This message is signed from: cn=RSA User1,ou=PKI7,o=Java Toolkit Samples,c=CA
Verification with verify(cert) successful!
Certificate trusted!
Certificate trusted!
SignerInfo 0 contains the following signed attributes:
OBJECT ID = contentType
contentType = OBJECT ID = PKCS#7 data
 
 
OBJECT ID = signingTime
signingTime = UTCTime = 050718202321Z
 
 
OBJECT ID = messageDigest
messageDigest = OCTET STRING = 20 bytes: D3:AC:7C:D8:1C...
 
 
OBJECT ID = symmetricCapabilities
symmetricCapabilities = SEQUENCE[C] = 5 elements
SEQUENCE[C] = 1 elements
OBJECT ID = DES-EDE3-CBC
SEQUENCE[C] = 2 elements
OBJECT ID = RC2-CBC
INTEGER = 128
SEQUENCE[C] = 2 elements
OBJECT ID = RC2-CBC
INTEGER = 64
SEQUENCE[C] = 2 elements
OBJECT ID = RC2-CBC
INTEGER = 40
SEQUENCE[C] = 1 elements
OBJECT ID = DES-CBC
 
 
----------------> Content is a Multipart
----------------> Multipart: 1
CONTENT-TYPE: text/plain; charset=us-ascii
Content is a String
---------------------------
This is a Test of the IAIK S/MIME implementation!
 
 
----------------> End of Multipart
--------------------------
MESSAGE #6:
This is the message envelope
---------------------------
FROM: regray@wottjgrayibm
TO: jogray@wottjgrayibm
SUBJECT: IAIK-S/MIME: Compressed [ZLIB-COMPRESS]
SendDate: Mon Jul 18 16:23:22 EDT 2005
Size: 3464
FLAGS =
X-Mailer NOT available
CONTENT-TYPE: application/pkcs7-mime; smime-type=compressed-data;
name=smime.p7z
This message is a compressed content!
Algorithm: ZLIB-COMPRESS
This message is signed!
Verification with verify() successful!
This message is signed from: cn=RSA User1,ou=PKI7,o=Java Toolkit Samples,c=CA
Verification with verify(cert) successful!
Certificate trusted!
Certificate trusted!
SignerInfo 0 contains the following signed attributes:
OBJECT ID = contentType
contentType = OBJECT ID = PKCS#7 data
 
 
OBJECT ID = signingTime
signingTime = UTCTime = 050718202321Z
 
 
OBJECT ID = messageDigest
messageDigest = OCTET STRING = 20 bytes: D3:AC:7C:D8:1C...
 
 
OBJECT ID = symmetricCapabilities
symmetricCapabilities = SEQUENCE[C] = 5 elements
SEQUENCE[C] = 1 elements
OBJECT ID = DES-EDE3-CBC
SEQUENCE[C] = 2 elements
OBJECT ID = RC2-CBC
INTEGER = 128
SEQUENCE[C] = 2 elements
OBJECT ID = RC2-CBC
INTEGER = 64
SEQUENCE[C] = 2 elements
OBJECT ID = RC2-CBC
INTEGER = 40
SEQUENCE[C] = 1 elements
OBJECT ID = DES-CBC
 
 
----------------> Content is a Multipart
----------------> Multipart: 1
CONTENT-TYPE: text/plain; charset=us-ascii
Content is a String
---------------------------
This is a Test of the IAIK S/MIME implementation!
 
 
----------------> End of Multipart
--------------------------
MESSAGE #7:
This is the message envelope
---------------------------
FROM: regray@wottjgrayibm
TO: jogray@wottjgrayibm
SUBJECT: IAIK-S/MIME: Encrypted [RC2-CBC/40]
SendDate: Mon Jul 18 16:23:22 EDT 2005
Size: 926
FLAGS =
X-Mailer NOT available
CONTENT-TYPE: application/pkcs7-mime; name=smime.p7m
This message is encrypted!
Content is a String
---------------------------
This is the encrypted content!
Content encryption algorithm: RC2-CBC
 
 
--------------------------
MESSAGE #8:
This is the message envelope
---------------------------
FROM: regray@wottjgrayibm
TO: jogray@wottjgrayibm
SUBJECT: IAIK-S/MIME: Compressed [ZLIB-COMPRESS]
SendDate: Mon Jul 18 16:23:24 EDT 2005
Size: 1222
FLAGS =
X-Mailer NOT available
CONTENT-TYPE: application/pkcs7-mime; smime-type=compressed-data;
name=smime.p7z
This message is a compressed content!
Algorithm: ZLIB-COMPRESS
This message is encrypted!
Content is a String
---------------------------
This is the encrypted content!
Content encryption algorithm: RC2-CBC
 
 
--------------------------
MESSAGE #9:
This is the message envelope
---------------------------
FROM: regray@wottjgrayibm
TO: jogray@wottjgrayibm
SUBJECT: IAIK-S/MIME: Encrypted [RC2-CBC/64]
SendDate: Mon Jul 18 16:23:24 EDT 2005
Size: 926
FLAGS =
X-Mailer NOT available
CONTENT-TYPE: application/pkcs7-mime; name=smime.p7m
This message is encrypted!
Content is a String
---------------------------
This is the encrypted content!
Content encryption algorithm: RC2-CBC
 
 
--------------------------
MESSAGE #10:
This is the message envelope
---------------------------
FROM: regray@wottjgrayibm
TO: jogray@wottjgrayibm
SUBJECT: IAIK-S/MIME: Compressed [ZLIB-COMPRESS]
SendDate: Mon Jul 18 16:23:25 EDT 2005
Size: 1222
FLAGS =
X-Mailer NOT available
CONTENT-TYPE: application/pkcs7-mime; smime-type=compressed-data;
name=smime.p7z
This message is a compressed content!
Algorithm: ZLIB-COMPRESS
This message is encrypted!
Content is a String
---------------------------
This is the encrypted content!
Content encryption algorithm: RC2-CBC
 
 
--------------------------
MESSAGE #11:
This is the message envelope
---------------------------
FROM: regray@wottjgrayibm
TO: jogray@wottjgrayibm
SUBJECT: IAIK-S/MIME: Encrypted [RC2-CBC/128]
SendDate: Mon Jul 18 16:23:26 EDT 2005
Size: 926
FLAGS =
X-Mailer NOT available
CONTENT-TYPE: application/pkcs7-mime; name=smime.p7m
This message is encrypted!
Content is a String
---------------------------
This is the encrypted content!
Content encryption algorithm: RC2-CBC
 
 
--------------------------
MESSAGE #12:
This is the message envelope
---------------------------
FROM: regray@wottjgrayibm
TO: jogray@wottjgrayibm
SUBJECT: IAIK-S/MIME: Compressed [ZLIB-COMPRESS]
SendDate: Mon Jul 18 16:23:27 EDT 2005
Size: 1222
FLAGS =
X-Mailer NOT available
CONTENT-TYPE: application/pkcs7-mime; smime-type=compressed-data;
name=smime.p7z
This message is a compressed content!
Algorithm: ZLIB-COMPRESS
This message is encrypted!
Content is a String
---------------------------
This is the encrypted content!
Content encryption algorithm: RC2-CBC
 
 
--------------------------
MESSAGE #13:
This is the message envelope
---------------------------
FROM: regray@wottjgrayibm
TO: jogray@wottjgrayibm
SUBJECT: IAIK-S/MIME: Encrypted [DES-EDE3-CBC]
SendDate: Mon Jul 18 16:23:27 EDT 2005
Size: 930
FLAGS =
X-Mailer NOT available
CONTENT-TYPE: application/pkcs7-mime; name=smime.p7m
This message is encrypted!
Content is a String
---------------------------
This is the encrypted content!
Content encryption algorithm: DES-EDE3-CBC
 
 
--------------------------
MESSAGE #14:
This is the message envelope
---------------------------
FROM: regray@wottjgrayibm
TO: jogray@wottjgrayibm
SUBJECT: IAIK-S/MIME: Compressed [ZLIB-COMPRESS]
SendDate: Mon Jul 18 16:23:28 EDT 2005
Size: 1222
FLAGS =
X-Mailer NOT available
CONTENT-TYPE: application/pkcs7-mime; smime-type=compressed-data;
name=smime.p7z
This message is a compressed content!
Algorithm: ZLIB-COMPRESS
This message is encrypted!
Content is a String
---------------------------
This is the encrypted content!
Content encryption algorithm: DES-EDE3-CBC
 
 
--------------------------
MESSAGE #15:
This is the message envelope
---------------------------
FROM: regray@wottjgrayibm
TO: jogray@wottjgrayibm
SUBJECT: IAIK-S/MIME: Implicitly Signed and Encrypted
SendDate: Mon Jul 18 16:23:29 EDT 2005
Size: 6026
FLAGS =
X-Mailer NOT available
CONTENT-TYPE: application/pkcs7-mime; name=smime.p7m
This message is encrypted!
This message is signed!
Verification with verify() successful!
This message is signed from: cn=RSA User1,ou=PKI7,o=Java Toolkit Samples,c=CA
Verification with verify(cert) successful!
Certificate trusted!
Certificate trusted!
SignerInfo 0 contains the following signed attributes:
OBJECT ID = contentType
contentType = OBJECT ID = PKCS#7 data
 
 
OBJECT ID = signingTime
signingTime = UTCTime = 050718202329Z
 
 
OBJECT ID = messageDigest
messageDigest = OCTET STRING = 20 bytes: D3:AC:7C:D8:1C...
 
 
OBJECT ID = symmetricCapabilities
symmetricCapabilities = SEQUENCE[C] = 5 elements
SEQUENCE[C] = 1 elements
OBJECT ID = DES-EDE3-CBC
SEQUENCE[C] = 2 elements
OBJECT ID = RC2-CBC
INTEGER = 128
SEQUENCE[C] = 2 elements
OBJECT ID = RC2-CBC
INTEGER = 64
SEQUENCE[C] = 2 elements
OBJECT ID = RC2-CBC
INTEGER = 40
SEQUENCE[C] = 1 elements
OBJECT ID = DES-CBC
 
 
----------------> Content is a Multipart
----------------> Multipart: 1
CONTENT-TYPE: text/plain; charset=us-ascii
Content is a String
---------------------------
This is a Test of the IAIK S/MIME implementation!
 
 
----------------> End of Multipart
--------------------------
MESSAGE #16:
This is the message envelope
---------------------------
FROM: regray@wottjgrayibm
TO: jogray@wottjgrayibm
SUBJECT: IAIK-S/MIME: Compressed [ZLIB-COMPRESS]
SendDate: Mon Jul 18 16:23:30 EDT 2005
Size: 6538
FLAGS =
X-Mailer NOT available
CONTENT-TYPE: application/pkcs7-mime; smime-type=compressed-data;
name=smime.p7z
This message is a compressed content!
Algorithm: ZLIB-COMPRESS
This message is encrypted!
This message is signed!
Verification with verify() successful!
This message is signed from: cn=RSA User1,ou=PKI7,o=Java Toolkit Samples,c=CA
Verification with verify(cert) successful!
Certificate trusted!
Certificate trusted!
SignerInfo 0 contains the following signed attributes:
OBJECT ID = contentType
contentType = OBJECT ID = PKCS#7 data
 
 
OBJECT ID = signingTime
signingTime = UTCTime = 050718202329Z
 
 
OBJECT ID = messageDigest
messageDigest = OCTET STRING = 20 bytes: D3:AC:7C:D8:1C...
 
 
OBJECT ID = symmetricCapabilities
symmetricCapabilities = SEQUENCE[C] = 5 elements
SEQUENCE[C] = 1 elements
OBJECT ID = DES-EDE3-CBC
SEQUENCE[C] = 2 elements
OBJECT ID = RC2-CBC
INTEGER = 128
SEQUENCE[C] = 2 elements
OBJECT ID = RC2-CBC
INTEGER = 64
SEQUENCE[C] = 2 elements
OBJECT ID = RC2-CBC
INTEGER = 40
SEQUENCE[C] = 1 elements
OBJECT ID = DES-CBC
 
 
----------------> Content is a Multipart
----------------> Multipart: 1
CONTENT-TYPE: text/plain; charset=us-ascii
Content is a String
---------------------------
This is a Test of the IAIK S/MIME implementation!
 
 
----------------> End of Multipart
--------------------------
MESSAGE #17:
This is the message envelope
---------------------------
FROM: regray@wottjgrayibm
TO: jogray@wottjgrayibm
SUBJECT: IAIK-S/MIME: Explicitly Signed and Encrypted
SendDate: Mon Jul 18 16:23:31 EDT 2005
Size: 6210
FLAGS =
X-Mailer NOT available
CONTENT-TYPE: application/pkcs7-mime; name=smime.p7m
This message is encrypted!
This message is signed!
Verification with verify() successful!
This message is signed from: cn=RSA User1,ou=PKI7,o=Java Toolkit Samples,c=CA
Verification with verify(cert) successful!
Certificate trusted!
Certificate trusted!
SignerInfo 0 contains the following signed attributes:
OBJECT ID = contentType
contentType = OBJECT ID = PKCS#7 data
 
 
OBJECT ID = signingTime
signingTime = UTCTime = 050718202331Z
 
 
OBJECT ID = messageDigest
messageDigest = OCTET STRING = 20 bytes: D3:AC:7C:D8:1C...
 
 
OBJECT ID = symmetricCapabilities
symmetricCapabilities = SEQUENCE[C] = 5 elements
SEQUENCE[C] = 1 elements
OBJECT ID = DES-EDE3-CBC
SEQUENCE[C] = 2 elements
OBJECT ID = RC2-CBC
INTEGER = 128
SEQUENCE[C] = 2 elements
OBJECT ID = RC2-CBC
INTEGER = 64
SEQUENCE[C] = 2 elements
OBJECT ID = RC2-CBC
INTEGER = 40
SEQUENCE[C] = 1 elements
OBJECT ID = DES-CBC
 
 
----------------> Content is a Multipart
----------------> Multipart: 1
CONTENT-TYPE: text/plain; charset=us-ascii
Content is a String
---------------------------
This is a Test of the IAIK S/MIME implementation!
 
 
----------------> End of Multipart
--------------------------
MESSAGE #18:
This is the message envelope
---------------------------
FROM: regray@wottjgrayibm
TO: jogray@wottjgrayibm
SUBJECT: IAIK-S/MIME: Compressed [ZLIB-COMPRESS]
SendDate: Mon Jul 18 16:23:31 EDT 2005
Size: 6724
FLAGS =
X-Mailer NOT available
CONTENT-TYPE: application/pkcs7-mime; smime-type=compressed-data;
name=smime.p7z
This message is a compressed content!
Algorithm: ZLIB-COMPRESS
This message is encrypted!
This message is signed!
Verification with verify() successful!
This message is signed from: cn=RSA User1,ou=PKI7,o=Java Toolkit Samples,c=CA
Verification with verify(cert) successful!
Certificate trusted!
Certificate trusted!
SignerInfo 0 contains the following signed attributes:
OBJECT ID = contentType
contentType = OBJECT ID = PKCS#7 data
 
 
OBJECT ID = signingTime
signingTime = UTCTime = 050718202331Z
 
 
OBJECT ID = messageDigest
messageDigest = OCTET STRING = 20 bytes: D3:AC:7C:D8:1C...
 
 
OBJECT ID = symmetricCapabilities
symmetricCapabilities = SEQUENCE[C] = 5 elements
SEQUENCE[C] = 1 elements
OBJECT ID = DES-EDE3-CBC
SEQUENCE[C] = 2 elements
OBJECT ID = RC2-CBC
INTEGER = 128
SEQUENCE[C] = 2 elements
OBJECT ID = RC2-CBC
INTEGER = 64
SEQUENCE[C] = 2 elements
OBJECT ID = RC2-CBC
INTEGER = 40
SEQUENCE[C] = 1 elements
OBJECT ID = DES-CBC
 
 
----------------> Content is a Multipart
----------------> Multipart: 1
CONTENT-TYPE: text/plain; charset=us-ascii
Content is a String
---------------------------
This is a Test of the IAIK S/MIME implementation!
 
 
----------------> End of Multipart
--------------------------
MESSAGE #19:
This is the message envelope
---------------------------
FROM: regray@wottjgrayibm
TO: jogray@wottjgrayibm
SUBJECT: IAIK S/MIME: Certs-only message
SendDate: Mon Jul 18 16:23:32 EDT 2005
Size: 2720
FLAGS =
X-Mailer NOT available
CONTENT-TYPE: application/pkcs7-mime; smime-type=certs-only; name=smime.p7c
This message is signed!
This message contains only certificates!
--------------------------
MESSAGE #20:
This is the message envelope
---------------------------
FROM: regray@wottjgrayibm
TO: jogray@wottjgrayibm
SUBJECT: IAIK-S/MIME: Compressed [ZLIB-COMPRESS]
SendDate: Mon Jul 18 16:23:33 EDT 2005
Size: 2642
FLAGS =
X-Mailer NOT available
CONTENT-TYPE: application/pkcs7-mime; smime-type=compressed-data;
name=smime.p7z
This message is a compressed content!
Algorithm: ZLIB-COMPRESS
This message is signed!
This message contains only certificates!
--------------------------
MESSAGE #21:
This is the message envelope
---------------------------
FROM: regray@wottjgrayibm
TO: jogray@wottjgrayibm
SUBJECT: IAIK S/MIME: Certs-only message
SendDate: Mon Jul 18 16:23:34 EDT 2005
Size: 3112
FLAGS =
X-Mailer NOT available
CONTENT-TYPE: multipart/mixed; boundary="----=_Part_7_7760420.1121718214199"
----------------> Content is a Multipart
----------------> Multipart: 1
CONTENT-TYPE: text/plain; charset=us-ascii
Content is a String
---------------------------
This is a test where the certs-only message is included in the second part!
 
 
----------------> Multipart: 2
CONTENT-TYPE: application/pkcs7-mime; smime-type=certs-only; name=smime.p7c
This message is signed!
This message contains only certificates!
----------------> End of Multipart
--------------------------
MESSAGE #22:
This is the message envelope
---------------------------
FROM: regray@wottjgrayibm
TO: jogray@wottjgrayibm
SUBJECT: IAIK-S/MIME: Compressed [ZLIB-COMPRESS]
SendDate: Mon Jul 18 16:23:34 EDT 2005
Size: 2898
FLAGS =
X-Mailer NOT available
CONTENT-TYPE: application/pkcs7-mime; smime-type=compressed-data;
name=smime.p7z
This message is a compressed content!
Algorithm: ZLIB-COMPRESS
----------------> Content is a Multipart
----------------> Multipart: 1
CONTENT-TYPE: text/plain; charset=us-ascii
Content is a String
---------------------------
This is a test where the certs-only message is included in the second part!
 
 
----------------> Multipart: 2
CONTENT-TYPE: application/pkcs7-mime; smime-type=certs-only; name=smime.p7c
This message is signed!
This message contains only certificates!
----------------> End of Multipart
--------------------------
MESSAGE #23:
This is the message envelope
---------------------------
FROM: regray@wottjgrayibm
TO: jogray@wottjgrayibm
SUBJECT: IAIK-S/MIME: Certificate Request
SendDate: Mon Jul 18 16:23:35 EDT 2005
Size: 520
FLAGS =
X-Mailer NOT available
CONTENT-TYPE: application/pkcs10; name=smime.p10
This message contains a certificate request:
Version: 0
Subject: EMail=regray@wottjgrayibm,cn=null null
public exponent: 10001
modulus: d11a844dfab25ab9fbbcc9876e291c9c3460f812c5fb8c4d4e780633890c0199dea5b5f31cb784f9e11894757a6837c76eaa1ef9bc516aa6ea6a1518ca8aa078b3d18cd06173377fcacb4ce902126866be0209d0fd26636b7152cf66b19ef325512821390f22879d8ffc826fe007aa8194c2f6551ea9e2d003dc8d00a0a19f7f
Signature algorithm: sha1WithRSAEncryption
 
Fingerprint: 71:39:2B:90:A9:B7:09:28:D7:FE:8B:61:AA:15:55:8C
 
Request verification ok for EMail=regray@wottjgrayibm,cn=null null
--------------------------
MESSAGE #24:
This is the message envelope
---------------------------
FROM: regray@wottjgrayibm
TO: jogray@wottjgrayibm
SUBJECT: IAIK-S/MIME: Compressed [ZLIB-COMPRESS]
SendDate: Mon Jul 18 16:23:37 EDT 2005
Size: 808
FLAGS =
X-Mailer NOT available
CONTENT-TYPE: application/pkcs7-mime; smime-type=compressed-data;
name=smime.p7z
This message is a compressed content!
Algorithm: ZLIB-COMPRESS
This message contains a certificate request:
Version: 0
Subject: EMail=regray@wottjgrayibm,cn=null null
public exponent: 10001
modulus: d11a844dfab25ab9fbbcc9876e291c9c3460f812c5fb8c4d4e780633890c0199dea5b5f31cb784f9e11894757a6837c76eaa1ef9bc516aa6ea6a1518ca8aa078b3d18cd06173377fcacb4ce902126866be0209d0fd26636b7152cf66b19ef325512821390f22879d8ffc826fe007aa8194c2f6551ea9e2d003dc8d00a0a19f7f
Signature algorithm: sha1WithRSAEncryption
 
Fingerprint: 71:39:2B:90:A9:B7:09:28:D7:FE:8B:61:AA:15:55:8C
 
Request verification ok for EMail=regray@wottjgrayibm,cn=null null
--------------------------
MESSAGE #25:
This is the message envelope
---------------------------
FROM: regray@wottjgrayibm
TO: jogray@wottjgrayibm
SUBJECT: IAIK-S/MIME: Certificate Request
SendDate: Mon Jul 18 16:23:37 EDT 2005
Size: 935
FLAGS =
X-Mailer NOT available
CONTENT-TYPE: multipart/mixed; boundary="----=_Part_8_1049443.1121718217902"
----------------> Content is a Multipart
----------------> Multipart: 1
CONTENT-TYPE: text/plain; charset=us-ascii
Content is a String
---------------------------
This is a test where the request message is included in the second part!
 
 
----------------> Multipart: 2
CONTENT-TYPE: application/pkcs10; name=smime.p10
This message contains a certificate request:
Version: 0
Subject: EMail=regray@wottjgrayibm,cn=null null
public exponent: 10001
modulus: d11a844dfab25ab9fbbcc9876e291c9c3460f812c5fb8c4d4e780633890c0199dea5b5f31cb784f9e11894757a6837c76eaa1ef9bc516aa6ea6a1518ca8aa078b3d18cd06173377fcacb4ce902126866be0209d0fd26636b7152cf66b19ef325512821390f22879d8ffc826fe007aa8194c2f6551ea9e2d003dc8d00a0a19f7f
Signature algorithm: sha1WithRSAEncryption
 
Fingerprint: 71:39:2B:90:A9:B7:09:28:D7:FE:8B:61:AA:15:55:8C
 
Request verification ok for EMail=regray@wottjgrayibm,cn=null null
----------------> End of Multipart
--------------------------
MESSAGE #26:
This is the message envelope
---------------------------
FROM: regray@wottjgrayibm
TO: jogray@wottjgrayibm
SUBJECT: IAIK-S/MIME: Compressed [ZLIB-COMPRESS]
SendDate: Mon Jul 18 16:23:38 EDT 2005
Size: 1104
FLAGS =
X-Mailer NOT available
CONTENT-TYPE: application/pkcs7-mime; smime-type=compressed-data;
name=smime.p7z
This message is a compressed content!
Algorithm: ZLIB-COMPRESS
----------------> Content is a Multipart
----------------> Multipart: 1
CONTENT-TYPE: text/plain; charset=us-ascii
Content is a String
---------------------------
This is a test where the request message is included in the second part!
 
 
----------------> Multipart: 2
CONTENT-TYPE: application/pkcs10; name=smime.p10
This message contains a certificate request:
Version: 0
Subject: EMail=regray@wottjgrayibm,cn=null null
public exponent: 10001
modulus: d11a844dfab25ab9fbbcc9876e291c9c3460f812c5fb8c4d4e780633890c0199dea5b5f31cb784f9e11894757a6837c76eaa1ef9bc516aa6ea6a1518ca8aa078b3d18cd06173377fcacb4ce902126866be0209d0fd26636b7152cf66b19ef325512821390f22879d8ffc826fe007aa8194c2f6551ea9e2d003dc8d00a0a19f7f
Signature algorithm: sha1WithRSAEncryption
 
Fingerprint: 71:39:2B:90:A9:B7:09:28:D7:FE:8B:61:AA:15:55:8C
 
Request verification ok for EMail=regray@wottjgrayibm,cn=null null
----------------> End of Multipart
--------------------------
MESSAGE #27:
This is the message envelope
---------------------------
FROM: regray@wottjgrayibm
TO: jogray@wottjgrayibm
SUBJECT: IAIK-S/MIME: Compressed [ZLIB-COMPRESS]
SendDate: Mon Jul 18 16:23:39 EDT 2005
Size: 364
FLAGS =
X-Mailer NOT available
CONTENT-TYPE: application/pkcs7-mime; smime-type=compressed-data;
name=smime.p7z
This message is a compressed content!
Algorithm: ZLIB-COMPRESS
----------------> Content is a Multipart
----------------> Multipart: 1
CONTENT-TYPE: text/plain; charset=us-ascii
Content is a String
---------------------------
This is a Test of the IAIK S/MIME implementation!
 
 
----------------> End of Multipart
--------------------------
MESSAGE #28:
This is the message envelope
---------------------------
FROM: regray@wottjgrayibm
TO: jogray@wottjgrayibm
SUBJECT: IAIK-S/MIME: Implicitly Signed
SendDate: Mon Jul 18 16:23:39 EDT 2005
Size: 5406
FLAGS =
X-Mailer NOT available
CONTENT-TYPE: application/pkcs7-mime; smime-type=compressed-data;
name=smime.p7z
This message is a compressed content!
Algorithm: alg_null
This message is signed!
Verification with verify() successful!
This message is signed from: cn=RSA User1,ou=PKI7,o=Java Toolkit Samples,c=CA
Verification with verify(cert) successful!
Certificate trusted!
Certificate trusted!
SignerInfo 0 contains the following signed attributes:
OBJECT ID = contentType
contentType = OBJECT ID = PKCS#7 data
 
 
OBJECT ID = signingTime
signingTime = UTCTime = 050718202339Z
 
 
OBJECT ID = messageDigest
messageDigest = OCTET STRING = 20 bytes: D3:AC:7C:D8:1C...
 
 
OBJECT ID = symmetricCapabilities
symmetricCapabilities = SEQUENCE[C] = 5 elements
SEQUENCE[C] = 1 elements
OBJECT ID = DES-EDE3-CBC
SEQUENCE[C] = 2 elements
OBJECT ID = RC2-CBC
INTEGER = 128
SEQUENCE[C] = 2 elements
OBJECT ID = RC2-CBC
INTEGER = 64
SEQUENCE[C] = 2 elements
OBJECT ID = RC2-CBC
INTEGER = 40
SEQUENCE[C] = 1 elements
OBJECT ID = DES-CBC
 
 
----------------> Content is a Multipart
----------------> Multipart: 1
CONTENT-TYPE: text/plain; charset=us-ascii
Content is a String
---------------------------
This is a Test of the IAIK S/MIME implementation!
 
 
----------------> End of Multipart
--------------------------
MESSAGE #29:
This is the message envelope
---------------------------
FROM: regray@wottjgrayibm
TO: jogray@wottjgrayibm
SUBJECT: IAIK-S/MIME: Implicitly Signed
SendDate: Mon Jul 18 16:23:40 EDT 2005
Size: 3464
FLAGS =
X-Mailer NOT available
CONTENT-TYPE: application/pkcs7-mime; smime-type=compressed-data;
name=smime.p7z
This message is a compressed content!
Algorithm: ZLIB-COMPRESS
This message is signed!
Verification with verify() successful!
This message is signed from: cn=RSA User1,ou=PKI7,o=Java Toolkit Samples,c=CA
Verification with verify(cert) successful!
Certificate trusted!
Certificate trusted!
SignerInfo 0 contains the following signed attributes:
OBJECT ID = contentType
contentType = OBJECT ID = PKCS#7 data
 
 
OBJECT ID = signingTime
signingTime = UTCTime = 050718202340Z
 
 
OBJECT ID = messageDigest
messageDigest = OCTET STRING = 20 bytes: D3:AC:7C:D8:1C...
 
 
OBJECT ID = symmetricCapabilities
symmetricCapabilities = SEQUENCE[C] = 5 elements
SEQUENCE[C] = 1 elements
OBJECT ID = DES-EDE3-CBC
SEQUENCE[C] = 2 elements
OBJECT ID = RC2-CBC
INTEGER = 128
SEQUENCE[C] = 2 elements
OBJECT ID = RC2-CBC
INTEGER = 64
SEQUENCE[C] = 2 elements
OBJECT ID = RC2-CBC
INTEGER = 40
SEQUENCE[C] = 1 elements
OBJECT ID = DES-CBC
 
 
----------------> Content is a Multipart
----------------> Multipart: 1
CONTENT-TYPE: text/plain; charset=us-ascii
Content is a String
---------------------------
This is a Test of the IAIK S/MIME implementation!
 
 
----------------> End of Multipart
--------------------------
MESSAGE #30:
This is the message envelope
---------------------------
FROM: regray@wottjgrayibm
TO: jogray@wottjgrayibm
SUBJECT: SMime Message! May be signed, encrypted and compressed in any order or combination! This is a application/pkcs7-mime; smime-type=compressed-data; name=smime.p7zmessage!
SendDate: Mon Jul 18 16:23:42 EDT 2005
Size: 3402
FLAGS =
X-Mailer NOT available
CONTENT-TYPE: application/pkcs7-mime; smime-type=compressed-data;
name=smime.p7z
This message is a compressed content!
Algorithm: ZLIB-COMPRESS
This message is signed!
Verification with verify() successful!
This message is signed from: cn=RSA User1,ou=PKI7,o=Java Toolkit Samples,c=CA
Verification with verify(cert) successful!
Certificate trusted!
Certificate trusted!
SignerInfo 0 contains the following signed attributes:
OBJECT ID = contentType
contentType = OBJECT ID = PKCS#7 data
 
 
OBJECT ID = signingTime
signingTime = UTCTime = 050718202342Z
 
 
OBJECT ID = messageDigest
messageDigest = OCTET STRING = 20 bytes: E5:DD:42:B7:04...
 
 
OBJECT ID = symmetricCapabilities
symmetricCapabilities = SEQUENCE[C] = 5 elements
SEQUENCE[C] = 1 elements
OBJECT ID = DES-EDE3-CBC
SEQUENCE[C] = 2 elements
OBJECT ID = RC2-CBC
INTEGER = 128
SEQUENCE[C] = 2 elements
OBJECT ID = RC2-CBC
INTEGER = 64
SEQUENCE[C] = 2 elements
OBJECT ID = RC2-CBC
INTEGER = 40
SEQUENCE[C] = 1 elements
OBJECT ID = DES-CBC
 
 
Content is a String
---------------------------
This Content was reset by the SMimeSend Sample!!
Signer Infos for signed content: [Liaik.cms.SignerInfo;@e70e30
 
 
--------------------------
MESSAGE #31:
This is the message envelope
---------------------------
FROM: regray@wottjgrayibm
TO: jogray@wottjgrayibm
SUBJECT: SMime Message! May be signed, encrypted and compressed in any order or combination! This is a application/pkcs7-mime; smime-type=compressed-data; name=smime.p7zmessage!
SendDate: Mon Jul 18 16:23:43 EDT 2005
Size: 948
FLAGS =
X-Mailer NOT available
CONTENT-TYPE: application/pkcs7-mime; smime-type=compressed-data;
name=smime.p7z
This message is a compressed content!
Algorithm: ZLIB-COMPRESS
This message is encrypted!
Content is a String
---------------------------
This Content was reset by the SMimeSend Sample!
Content encryption algorithm: DES-EDE3-CBC
 
 
--------------------------
MESSAGE #32:
This is the message envelope
---------------------------
FROM: regray@wottjgrayibm
TO: jogray@wottjgrayibm
SUBJECT: SMime Message! May be signed, encrypted and compressed in any order or combination! This is a application/pkcs7-mime; name=smime.p7mmessage!
SendDate: Mon Jul 18 16:23:45 EDT 2005
Size: 10890
FLAGS =
X-Mailer NOT available
CONTENT-TYPE: application/pkcs7-mime; name=smime.p7m
This message is encrypted!
This message is signed!
Verification with verify() successful!
This message is signed from: cn=RSA User1,ou=PKI7,o=Java Toolkit Samples,c=CA
Verification with verify(cert) successful!
Certificate trusted!
Certificate trusted!
SignerInfo 0 contains the following signed attributes:
OBJECT ID = contentType
contentType = OBJECT ID = PKCS#7 data
 
 
OBJECT ID = signingTime
signingTime = UTCTime = 050718202345Z
 
 
OBJECT ID = messageDigest
messageDigest = OCTET STRING = 20 bytes: 0D:6D:89:78:39...
 
 
OBJECT ID = symmetricCapabilities
symmetricCapabilities = SEQUENCE[C] = 5 elements
SEQUENCE[C] = 1 elements
OBJECT ID = DES-EDE3-CBC
SEQUENCE[C] = 2 elements
OBJECT ID = RC2-CBC
INTEGER = 128
SEQUENCE[C] = 2 elements
OBJECT ID = RC2-CBC
INTEGER = 64
SEQUENCE[C] = 2 elements
OBJECT ID = RC2-CBC
INTEGER = 40
SEQUENCE[C] = 1 elements
OBJECT ID = DES-CBC
 
 
Content is a String
---------------------------
This Content was reset by the SMimeSend Sample!!
Signer Infos for signed content: [Liaik.cms.SignerInfo;@1af33d6
 
 
--------------------------
MESSAGE #33:
This is the message envelope
---------------------------
FROM: regray@wottjgrayibm
TO: jogray@wottjgrayibm
SUBJECT: SMime Message! May be signed, encrypted and compressed in any order or combination! This is a application/pkcs7-mime; smime-type=compressed-data; name=smime.p7zmessage!
SendDate: Mon Jul 18 16:23:46 EDT 2005
Size: 6296
FLAGS =
X-Mailer NOT available
CONTENT-TYPE: application/pkcs7-mime; smime-type=compressed-data;
name=smime.p7z
This message is a compressed content!
Algorithm: ZLIB-COMPRESS
This message is encrypted!
This message is signed!
Verification with verify() successful!
This message is signed from: cn=RSA User1,ou=PKI7,o=Java Toolkit Samples,c=CA
Verification with verify(cert) successful!
Certificate trusted!
Certificate trusted!
SignerInfo 0 contains the following signed attributes:
OBJECT ID = contentType
contentType = OBJECT ID = PKCS#7 data
 
 
OBJECT ID = signingTime
signingTime = UTCTime = 050718202346Z
 
 
OBJECT ID = messageDigest
messageDigest = OCTET STRING = 20 bytes: A6:FD:46:14:FF...
 
 
OBJECT ID = symmetricCapabilities
symmetricCapabilities = SEQUENCE[C] = 5 elements
SEQUENCE[C] = 1 elements
OBJECT ID = DES-EDE3-CBC
SEQUENCE[C] = 2 elements
OBJECT ID = RC2-CBC
INTEGER = 128
SEQUENCE[C] = 2 elements
OBJECT ID = RC2-CBC
INTEGER = 64
SEQUENCE[C] = 2 elements
OBJECT ID = RC2-CBC
INTEGER = 40
SEQUENCE[C] = 1 elements
OBJECT ID = DES-CBC
 
 
Content is a String
---------------------------
This Content was reset by the SMimeSend Sample!!
Signer Infos for signed content: [Liaik.cms.SignerInfo;@1ce784b
 
 
--------------------------
MESSAGE #34:
This is the message envelope
---------------------------
FROM: regray@wottjgrayibm
TO: jogray@wottjgrayibm
SUBJECT: SMime Message! May be signed, encrypted and compressed in any order or combination! This is a application/pkcs7-mime; smime-type=compressed-data; name=smime.p7zmessage!
SendDate: Mon Jul 18 16:23:46 EDT 2005
Size: 3796
FLAGS =
X-Mailer NOT available
CONTENT-TYPE: application/pkcs7-mime; smime-type=compressed-data;
name=smime.p7z
This message is a compressed content!
Algorithm: ZLIB-COMPRESS
This message is signed!
Verification with verify() successful!
This message is signed from: cn=RSA User1,ou=PKI7,o=Java Toolkit Samples,c=CA
Verification with verify(cert) successful!
Certificate trusted!
Certificate trusted!
SignerInfo 0 contains the following signed attributes:
OBJECT ID = contentType
contentType = OBJECT ID = PKCS#7 data
 
 
OBJECT ID = signingTime
signingTime = UTCTime = 050718202346Z
 
 
OBJECT ID = messageDigest
messageDigest = OCTET STRING = 20 bytes: 85:20:08:2C:23...
 
 
OBJECT ID = symmetricCapabilities
symmetricCapabilities = SEQUENCE[C] = 5 elements
SEQUENCE[C] = 1 elements
OBJECT ID = DES-EDE3-CBC
SEQUENCE[C] = 2 elements
OBJECT ID = RC2-CBC
INTEGER = 128
SEQUENCE[C] = 2 elements
OBJECT ID = RC2-CBC
INTEGER = 64
SEQUENCE[C] = 2 elements
OBJECT ID = RC2-CBC
INTEGER = 40
SEQUENCE[C] = 1 elements
OBJECT ID = DES-CBC
 
 
This message is encrypted!
Content is a String
---------------------------
This Content was reset by the SMimeSend Sample!
Content encryption algorithm: DES-EDE3-CBC
 
 
--------------------------
MESSAGE #35:
This is the message envelope
---------------------------
FROM: regray@wottjgrayibm
TO: jogray@wottjgrayibm
SUBJECT: SMime Message! May be signed, encrypted and compressed in any order or combination! This is a application/pkcs7-mime; smime-type=compressed-data; name=smime.p7zmessage!
SendDate: Mon Jul 18 16:23:47 EDT 2005
Size: 4630
FLAGS =
X-Mailer NOT available
CONTENT-TYPE: application/pkcs7-mime; smime-type=compressed-data;
name=smime.p7z
This message is a compressed content!
Algorithm: ZLIB-COMPRESS
This message is signed!
Verification with verify() successful!
This message is signed from: cn=RSA User1,ou=PKI7,o=Java Toolkit Samples,c=CA
Verification with verify(cert) successful!
Certificate trusted!
Certificate trusted!
SignerInfo 0 contains the following signed attributes:
OBJECT ID = contentType
contentType = OBJECT ID = PKCS#7 data
 
 
OBJECT ID = signingTime
signingTime = UTCTime = 050718202347Z
 
 
OBJECT ID = messageDigest
messageDigest = OCTET STRING = 20 bytes: ED:BF:A4:92:B4...
 
 
OBJECT ID = symmetricCapabilities
symmetricCapabilities = SEQUENCE[C] = 5 elements
SEQUENCE[C] = 1 elements
OBJECT ID = DES-EDE3-CBC
SEQUENCE[C] = 2 elements
OBJECT ID = RC2-CBC
INTEGER = 128
SEQUENCE[C] = 2 elements
OBJECT ID = RC2-CBC
INTEGER = 64
SEQUENCE[C] = 2 elements
OBJECT ID = RC2-CBC
INTEGER = 40
SEQUENCE[C] = 1 elements
OBJECT ID = DES-CBC
 
 
This message is a compressed content!
Algorithm: ZLIB-COMPRESS
This message is encrypted!
This message is a compressed content!
Algorithm: ZLIB-COMPRESS
Content is a String
---------------------------
This Content was reset by the SMimeSend Sample!
Content compression algorithm: ZLIB-COMPRESS
 
 
Ready! Press the space bar...