Package edu.indiana.extreme.xbaya.myproxy

Examples of edu.indiana.extreme.xbaya.myproxy.MyProxyClient


                @Override
                public synchronized void run() {
                  XBaya xBaya = new XBaya(args);
                XBayaEngine engine = xBaya.getEngine();
                engine.getMyProxyClient();
                MyProxyClient myProxyClient = engine.getMyProxyClient();
                myProxyClient.set(XBayaConstants.DEFAULT_MYPROXY_SERVER,
                    XBayaConstants.DEFAULT_MYPROXY_PORT,
                    "chathura",
                    "changeme",
                    XBayaConstants.DEFAULT_MYPROXY_LIFTTIME);
                MyProxyLoader myProxyLoader = new MyProxyLoader(engine);
View Full Code Here


        this.workflowCreator = new WorkflowCreator();

        // GPEL Setup
        X509Certificate[] trustedCertificates = XBayaSecurity
                .getTrustedCertificates();
        MyProxyClient client = new MyProxyClient(this.configuration
                .getMyProxyServer(), this.configuration.getMyProxyPort(),
                this.configuration.getMyProxyUsername(), this.configuration
                .getMyProxyPassphrase(), this.configuration
                .getMyProxyLifetime());
        client.load();
        GSSCredential proxy = client.getProxy();
        UserX509Credential credential = new UserX509Credential(proxy,
                trustedCertificates);
        this.workflowClient = WorkflowEngineManager.getWorkflowClient(XBayaConstants.DEFAULT_GPEL_ENGINE_URL,
                credential);
View Full Code Here

            boolean loaded = this.myProxyChecker.loadIfNecessary();
            if (!loaded) {
                return;
            }
            // Creates a secure channel in gpel.
            MyProxyClient myProxyClient = this.engine.getMyProxyClient();
            GSSCredential proxy = myProxyClient.getProxy();
            UserX509Credential credential = new UserX509Credential(
                    proxy, XBayaSecurity.getTrustedCertificates());
            try {
                workflowClient.setUserX509Credential(credential);
            } catch (WorkflowEngineException e) {
View Full Code Here

            }
        }
    }

    private boolean isProxyLoaded() {
        MyProxyClient myProxyClient = this.engine.getMyProxyClient();
        return myProxyClient.isProxyValid();
    }
View Full Code Here

        this.waitDialog.show();
    }

    private void runInThread() {
        try {
            MyProxyClient client = this.engine.getMyProxyClient();
            client.load();
            this.waitDialog.hide();
        } catch (MyProxyException e) {           
            if (this.canceled) {
                logger.caught(e);
            } else {
View Full Code Here

      }

      // 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

     */
    @Override
    protected void setUp() throws Exception {
        super.setUp();

        this.myProxyClient = new MyProxyClient(this.configuration
                .getMyProxyServer(), this.configuration.getMyProxyPort(),
                this.configuration.getMyProxyUsername(), this.configuration
                        .getMyProxyPassphrase(), this.configuration
                        .getMyProxyLifetime());
        this.myProxyClient.load();
View Full Code Here

        GSSCredential proxy;

        if (loadProxy) {
            boolean loaded = this.myProxyChecker.loadIfNecessary();
            if (loaded) {
                MyProxyClient myProxyClient = this.engine.getMyProxyClient();
                proxy = myProxyClient.getProxy();
            } else {
                // Error
                return;
            }
        } else {
View Full Code Here

     */
    @Override
    protected void setUp() throws Exception {
        super.setUp();

        this.myProxyClient = new MyProxyClient(this.configuration
                .getMyProxyServer(), this.configuration.getMyProxyPort(),
                this.configuration.getMyProxyUsername(), this.configuration
                        .getMyProxyPassphrase(), this.configuration
                        .getMyProxyLifetime());
    }
View Full Code Here

      if (null == wsdlLocation) {
        if (gfacURLString.startsWith("https")) {
          GSSCredential proxy = null;
          if (this.mode == GUI_MODE) {
            this.myProxyChecker.loadIfNecessary();
            MyProxyClient myProxyClient = this.engine.getMyProxyClient();
            proxy = myProxyClient.getProxy();
          } else {
            proxy = SecurityUtil.getGSSCredential(this.username, this.password, this.configuration.getMyProxyServer());
          }

          LeadContextHeader leadCtxHeader = null;
View Full Code Here

TOP

Related Classes of edu.indiana.extreme.xbaya.myproxy.MyProxyClient

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.