Examples of GsiInvoker


Examples of xsul.invoker.gsi.GsiInvoker

            SoapHttpDynamicInfosetInvoker invoker;
            if(credential != null){
                if(context.getCredentials().getTrustedCertsFile() != null){
                    X509Certificate[] certs = null;
                    certs = CertUtil.loadCertificates(trustedCertFile);
                    invoker = new GsiInvoker(credential,certs);
                }else{
                    invoker = new GsiInvoker(credential);   
                }
            }else{
                throw new GfacException("Can not create a secure Invoker, no credentails provided",FaultCode.InvaliedConfig);
            }
            return invoker;
View Full Code Here

Examples of xsul.invoker.gsi.GsiInvoker

                }else{
                    throw new XregistryException("Server is secured, but can not find trusted certificates file");       
                }
            }
            GSSCredential credential = globalConfiguration.getCredential();
            invoker = new GsiInvoker(credential,certs);
            globalConfiguration.setUserDN(credential.getName().toString());
        }
        return invoker;
    }
View Full Code Here

Examples of xsul.invoker.gsi.GsiInvoker

   * @throws XRegistryClientException
   */
  protected static IXregistryPortType createGSISecureServiceStub(GSSCredential gssCredential, X509Certificate[] trustedCerts,
      String xregistryServiceWsdlUrl) throws XRegistryClientException {
    try {
      SoapHttpDynamicInfosetInvoker invoker = new GsiInvoker(gssCredential, trustedCerts);
      String wsdlAsStr = invoker.invokeHttpGet(xregistryServiceWsdlUrl);
      XmlElement el = XmlConstants.BUILDER.parseFragmentFromReader(new StringReader(wsdlAsStr));
      WsdlDefinitions def = new WsdlDefinitions(el);

      WSIFServiceFactory wsf = WSIFServiceFactory.newInstance();
      WSIFService serv = wsf.getService(def);
View Full Code Here

Examples of xsul.invoker.gsi.GsiInvoker

    leadContext.setXRegistryUrl(new URI(XBayaConstants.DEFAULT_XREGISTRY_URL
        .toString()
        + "?wsdl"));
    MyProxyChecker myProxyChecker = new MyProxyChecker(engine);
    myProxyChecker.loadIfNecessary();
    GsiInvoker secureInvoker = null;
    if (engine.getWorkflowClient().isSecure()) {
      MyProxyClient myProxyClient = 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

Examples of xsul.invoker.gsi.GsiInvoker

            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"));

            }
            invoker = new LEADWorkflowInvoker(wsdl, leadContext, messageBoxURL, secureInvoker);
View Full Code Here

Examples of xsul.invoker.gsi.GsiInvoker

                    componentPort.setValue(ODEClientUtil.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);
            final LEADWorkflowInvoker finalInvoker = invoker;
View Full Code Here

Examples of xsul.invoker.gsi.GsiInvoker

        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);
        }
        LEADWorkflowInvoker workflowInvoker = new LEADWorkflowInvoker(wsdl, leadContext, messageBoxURL, secureInvoker);
View Full Code Here

Examples of xsul.invoker.gsi.GsiInvoker

            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"));

            }
            invoker = new LEADWorkflowInvoker(wsdl, leadContext, messageBoxURL, secureInvoker);
View Full Code Here

Examples of xsul.invoker.gsi.GsiInvoker

                    componentPort.setValue(ODEClientUtil.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);
            final LEADWorkflowInvoker finalInvoker = invoker;
View Full Code Here

Examples of xsul.invoker.gsi.GsiInvoker

        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);
        }
        LEADWorkflowInvoker workflowInvoker = new LEADWorkflowInvoker(wsdl, leadContext, messageBoxURL, secureInvoker);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.