IEnterpriseSession logonEx() throws SDKException { ISessionMgr sessionManager = CrystalEnterprise.getSessionMgr(); IEnterpriseLogonInformation logonInfo = sessionManager.createLogonInfo(); logonInfo.setReportedHostname("computerName"); logonInfo.setReportedIP("computerIP"); logonInfo. setClientType(“clientType”); IEnterpriseSession enterpriseSession = sessionManager.logonEx("username", "password", "<cms>:<port>", "secEnterprise", logonInfo); return enterpriseSession; } |
IEnterpriseSession logonWithcustomTokenEx() throws SDKException { ISessionMgr sessionManager = CrystalEnterprise.getSessionMgr(); IEnterpriseSession enterpriseSession = sessionManager.logon ("username", "password", "<cms>:<port>", "secEnterprise"); IEnterpriseLogonInformation logonInfo = sessionManager.createLogonInfo(); logonInfo.setReportedHostname("computerName"); logonInfo.setReportedIP("computerIP"); logonInfo. setClientType(“clientType”); String customLogonToken = enterpriseSession.getLogonTokenMgr().createLogonToken("",120,100); enterpriseSession = sessionManager.logonWithTokenEx(customLogonToken, logonInfo); return enterpriseSession; } |
Learn More:
Sl. No. | Description | REST API | Http Methods | Query Parameters |
---|---|---|---|---|
1. | Logon using username and password(Learn More) | http://host:<port>/biprws/vx/logon/long | GET, POST | N.A |
2. | Logon with token/serialized Seeeion(Learn More) | http://host:<port>/biprws/vx/logon/token | GET, POST | N.A |
3. | Logon with adsso(Learn More) | http://host:<port>/biprws/vx/logon/adsso | GET | clienttype |
4. | Logon trusted(Learn More) | http://host:<port>/biprws/vx/logon/trusted | GET | X-SAP-TRUSTED-USER, clienttype |
5. | Logon trusted x509(Learn More) | http://host:<port>/biprws/vx/logon/trustedx509 | GET | clienttype |
String SESSION_ADDRESS = "http://<host>:<port>/dswsbobje/services/Session"; URL sessConnURL = new URL(SESSION_ADDRESS); Connection m_sessConnection = new Connection(sessConnURL); Session m_session = new Session(m_sessConnection); EnterpriseCredential credential = EnterpriseCredential.Factory.newInstance(); credential.setAuthType("secEnterprise"); credential.setLogin("administrator"); credential.setPassword("Password1"); credential.setClientType("client_id"); SessionInfo info = m_session.login(credential); |
String SESSION_ADDRESS = "http:// <host>:<port>//dswsbobje/services/Session"; SessionStub m_session_Stub = new SessionStub(SESSION_ADDRESS); LoginWithToken lt = LoginWithToken.Factory.newInstance(); lt.setLoginToken(newToken); lt.setClientType("client_id"); LoginWithTokenDocument loginTDoc = LoginWithTokenDocument.Factory.newInstance(); loginTDoc.setLoginWithToken(lt); LoginWithTokenResponseDocument respDoc = m_session_Stub .loginWithToken(loginTDoc); LoginWithTokenResponse resp = respDoc.getLoginWithTokenResponse(); SessionInfo sessionInfo = resp.getSessionInfo(); |
String SESSION_ADDRESS = "http:// <host>:<port>//dswsbobje/services/Session"; URL sessConnURL = new URL(SESSION_ADDRESS); Connection m_sessConnection = new Connection(sessConnURL); Session m_session = new Session(m_sessConnection); LoginOption option = LoginOption.Factory.newInstance(); option.setClientType(“client_id”); SessionInfo info = m_session.loginWithToken(newToken,option); |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
38 | |
19 | |
13 | |
13 | |
11 | |
10 | |
10 | |
10 | |
8 | |
8 |