【BO-SDK】SSO InfoView_1 (BOE SDK Java Applications @_2)
Demonstrates how to Single Sign-On to XI 3.0 Java InfoView by logging onto BusinessObjects Enterprise and passing a serialized Enterprise Session.
【for JSP】
[@more@]初始介面;
Demonstrates how to Single Sign-On to XI 3.0 Java InfoView by logging onto BusinessObjects Enterprise and passing a serialized Enterprise Session.
主要程式碼:
Import:
com.crystaldecisions.sdk.exception.SDKException,
com.crystaldecisions.sdk.framework.*,
com.crystaldecisions.sdk.occa.infostore.*"
...
"
IEnterpriseSession enterpriseSession;
String serializedSession;
/*
* Retrieve Enterprise Logon credentials.
*/
final String BO_CMS_NAME = request.getParameter("cmsN");
final String BO_AUTH_TYPE = request.getParameter("bo_auth_type");
final String BO_USERNAME = request.getParameter("userN");
final String BO_PASSWORD = request.getParameter("pass");
/*
* Retrieve Java InfoView start page URL
*/
final String INFOVIEW_URL = request.getParameter("infoviewUrl");
/*
* Log onto Enterprise and serialize the Enterprise Session.
*/
enterpriseSession = CrystalEnterprise.getSessionMgr().logon(BO_USERNAME,
BO_PASSWORD, BO_CMS_NAME, BO_AUTH_TYPE);
serializedSession = enterpriseSession.getSerializedSession();
/*
* Redirect to InfoView, passing the serialized Enterprise Session.
*/
response.sendRedirect(INFOVIEW_URL + "?ivsLogonSession=" + java.net.URLEncoder.encode(serializedSession));
/******or
String boURL = INFOVIEW_URL+"?ivsLogonToken="; //boURL:(=)
enterpriseSession = CrystalEnterprise.getSessionMgr().logon(BO_USERNAME,
BO_PASSWORD, BO_CMS_NAME, BO_AUTH_TYPE);
String logonToken =enterpriseSession.getLogonTokenMgr().getDefaultToken();
String url = boURL + logonToken;
/*
* Redirect to InfoView, passing the serialized Enterprise Session.
*/
response.sendRedirect(url);
*****/
"%>"
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24167472/viewspace-1037957/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 【BO-SDK】Update Database information for .rpt     (BOE SDK Java Applications @_1)DatabaseORMJavaAPP
- 【BO-SDK】-(RAS) Add summary to a group_@old_devlib_03dev
- 【BO-SDK】-(RAS) Unmanaged RAS Session get_@old_devlib_05Sessiondev
- 【BO-SDK】-(RAS) Adding a new parameter_@old_devlib_04dev
- CORS filter for Java applicationsCORSFilterJavaAPP
- Multicore processing for client-side Java applicationsclientIDEJavaAPP
- OAuth2實現單點登入SSOOAuth
- java B2B2C Springcloud電子商城系統-SSO單點登入之OAuth2.0登入流程(2)JavaSpringGCCloudOAuth
- OpenGL ES SDK for Android - 2Android
- CUDA SDK例子分析(2):transpose
- HOW TO INTEGRATE APPLICATIONS RELEASE 11 WITH CUSTOM APPLICATIONSAPP
- j2se sdk和j2EE sdk,JDK,JKE的區別JDK
- Java 封裝 SDK 以及使用Java封裝
- 2.10 java SDK的使用Java
- 微信Java SDK開發文件Java
- Applications 5APP
- 海康威視Java SDK拉流(一)初始化SDKJava
- [SAP BO]BOE的 檔案許可權設定
- FFMpeg SDK 開發手冊(2)
- java B2B2C 多級分銷多租戶電子商城系統-單點登入(SSO)簡介Java
- Nacos系列:Nacos的Java SDK使用Java
- Applications1APP
- Dependencies of Applications (256)APP
- Graph Theory with ApplicationsGraph TheoryAPP
- java B2B2C Springboot電子商城系統- SSO單點登入之OAuth2.0 登出流程(3)JavaSpring BootOAuth
- JDK、JRE、J2SE SDKJDK
- 使用Flex 2 Sdk編譯as3.0Flex編譯S3
- JAVA 多使用者商城系統b2b2c-SSO單點登入之OAuth2.0登入認證(1)JavaOAuth
- (十一)JAVA springboot ssm b2b2c多使用者商城系統 - SSO單點登入之OAuth2.0登入流程(2)JavaSpring BootSSMOAuth
- SAML和OAuth2這兩種SSO協議的區別OAuth協議
- 告別System.out.print()—J2SDK1.4新增Java日誌框架(二) (轉)Java框架
- 告別System.out.print()—J2SDK1.4新增Java日誌框架(三) (轉)Java框架
- (十五)JAVA springboot ssm b2b2c多使用者商城系統原始碼-commonservice-sso服務搭建(一)JavaSpring BootSSM原始碼
- 2.3.6.2 Synchronization of Multiple ApplicationsAPP
- 2.3.3.3.2 Applications at Different VersionsAPP
- Oracle Applications Interface ProgramsOracleAPP
- LLM multiple modal applicationsAPP
- Java架構-(十一) 整合spring cloud雲架構 - SSO單點登入之OAuth2.0登入流程(2)Java架構SpringCloudOAuth