Obtaining user information
The getGeneralMessageInfo() API returns a GeneralMessageInfo object that encapsulates the information returned from a general message.
public GeneralMessageInfo getGeneralMessageInfo(refnum refnum, authorization authcode)The following code snipped demonstrates how a ClientSettings and UserDN can be retrieved by using the reference number and authorization code before the User has been created.
ManagerTransport man = new ManagerTransport("myPkI", 829);try { PKIXCMPUtils utils = new PKIXCMPUtils(man); GeneralMessageInfo info = utils.getGeneralMessageInfo(refNum, authCode); ClientSettings settings = info.getClientSettings(); Name userDN = info.getUserDN();} catch (EntrustPKIXCMPException e) { e.printStackTrace();}