Package xsul.invoker.puretls

Examples of xsul.invoker.puretls.PuretlsInvoker


      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

        URI messageBoxURL = null; // This one can be null;

        String trustedcerts = System.getProperty("trustedcerts");
        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);
        assertNotNull(workflowInvoker);
    }
View Full Code Here

            SSLPolicyInt policy = new SSLPolicyInt();
            policy.negotiateTLS(true);
            policy.waitOnClose(true);
            sslContext.setPolicy(policy);

            PuretlsInvoker invoker = new PuretlsInvoker(sslContext);
            WSIFProviderManager.getInstance().addProvider(
                    new xsul.wsif_xsul_soap_gsi.Provider(invoker));
            WsdlResolver.getInstance().setSecureInvoker(invoker);

        } catch (GeneralSecurityException e) {
View Full Code Here

            ctx.loadEAYKeyFile(keyfile, "");
            SSLPolicyInt policy = new SSLPolicyInt();
            policy.requireClientAuth(true);
            policy.setAcceptNoClientCert(true);
            ctx.setPolicy(policy);
            invoker = new PuretlsInvoker(ctx);
        }else if(useHostKey && certFile != null && keyfile != null && new File(certFile).isFile()){
            invoker = new PuretlsInvoker(keyfile, "", certFile);
        }else {
            X509Certificate[] certs = globalConfiguration.getTrustedCertificates();
            if(certs != null && certFile != null){
              TrustedCertificates certificates = TrustedCertificates.load(certFile);
            TrustedCertificates.setDefaultTrustedCertificates(certificates);
View Full Code Here

      ctx.loadEAYKeyFile(hostkeyPath, "");
      SSLPolicyInt policy = new SSLPolicyInt();
      policy.requireClientAuth(true);
      policy.setAcceptNoClientCert(true);
      ctx.setPolicy(policy);
      SoapHttpDynamicInfosetInvoker invoker = new PuretlsInvoker(ctx);
      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

            SSLPolicyInt policy = new SSLPolicyInt();
            policy.negotiateTLS(true);
            policy.waitOnClose(true);
            sslContext.setPolicy(policy);

            PuretlsInvoker invoker = new PuretlsInvoker(sslContext);
            WSIFProviderManager.getInstance().addProvider(new xsul.wsif_xsul_soap_gsi.Provider(invoker));
            WsdlResolver.getInstance().setSecureInvoker(invoker);

        } catch (GeneralSecurityException e) {
            throw new WorkflowRuntimeException(e);
View Full Code Here

        URI messageBoxURL = null; // This one can be null;

        String trustedcerts = System.getProperty("trustedcerts");
        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);
        assertNotNull(workflowInvoker);
    }
View Full Code Here

        URI messageBoxURL = null; // This one can be null;

        String trustedcerts = System.getProperty("trustedcerts");
        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);
        assertNotNull(workflowInvoker);
    }
View Full Code Here

            SSLPolicyInt policy = new SSLPolicyInt();
            policy.negotiateTLS(true);
            policy.waitOnClose(true);
            sslContext.setPolicy(policy);

            PuretlsInvoker invoker = new PuretlsInvoker(sslContext);
            WSIFProviderManager.getInstance().addProvider(new xsul.wsif_xsul_soap_gsi.Provider(invoker));
            WsdlResolver.getInstance().setSecureInvoker(invoker);

        } catch (GeneralSecurityException e) {
            throw new XBayaRuntimeException(e);
View Full Code Here

TOP

Related Classes of xsul.invoker.puretls.PuretlsInvoker

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.