|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--xportlets.proxymanager.ProxyTable
Provides convenience methods for retrieving and storing proxy credentials to/from the JetspeedUser object. A ProxyTable has can store proxies in 2 modes: temporary and permanent. Temporary means that ProxyTable stores proxy credentials in the temporary storage area of the JetspeedUser object. This means the proxies will remain only for the remainder of the user's session (i.e., the proxies will be destroyed when the user logs out or the portal is restarted). Permanent means that the ProxyTable stores proxy credentials in the permanent storage area of the JetspeedUser object and so will persist until they expire (i.e., stored to disk).
| Field Summary | |
static java.lang.String |
DEFAULT_PROXY
|
| Constructor Summary | |
ProxyTable()
Creates an empty ProxyTable. |
|
| Method Summary | |
org.globus.security.GlobusProxy |
get(java.lang.String pHash)
Retrieve the proxy credential stored under hash pHash. |
java.util.Hashtable |
getAll()
Retrieves all proxy credentials from ProxyTable. |
org.globus.security.GlobusProxy |
getDefault()
Retrieve the default proxy credential. |
void |
load(org.apache.jetspeed.om.security.JetspeedUser jUser)
Checks to see if there are proxies in the temporary and permanent storage areas of the JetspeedUser object jUser. |
java.lang.String |
put(org.globus.security.GlobusProxy aProxy,
boolean permStorage)
Places the proxy credential into ProxyTable. |
org.globus.security.GlobusProxy |
remove(java.lang.String pHash)
Removes the proxy credential stored under hash pHash. |
void |
removeExpired(java.util.Hashtable expiredProxies)
Removes all expired certificates from ProxyTable and puts them in the input Hashtable expiredProxies (e.g., for message
reporting). |
void |
setDefault(java.lang.String pHash)
Sets the default proxy credential to that stored under hash pHash. |
static void |
setDefault(java.lang.String pHash,
org.apache.jetspeed.om.security.JetspeedUser jUser)
Sets the default proxy credential to that stored under hash pHash for JetspeedUser jUser. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String DEFAULT_PROXY
| Constructor Detail |
public ProxyTable()
| Method Detail |
public void load(org.apache.jetspeed.om.security.JetspeedUser jUser)
throws ProxyTableException
get(java.lang.String) method
to retrieve specific credentials.ProxyTableException - if there's a problem loading one or more
proxy credentials from permanent storage.public org.globus.security.GlobusProxy get(java.lang.String pHash)
pHash.public org.globus.security.GlobusProxy getDefault()
DEFAULT_PROXY. If the variable hasn't been set yet,
we just assume the default credential is the first credential.
public static void setDefault(java.lang.String pHash,
org.apache.jetspeed.om.security.JetspeedUser jUser)
throws ProxyTableException
pHash for JetspeedUser jUser.ProxyTableException - if error in saving user's JetspeedUser
object.
public void setDefault(java.lang.String pHash)
throws ProxyTableException
pHash.ProxyTableException - if error in saving user's JetspeedUser
object.public java.util.Hashtable getAll()
public java.lang.String put(org.globus.security.GlobusProxy aProxy,
boolean permStorage)
throws ProxyTableException
get(java.lang.String) method or null if there was an
error storing the proxy.ProxyTableException - if there's a problem storing the proxy
credential.
public org.globus.security.GlobusProxy remove(java.lang.String pHash)
throws ProxyTableException
pHash.ProxyTableException - if there's a problem removing the proxy
credential.
public void removeExpired(java.util.Hashtable expiredProxies)
throws ProxyTableException
expiredProxies (e.g., for message
reporting). expiredProxies should not be null.ProxyTableException - if expiredProxies is null or if
there's a problem removing expired proxy credentials.
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||