Creating an HTTPS tunnel
See below for how to connect to a PKI using an SSL-protected tunnel.
Creating a user
Create a user object.
com.entrust.toolkit.User user = new User();Preparing the connections
Prepare a connection to the PKI's CA key management server.
com.entrust.toolkit.util.ManagerTransport transport = new HttpsManagerClient(managerServletURL, 0, managerIP);Prepare a connection to the Directory.
com.entrust.toolkit.x509.LdapDirectory directory = new HttpsDirectoryClient(directoryServletURL, 0);Establishing the connection
Establish the connections to the Directory and the CA key management server.
user.setConnections(directory, transport);