|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pentaho.platform.web.http.PreAuthenticatedSessionHolder
public class PreAuthenticatedSessionHolder
This class serves to capture a users IPentahoSession and Spring Authentication by assigning them a key. The returned key can be used by another party to regain the users session/authentication, in essence logging them in from another client. User: nbaker Date: 6/28/12
Constructor Summary | |
---|---|
PreAuthenticatedSessionHolder()
Constructs a new session holder with the default TTL and eviction schedule. |
|
PreAuthenticatedSessionHolder(int ttl,
int evictionInterval)
Constructs a new session holder with the given TTL and eviction schedule. |
Method Summary | |
---|---|
String |
captureSession()
Stores the active IPentahoSession and Spring Security Authentication objects (both ThreadLocal based). |
void |
close()
This should be called with this class is no longer in use. |
boolean |
restoreSession(String hash)
Assigns the IPentahoSession and Authentication stored with the given key to the current request. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PreAuthenticatedSessionHolder(int ttl, int evictionInterval)
ttl
- The time a captured session will be retainedevictionInterval
- The interval in which sessions will be scanned and evicted if over the TTLpublic PreAuthenticatedSessionHolder()
Method Detail |
---|
public String captureSession()
public boolean restoreSession(String hash)
hash
- Stored key
public void close()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |