|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.rice.kim.sesn.DistributedSession
public class DistributedSession
This class is used to interface with the distributed session database. TODO: add clear principals to clearSesn
| Field Summary | |
|---|---|
static String |
DEFAULT_PREFIX
|
| Constructor Summary | |
|---|---|
DistributedSession()
|
|
| Method Summary | |
|---|---|
void |
addPrincipalToSesn(String DST,
String principalID)
This method appends a principal to an active session |
void |
clearSesn(String DST)
This method removes the session |
String |
createSesn(String principalID)
This method takes an authenticated principal and generates a Distributed Session Ticket and updates the session database |
String |
generateDST()
This method generates a unique Distributed Session Ticket |
List<String> |
getAuthenticatedPricipals(String DST)
This method returns the list of principals currently authenticated that are associated with the provided Distributed Session Ticket |
Long |
getMaxIdleTime(Long oldMaxIdleTime,
Date lastAccessDt)
This method returns the greater of the stored max idle time and time since last access |
static String |
getPrefix()
|
boolean |
isSesnValid(String DST)
This method determines if the Session Ticket is valid. |
boolean |
isSesnValid(String DST,
Map<String,Object> timeoutArgs)
This method determines if the Session Ticket is valid. |
void |
setAllowInsertOnTouch(boolean allowInsertOnTouch)
|
void |
setJdbcTemplate(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate)
|
static void |
setPrefix(String prefix)
|
void |
setTimeoutHandler(TimeoutHandler timeoutHandler)
|
void |
touchSesn(String DST)
This method updates the session |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DEFAULT_PREFIX
| Constructor Detail |
|---|
public DistributedSession()
| Method Detail |
|---|
public void setTimeoutHandler(TimeoutHandler timeoutHandler)
timeoutHandler - the timeoutHandler to setpublic void setJdbcTemplate(org.springframework.jdbc.core.JdbcTemplate jdbcTemplate)
jdbcTemplate - the jdbcTemplate to setpublic boolean isSesnValid(String DST)
DST - - the Distributed Session Ticket
public boolean isSesnValid(String DST,
Map<String,Object> timeoutArgs)
DST - - the Distributed Session TickettimoutArgs - - Additional information on which to base timeouts
public List<String> getAuthenticatedPricipals(String DST)
DST - - the Distributed Session Ticket
public void clearSesn(String DST)
DST - - the Distributed Session Ticketpublic String createSesn(String principalID)
principalID - - the id of the authenticated entity
public String generateDST()
public void touchSesn(String DST)
DST - - the Distributed Session Ticket
public Long getMaxIdleTime(Long oldMaxIdleTime,
Date lastAccessDt)
oldMaxIdleTime - - the previous max idle timelastAccessDt - - the timestamp of last access
public void addPrincipalToSesn(String DST,
String principalID)
DST - - the Distributed Session TicketprincipalID - - the id of the authenticated entitypublic static String getPrefix()
public static void setPrefix(String prefix)
prefix - the prefix to setpublic void setAllowInsertOnTouch(boolean allowInsertOnTouch)
allowInsertOnTouch - the allowInsertOnTouch to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||