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;
}