Package edu.indiana.extreme.xbaya.myproxy

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


      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());
          }
          GsiInvoker secureInvoker = new GsiInvoker(proxy, XBayaSecurity.getTrustedCertificates());
          LeadContextHeader leadCtxHeader = null;
View Full Code Here


        }
        String server = this.configuration.getMyProxyServer();
        int port = this.configuration.getMyProxyPort();
        int lifetime = this.configuration.getMyProxyLifetime();

        MyProxyClient client = new MyProxyClient();
        client.load(server, port, username, passphrase, lifetime);
        GSSCredential proxy = client.getProxy();
        logger.info("proxy: " + proxy);
    }
View Full Code Here

        hide();

        GSSCredential proxy;
        boolean loaded = this.myProxyChecker.loadIfNecessary();
        if (loaded) {
            MyProxyClient myProxyClient = this.engine.getMyProxyClient();
            proxy = myProxyClient.getProxy();
        } else {
            // Error
            return;
        }
        this.engine.setXRegistryURL(uri);
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

          .loadIfNecessary();
      if (!loaded) {
        return;
      }
      // Creates a secure channel in gpel.
      MyProxyClient myProxyClient = this.xbayaEngine.getMyProxyClient();
      GSSCredential proxy = myProxyClient.getProxy();
      UserX509Credential credential = new UserX509Credential(proxy,
          XBayaSecurity.getTrustedCertificates());
      try {
        this.setUserX509Credential(credential);
      } catch (WorkflowEngineException e) {
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

            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

   *            eg:portal-dev.leadproject.org
   * @return proxy credential
   */
  public static GSSCredential getGSSCredential(String userName, String password,
      String myproxyServer) {
    MyProxyClient myProxyClient = new MyProxyClient(myproxyServer,
        XBayaConstants.DEFAULT_MYPROXY_PORT, userName, password,
        XBayaConstants.DEFAULT_MYPROXY_LIFTTIME);
    try {
      myProxyClient.load();
    } catch (MyProxyException e) {
      throw new XBayaRuntimeException("Failed loading the myproxy", e);
    }
    GSSCredential gssCredential = myProxyClient.getProxy();
    return gssCredential;
  }
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());
            }
            invoker = new LEADWorkflowInvoker(wsdl, leadContext, messageBoxURL,
                    secureInvoker);
        } catch (ComponentException e) {
View Full Code Here

        configuration.getBrokerURL(), configuration.getTopic(),
        configuration.isPullMode(), configuration.getMessageBoxURL());
    this.monitor = new Monitor(monitorConfiguration);

    // MyProxy
    this.myProxyClient = new MyProxyClient(this.configuration
        .getMyProxyServer(), this.configuration.getMyProxyPort(),
        this.configuration.getMyProxyUsername(), this.configuration
            .getMyProxyPassphrase(), this.configuration
            .getMyProxyLifetime());
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.