Running PasswordBasedEncryption
The PasswordBasedEncryption sample application creates and decrypts a password-protected file.
To run this sample application, execute the following command line in the etjava/examples directory.
java -classpath classes;../lib/enttoolkit.jar com.entrust.toolkit.examples.cms.ESPEncodeMessage <user_ref> <user_auth> <epf_file> <epf_pwd> <ad_ip> <ad_port> <ra_ip> <ra_port>|
Parameter |
Value |
|
<user_ref> |
The user reference number for the Entrust user being created or recovered. You can obtain this value from the PKI Administrator. |
|
<user_auth> |
The user authorization code for the Entrust user being created or recovered. You can obtain this value from the PKI Administrator. |
|
<epf_file> |
The path of an Entrust user profile in .epf file format. |
|
<epf_pwd> |
The password for accessing the Entrust profile. |
|
<ad_ip> |
The hostname of IP address of the Microsoft Active Directory for which this application will act as a proxy. |
|
<ra_ip> |
The IP address of the Registration Authority of the PKI to which the user belongs (optional). |
|
<ra_port> |
The port for accessing the Registration Authority (optional). |
For example:
C:\etjava\examples>java -classpath classes;../lib/enttoolkit.jar com.entrust.toolkit.examples.cms.ESPEncodeMessage 36714892 QBK3-G79K-3JRO ADUser.epf Passw0rd localhost 500 localhost 829profile: ADUser.epfpassword: Passw0rdIP address of Entrust Certificate Authority: localhostIP address of Active Directory SSL Proxy : localhost:443Directory connection set to: http://localhost:443Authority connection set to: localhost:829User creation successful.