org.gridbus.broker.common.security
Class ProxyCredential

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

public abstract class ProxyCredential
extends UserCredential

Author:
krishna
See Also:
Serialized Form

Field Summary
static int DEFAULT_MIN_PROXY_LIFETIME
          Minimum proxy life-time, in seconds.
static int DEFAULT_PROXY_LIFETIME
          The proxy life time is specified in seconds.
static java.lang.String LOCAL
           
static java.lang.String MYPROXY
           
 
Constructor Summary
ProxyCredential()
          Represents a credential that is a x.509 proxy certificate
 
Method Summary
 long getMinProxyLifeTime()
          Returns the minimum lifetime below which the proxy will be re-generated.
 org.ietf.jgss.GSSCredential getProxy()
          This method is used to return the current proxy.
 java.lang.String getProxyFileLocation()
           
 long getProxyLifeTime()
           
 int getType()
           
 void refreshProxy()
          Refreshes a proxy if the remaining life-time is less than the set minimum proxy lifetime value.
 void saveToFile(java.lang.String filename)
           
 void setMinProxyLifeTime(long minProxyLifeTime)
          Sets the minimum lifetime below which the proxy will be re-generated.
 void setProxy(org.ietf.jgss.GSSCredential proxy)
           
 void setProxyFileLocation(java.lang.String savedProxyFile)
           
 
Methods inherited from class org.gridbus.broker.common.security.UserCredential
getId, setId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, 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 int DEFAULT_PROXY_LIFETIME
The proxy life time is specified in seconds. 43200 sec = 12 hours is the default lifetime

See Also:
Constant Field Values

DEFAULT_MIN_PROXY_LIFETIME

public static final int DEFAULT_MIN_PROXY_LIFETIME
Minimum proxy life-time, in seconds. (1 hour)

See Also:
Constant Field Values
Constructor Detail

ProxyCredential

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

Method Detail

getProxy

public org.ietf.jgss.GSSCredential getProxy()
This method is used to return the current proxy.

Returns:
Returns the proxy.

setProxy

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

getProxyLifeTime

public long getProxyLifeTime()
Returns:
Returns the proxyLifeTime.

saveToFile

public void saveToFile(java.lang.String filename)
                throws java.lang.Exception
Parameters:
filename -
Throws:
java.lang.Exception

refreshProxy

public void refreshProxy()
Refreshes a proxy if the remaining life-time is less than the set minimum proxy lifetime value. Default is DEFAULT_MIN_PROXY_LIFETIME


getMinProxyLifeTime

public long getMinProxyLifeTime()
Returns the minimum lifetime below which the proxy will be re-generated.

Returns:
lifetime

setMinProxyLifeTime

public void setMinProxyLifeTime(long minProxyLifeTime)
Sets the minimum lifetime below which the proxy will be re-generated.

Parameters:
minProxyLifeTime -

getType

public int getType()
Specified by:
getType in class UserCredential
Returns:
Returns the type.

getProxyFileLocation

public java.lang.String getProxyFileLocation()

setProxyFileLocation

public void setProxyFileLocation(java.lang.String savedProxyFile)

Copyright © The University of Melbourne. 2006