Running CreateCredentialByHttpTunnel
The CreateCredentialByHttpTunnel sample application:
Connects to the Entrust PKI through proxy servlets.
Passes the user the identifier and password to the authenticating server.
Creates or recovers credentials for the user.
To run this sample application, execute the following command line in the etjava/examples directory.
java -classpath ../lib/enttoolkit.jar;<jakarta.servlet-api.jar> com.entrust.toolkit.examples.smimev3.CreateCredentialByHttpTunnel <create|recover> <pki_ip> <pki_proxy_url> <dir_proxy_url> <ref> <code> <epf_file> <efp_pwd>|
Parameter |
Value |
|
<jakarta.servlet-api.jar> |
The path on your computer of the third-party Jakarta servlet library downloaded from https://projects.eclipse.org/projects/ee4j.servlet |
|
<create|recover> |
create to create a new credential, recover to recover an existing one. |
|
<pki_ip> |
The hostname or IP address of the Entrust PKI. |
|
<pki_proxy_url> |
The URL of the compiled ManagerServlet class. |
|
<dir_proxy_url> |
The URL of the compiled DirectoryServlet class. |
|
<ref> |
The reference number of the Entrust user for which the credential is requested. |
|
<code> |
The authorization code of the Entrust user for which the credential is requested. |
|
<epf_file> |
The path of an Entrust user profile in .epf file format. |
|
<efp_pwd> |
The password for accessing the Entrust profile. |
For example:
c:\etjava\examples>java -classpath classes;..\lib\enttoolkit.jar;\java\lib\jakarta.servlet-api.jarcom.entrust.toolkit.examples.tunneling.CreateCredentialByHttpTunnel create pki.domain.comhttp://appserver.domain.com:8080/examples/servlet/com.entrust.toolkit.examples.tunneling.ManagerServlethttp://appserver.domain.com:8080/examples/servlet/com.entrust.toolkit.examples.tunneling.DirectoryServlet59062252 OCQA-QC6B-TDV6 c:\profiles\TunnelUser.epf Password1CreateCredentialByHttpTunnel - Creates or recovers a user.User create/recover beginsUser creation/recovery successful.