Package org.ogce.gfac.context.impl

Examples of org.ogce.gfac.context.impl.GSISecurityContext


      InvocationContext ct = new InvocationContext();
      ct.setExecutionContext(new ExecutionContextImpl());
           
      ct.getExecutionContext().setNotificationService(new DummyNotification());

      GSISecurityContext gsiSecurityContext = new GSISecurityContext();
      gsiSecurityContext.setMyproxyServer("myproxy.teragrid.org");
      gsiSecurityContext.setMyproxyUserName("ogce");
      gsiSecurityContext.setMyproxyPasswd("Jdas7wph");
      gsiSecurityContext.setMyproxyLifetime(14400);     
      ct.addSecurityContext("myproxy", gsiSecurityContext);     
     
      ct.setServiceName("{http://www.extreme.indiana.edu/namespaces/2004/01/gFac}Echo_Service");
     
      //parameter
View Full Code Here


      if (elementName.equals(SECURITY_CONTEXT)) {

        OMElement myproxy = x.getFirstChildWithName(new QName(null, MYPROXY));

        if (myproxy != null) {
          GSISecurityContext gsiSecurityContext = new GSISecurityContext();

          OMElement server = myproxy.getFirstChildWithName(new QName(null, MYPROXY_SERVER));
          OMElement username = myproxy.getFirstChildWithName(new QName(null, MYPROXY_USERNAME));
          OMElement password = myproxy.getFirstChildWithName(new QName(null, MYPROXY_PASSWORD));
          OMElement life = myproxy.getFirstChildWithName(new QName(null, MYPROXY_LIFE));

          gsiSecurityContext.setMyproxyServer(server.getText());
          gsiSecurityContext.setMyproxyUserName(username.getText());
          gsiSecurityContext.setMyproxyPasswd(password.getText());
          gsiSecurityContext.setMyproxyLifetime(Integer.parseInt(life.getText()));

          // set to context
          MessageContextUtil.addContextToProperty(msgContext, GfacService.SECURITY_CONTEXT, "myproxy", gsiSecurityContext);
        }
      }
View Full Code Here

TOP

Related Classes of org.ogce.gfac.context.impl.GSISecurityContext

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.