/** * Initialize WSRealm by Non-carbon environment */ void init(String url, String cookie, ConfigurationContext configCtxt) throws UserStoreException { try { stub = new RemoteUserRealmServiceStub(configCtxt, url + REALM_SERVICE_NAME); ServiceClient client = stub._getServiceClient(); Options option = client.getOptions(); option.setManageSession(true); option.setProperty(org.apache.axis2.transport.http.HTTPConstants.COOKIE_STRING, this .getSessionCookie()); } catch (AxisFault e) { throw new UserStoreException("Axis error occurred while creating service client stub"); } userStoreMan = new WSUserStoreManager(url, cookie, configCtxt); authzMan = new WSAuthorizationManager(url, cookie, configCtxt); claimManager = new WSClaimManager(url, cookie, configCtxt); profileManager = new WSProfileConfigurationManager(url, cookie, configCtxt); }
/** * Initialize WSRealm by Non-carbon environment * */ void init(String url, String cookie, ConfigurationContext configCtxt) throws UserStoreException { try { stub = new RemoteUserRealmServiceStub(configCtxt, url + "RemoteUserRealmService"); ServiceClient client = stub._getServiceClient(); Options option = client.getOptions(); option.setManageSession(true); option.setProperty(org.apache.axis2.transport.http.HTTPConstants.COOKIE_STRING, this .getSessionCookie()); } catch (AxisFault e) { throw new UserStoreException(); } userStoreMan = new WSUserStoreManager(url, cookie, configCtxt); authzMan = new WSAuthorizationManager(url, cookie, configCtxt); claimManager = new WSClaimManager(url, cookie, configCtxt); profileManager = new WSProfileConfigurationManager(url, cookie, configCtxt); }