public class PreAuthenticatedSessionHolder extends Object
Constructor and Description |
---|
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.
|
Modifier and Type | Method and Description |
---|---|
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.
|
protected void |
finalize() |
boolean |
restoreSession(String hash)
Assigns the IPentahoSession and Authentication stored with the given key to the current request.
|
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()
public String captureSession()
public boolean restoreSession(String hash)
hash
- Stored keyprotected void finalize() throws Throwable
public void close()
Copyright © 2017 Hitachi Vantara. All rights reserved.