|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--xportlets.proxymanager.ProxyStorage
Provides convenience methods for retrieving and storing proxy credentials to/from the HttpSession 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).
| Constructor Summary | |
ProxyStorage()
Creates an empty ProxyStorage. |
|
| Method Summary | |
org.ietf.jgss.GSSCredential |
get(java.lang.String pHash)
Retrieve the proxy credential stored under hash pHash. |
java.util.Hashtable |
getAll()
Retrieves all proxy credentials from ProxyStorage. |
org.ietf.jgss.GSSCredential |
getDefault()
Retrieve the default proxy credential. |
void |
load(javax.servlet.http.HttpSession _session)
Checks to see if there are proxies in the HttpSession object session. |
java.lang.String |
put(org.ietf.jgss.GSSCredential aProxy)
Places the proxy credential into ProxyStorage. |
org.ietf.jgss.GSSCredential |
remove(java.lang.String pHash)
Removes the proxy credential stored under hash pHash. |
java.util.Hashtable |
removeExpired()
Removes all expired certificates from ProxyStorage 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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ProxyStorage()
| Method Detail |
public void load(javax.servlet.http.HttpSession _session)
throws ProxyStorageException
get(java.lang.String) method to retrieve specific credentials.
ProxyStorageException - if there's a problem loading one or more
proxy credentials from session storage.public org.ietf.jgss.GSSCredential get(java.lang.String pHash)
pHash.
public org.ietf.jgss.GSSCredential getDefault()
ProxyStorage#DEFAULT_PROXY. If the variable hasn't been set yet,
we just assume the default credential is the first credential.
public void setDefault(java.lang.String pHash)
pHash.
public java.util.Hashtable getAll()
public java.lang.String put(org.ietf.jgss.GSSCredential aProxy)
throws ProxyStorageException
get(java.lang.String) method or null if there was an
error storing the proxy.
ProxyStorageException - if there's a problem storing the proxy
credential.
public org.ietf.jgss.GSSCredential remove(java.lang.String pHash)
throws ProxyStorageException
pHash.
ProxyStorageException - if there's a problem removing the proxy
credential.
public java.util.Hashtable removeExpired()
throws ProxyStorageException,
org.ietf.jgss.GSSException
expiredProxies (e.g., for message
reporting). expiredProxies should not be null.
ProxyStorageException - if expiredProxies is null or if
there's a problem removing expired proxy credentials.
org.ietf.jgss.GSSException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||