| java.lang.Object org.acegisecurity.concurrent.ConcurrentSessionControllerImpl
ConcurrentSessionControllerImpl | public class ConcurrentSessionControllerImpl implements ConcurrentSessionController,InitializingBean,MessageSourceAware(Code) | | Base implementation of
ConcurrentSessionControllerImpl which prohibits simultaneous logins. By default
uses
SessionRegistryImpl , although any SessionRegistry may be used.
author: Ben Alex version: $Id: ConcurrentSessionControllerImpl.java 2279 2007-12-02 03:00:26Z benalex $ |
Field Summary | |
protected MessageSourceAccessor | messages |
messages | protected MessageSourceAccessor messages(Code) | | |
allowableSessionsExceeded | protected void allowableSessionsExceeded(String sessionId, SessionInformation[] sessions, int allowableSessions, SessionRegistry registry)(Code) | | Allows subclasses to customise behaviour when too many sessions are detected.
Parameters: sessionId - the session ID of the present request Parameters: sessions - either null or all unexpired sessions associated with the principal Parameters: allowableSessions - DOCUMENT ME! Parameters: registry - an instance of the SessionRegistry for subclass use throws: ConcurrentLoginException - DOCUMENT ME! |
getMaximumSessionsForThisUser | protected int getMaximumSessionsForThisUser(Authentication authentication)(Code) | | Method intended for use by subclasses to override the maximum number of sessions that are permitted for
a particular authentication. The default implementation simply returns the maximumSessions value
for the bean.
Parameters: authentication - to determine the maximum sessions for either -1 meaning unlimited, or a positive integer to limit (never zero) |
registerSuccessfulAuthentication | public void registerSuccessfulAuthentication(Authentication authentication)(Code) | | |
setExceptionIfMaximumExceeded | public void setExceptionIfMaximumExceeded(boolean exceptionIfMaximumExceeded)(Code) | | |
setMaximumSessions | public void setMaximumSessions(int maximumSessions)(Code) | | |
setMessageSource | public void setMessageSource(MessageSource messageSource)(Code) | | |
|
|