Running EntelligenceInterop

The EntelligenceInterop sample application creates S/MIME message files that can be decoded by Entelligence.

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>; com.entrust.toolkit.examples.smimev3.EntelligenceInterop <epf_file> <epf_pwd> [<p7m>]

Parameter

Value

<jakarta.mail.jar>

<dependency>
<groupId>jakarta.mail</groupId>
<artifactId>jakarta.mail-api</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>

<epf_file>

The path of an Entrust user profile in .epf file format.

<epf_pwd>

The password for accessing the Entrust profile.

<p7m>

A list of output P7M file paths.

For example:

c:\etjava\examples>java -classpath classes;..\lib\enttoolkit.jar;c:\java\lib\mail.jar;c:\java\lib\activation.jar com.entrust.toolkit.examples.smimev3.EntelligenceInterop data/userdata/RSAUser1.epf ~Sample7~
Logging in
doSmimeSigned begins
doSmimeSigned DONE
doSmimeEncrypted begins
doSmimeEncrypted DONE
doSmimeSignedEncrypted begins
doSmimeSignedEncrypted DONE
doPkcs7Signed begins
doPkcs7Signed DONE
doPkcs7Encrypted begins
doPkcs7Encrypted DONE
doPkcs7SignedEncrypted begins
doPkcs7SignedEncrypted DONE
Done