Package xsul.invoker.gsi

Examples of xsul.invoker.gsi.GsiInvoker


      WSIFServiceFactory factory = WSIFServiceFactory.newInstance();
      WSIFService service = factory.getService(WSDLUtil.appendWSDLQuary(
          url).toString(), null, null, null, null);

      if (SecurityUtil.isSecureService(url)) {
        PuretlsInvoker secureInvoker = new GsiInvoker(proxy,
            XBayaSecurity.getTrustedCertificates());
        Provider secureProvider = new Provider(secureInvoker);
        service.addLocalProvider(secureProvider);
      }
     
View Full Code Here


        "use-lead-header", leadContextHeader);
    WSIFServiceFactory factory = WSIFServiceFactory.newInstance();
    WSIFService service = factory.getService(WSDLUtil
        .appendWSDLQuary(wsdlLoc), null, null, null, null);
    if (this.proxy != null) {
      PuretlsInvoker secureInvoker = new GsiInvoker(proxy, XBayaSecurity
          .getTrustedCertificates());
      Provider secureProvider = new Provider(secureInvoker);
      service.addLocalProvider(secureProvider);
    }
View Full Code Here

      if (monitorConfiguration.isPullMode()) {
        messageBoxURL = monitorConfiguration.getMessageBoxURL();
      }

      // create an invoker with LEAD Context
      GsiInvoker secureInvoker = null;
      if (this.engine.getWorkflowClient().isSecure()) {
        MyProxyClient myProxyClient = this.engine.getMyProxyClient();
        secureInvoker = new GsiInvoker(myProxyClient.getProxy(),
            XBayaSecurity.getTrustedCertificates());
       
        leadContext.setScmsUrl(URI.create("https://tyr12.cs.indiana.edu:60443/SCMS?wsdl"));

       
View Full Code Here

        String certskey = System.getProperty("certskey");

        PuretlsInvoker secureInvoker;
        if (userCred) {
            // Using user credential
            secureInvoker = new GsiInvoker(proxy, CertUtil
                    .loadCertificates(trustedcerts));
        } else {
            // Using service certificate.
            secureInvoker = new PuretlsInvoker(certskey, "", trustedcerts);
        }
View Full Code Here

    ODEClient odeClient = new ODEClient();
    GSSCredential credential = SecurityUtil.getGSSCredential("chathura", "changeme", XBayaConstants.DEFAULT_MYPROXY_SERVER);
    XRegistryAccesser xregistryAccesser = new XRegistryAccesser(credential, XBayaConstants.DEFAULT_XREGISTRY_URL);
    Workflow workflow = xregistryAccesser.getWorkflow(name);
   
    GsiInvoker secureInvoker = null;
    secureInvoker = new GsiInvoker(credential, XBayaSecurity
        .getTrustedCertificates());

    try {
      LeadContextHeader defaultLeadHeader = odeClient.getDefaultLeadHeader(workflow, topic,
          credential.getName().toString(), new URI(topic), null, null);
View Full Code Here

            MyProxyClient myProxyClient = this.engine.getMyProxyClient();
            proxy = myProxyClient.getProxy();
          } else {
            proxy = SecurityUtil.getGSSCredential(this.username, this.password, this.configuration.getMyProxyServer());
          }
          GsiInvoker secureInvoker = new GsiInvoker(proxy, XBayaSecurity.getTrustedCertificates());
          LeadContextHeader leadCtxHeader = null;
          try {
            // leadCtxHeader = WSDLUtil.buildLeadContextHeader(
            // this.workflow, engine.getConfiguration(),
            // this.engine.getMyLead(), engine.getMonitor()
View Full Code Here

    try {

      URI messageBoxURL = XBayaConstants.DEFAULT_MESSAGE_BOX_URL;

      // create an invoker with LEAD Context
      GsiInvoker secureInvoker = new GsiInvoker(this.context.getCredentials(), XBayaSecurity
          .getTrustedCertificates());

      invoker = new LEADWorkflowInvoker(this.wsdl, context.getHeader(),
          messageBoxURL, secureInvoker);
    } catch (Exception e) {
View Full Code Here

          componentPort.setValue(parseValue(componentPort, (String)componentPort.getValue()));
        }

      }

      GsiInvoker secureInvoker = null;
      secureInvoker = new GsiInvoker(credentials,
          XBayaSecurity.getTrustedCertificates());

      LEADWorkflowInvoker invoker = new LEADWorkflowInvoker(wsdl,
          leadContext, null, secureInvoker);
      invoker.setInputs(inputs);
View Full Code Here

            if (monitorConfiguration.isPullMode()) {
                messageBoxURL = monitorConfiguration.getMessageBoxURL();
            }

            // create an invoker with LEAD Context
            GsiInvoker secureInvoker = null;
            if (this.engine.getWorkflowClient().isSecure()) {
                MyProxyClient myProxyClient = this.engine.getMyProxyClient();
                secureInvoker = new GsiInvoker(myProxyClient.getProxy(),
                        XBayaSecurity.getTrustedCertificates());
            }
            invoker = new LEADWorkflowInvoker(wsdl, leadContext, messageBoxURL,
                    secureInvoker);
        } catch (ComponentException e) {
View Full Code Here

      }

      URI messageBoxURL = XBayaConstants.DEFAULT_MESSAGE_BOX_URL;

      // create an invoker with LEAD Context
      GsiInvoker secureInvoker = new GsiInvoker(proxy, XBayaSecurity
          .getTrustedCertificates());

      invoker = new LEADWorkflowInvoker(wsdl, leadContextHeader,
          messageBoxURL, secureInvoker);
    } catch (Exception e) {
View Full Code Here

TOP

Related Classes of xsul.invoker.gsi.GsiInvoker

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.