public class DistributedSession extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_PREFIX |
Constructor and Description |
---|
DistributedSession() |
Modifier and Type | Method and Description |
---|---|
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
|
public static final String DEFAULT_PREFIX
public DistributedSession()
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 Ticketpublic boolean isSesnValid(String DST, Map<String,Object> timeoutArgs)
DST
- - the Distributed Session TickettimoutArgs
- - Additional information on which to base timeoutspublic List<String> getAuthenticatedPricipals(String DST)
DST
- - the Distributed Session Ticketpublic void clearSesn(String DST)
DST
- - the Distributed Session Ticketpublic String createSesn(String principalID)
principalID
- - the id of the authenticated entitypublic String generateDST()
public void touchSesn(String DST)
DST
- - the Distributed Session Ticketpublic Long getMaxIdleTime(Long oldMaxIdleTime, Date lastAccessDt)
oldMaxIdleTime
- - the previous max idle timelastAccessDt
- - the timestamp of last accesspublic void addPrincipalToSesn(String DST, String principalID)
DST
- - the Distributed Session TicketprincipalID
- - the id of the authenticated entitypublic void setAllowInsertOnTouch(boolean allowInsertOnTouch)
allowInsertOnTouch
- the allowInsertOnTouch to setCopyright © 2005–2014 The Kuali Foundation. All rights reserved.