Examples of GSISecurityContext


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

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