org.gridbus.broker.farming.globus
Class GridProxyUtil

java.lang.Object
  |
  +--org.gridbus.broker.farming.globus.GridProxyUtil

public class GridProxyUtil
extends java.lang.Object

This utility generates a proxy (if it is not found) or returns the current proxy, if a valid proxy is found.


Constructor Summary
GridProxyUtil()
           
 
Method Summary
static org.ietf.jgss.GSSCredential getProxy()
          Returns a proxy.
static org.ietf.jgss.GSSCredential getProxy(ProxyCredential pc)
           
static void setPwd(java.lang.String proxyPwd)
          Set the password to use when decrypting the user certificate
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GridProxyUtil

public GridProxyUtil()
Method Detail

getProxy

public static org.ietf.jgss.GSSCredential getProxy(ProxyCredential pc)
Parameters:
pc -
Returns:

getProxy

public static org.ietf.jgss.GSSCredential getProxy()
Returns a proxy. If a valid proxy is not found, then it generates one. However, this will ask for a Grid-proxy-init password read from the System.in, if a new proxy needs to be generated, and the password is not set for the GridProxyUtil. So, this method should not be called if there are other threads running in the system.

Returns:

setPwd

public static void setPwd(java.lang.String proxyPwd)
Set the password to use when decrypting the user certificate

Parameters:
proxyPwd -