版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/inforstack/article/details/85245946
URL: "http://<hostname>:<port>/BOE/BI/logon/start.do?ivsLogonToken="+logonTokenValue
ivsLogonToken:
String host = ServerUtil.getSystemProperty(Constants.HOST);
String port = ServerUtil.getSystemProperty(Constants.PORT);
String security = ServerUtil.getSystemProperty(Constants.SECURITY);;
IEnterpriseSession instance = CrystalEnterprise.getSessionMgr().logon(userName, pwd, host + ":" + port, security);
String token = instance.getLogonTokenMgr().createLogonToken("", 60, Integer.MAX_VALUE);