Package xregistry.utils

Examples of xregistry.utils.ProxyRenewer


    //private String regsitryURL = "https://tyr14.cs.indiana.edu:6666/xregistry?wsdl";
    private String regsitryURL = "https://linbox3.extreme.indiana.edu:6666/xregistry?wsdl";
   
    public void testStatelessOperations() throws XregistryException{
       
        ProxyRenewer renewer = new ProxyRenewer("hperea","hperera1234",MyProxy.DEFAULT_PORT,14400,"portal.leadproject.org");
        GlobalContext context = new GlobalContext(true);
        context.setHostcertsKeyFile("/etc/lead/certificates/hostcertkey.pem.hperera");
        //context.setCredential(renewer.renewProxy());
        DocumentRegistryClient client = new DocumentRegistryClient(context,regsitryURL);
        DocData[] data;
View Full Code Here


//       
//    }
   
   
    private GlobalContext createContext(String userName,String passwd) throws XregistryException{
        ProxyRenewer renewer = new ProxyRenewer(userName,passwd,MyProxy.DEFAULT_PORT,14400,"portal.leadproject.org");
        GlobalContext context = new GlobalContext(true);
        context.setCredential(renewer.renewProxy());
        return context;
    }
View Full Code Here

        if (myproxyUserNameStr != null && myproxyPasswdStr != null && myproxyServerStr != null) {
            int myproxyLifetime = 14400;
            if (myproxyLifetimeStr != null) {
                myproxyLifetime = Integer.parseInt(myproxyLifetimeStr.trim());
            }
            ProxyRenewer proxyRenewer = new ProxyRenewer(myproxyUserNameStr, myproxyPasswdStr,
                    MyProxy.DEFAULT_PORT, myproxyLifetime, myproxyServerStr,trustedCertsFile);
            return proxyRenewer.renewProxy();
        } else {
            System.out.println("Can not find sufficent information to load myproxy, server = "+ myproxyServerStr+" User Name="
                    + myproxyUserNameStr + " passwd is "+ myproxyPasswdStr == null? "":"Not" + null);
            return null;
        }
View Full Code Here

TOP

Related Classes of xregistry.utils.ProxyRenewer

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.