org.gridbus.broker.farming.common.security
Class ProxyCredential

java.lang.Object
  extended by org.gridbus.broker.farming.common.security.UserCredential
      extended by org.gridbus.broker.farming.common.security.ProxyCredential
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
LocalProxyCredential, MyProxyCredential

public class ProxyCredential
extends UserCredential

Author:
krishna
See Also:
Serialized Form

Field Summary
static long DEFAULT_PROXY_LIFETIME
          The proxy life time is specified in seconds.
static java.lang.String LOCAL
           
static java.lang.String MYPROXY
           
 
Fields inherited from class org.gridbus.broker.farming.common.security.UserCredential
COMPOSITE, KEYSTORE, PROXYCERT, SIMPLE_AUTH
 
Constructor Summary
ProxyCredential()
          Represents a credential that is a x.509 proxy certificates
 
Method Summary
 org.ietf.jgss.GSSCredential getProxy()
          This method is used to return the current proxy.
 long getProxyLifeTime()
           
 java.lang.String getProxySource()
           
 void setProxy(org.ietf.jgss.GSSCredential proxy)
           
 void setProxyLifeTime(long proxyLifeTime)
           
 void setProxySource(java.lang.String proxySource)
           
 
Methods inherited from class org.gridbus.broker.farming.common.security.UserCredential
getId, getType, setId, setType
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MYPROXY

public static final java.lang.String MYPROXY
See Also:
Constant Field Values

LOCAL

public static final java.lang.String LOCAL
See Also:
Constant Field Values

DEFAULT_PROXY_LIFETIME

public static final long DEFAULT_PROXY_LIFETIME
The proxy life time is specified in seconds. 43200 sec = 12 hours is the default lifetime

See Also:
Constant Field Values
Constructor Detail

ProxyCredential

public ProxyCredential()
Represents a credential that is a x.509 proxy certificates

Method Detail

getProxy

public org.ietf.jgss.GSSCredential getProxy()
This method is used to return the current proxy. If one hasnt been set, it will generate/retrieve the proxy certificate. This may require generating a local proxy, getting from myproxy server, etc.

Returns:
Returns the proxy.

setProxy

public void setProxy(org.ietf.jgss.GSSCredential proxy)
Parameters:
proxy - The proxy to set.

getProxySource

public java.lang.String getProxySource()
Returns:
Returns the proxySource.

setProxySource

public void setProxySource(java.lang.String proxySource)
Parameters:
proxySource - The proxySource to set.

getProxyLifeTime

public long getProxyLifeTime()
Returns:
Returns the proxyLifeTime.

setProxyLifeTime

public void setProxyLifeTime(long proxyLifeTime)
Parameters:
proxyLifeTime - The proxyLifeTime to set.