|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.riotfamily.riot.security.session.LoginManager
public class LoginManager
Constructor Summary | |
---|---|
LoginManager(AuthenticationService authenticationService)
|
Method Summary | |
---|---|
static LoginManager |
getInstance(ServletContext servletContext)
Returns the LoginManager for the given ServletContext. |
static SessionMetaData |
getSessionMetaData(HttpServletRequest request)
Returns the SessionData for the given request. |
protected RiotUser |
getUser(HttpServletRequest request)
Returns the user associated with the given request. |
boolean |
login(HttpServletRequest request,
String userName,
String password)
Tries to authenticate the user with the given credentials. |
static void |
logout(HttpServletRequest request,
HttpServletResponse response)
Performs a logout by invalidating the session. |
void |
setMetaDataStore(SessionMetaDataStore metaDataStore)
|
void |
setServletContext(ServletContext servletContext)
Stores a reference to itself in the ServletContext. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LoginManager(AuthenticationService authenticationService)
Method Detail |
---|
public void setMetaDataStore(SessionMetaDataStore metaDataStore)
public void setServletContext(ServletContext servletContext)
setServletContext
in interface ServletContextAware
ServletContextAware
public static LoginManager getInstance(ServletContext servletContext)
public boolean login(HttpServletRequest request, String userName, String password)
public static void logout(HttpServletRequest request, HttpServletResponse response)
protected RiotUser getUser(HttpServletRequest request)
public static SessionMetaData getSessionMetaData(HttpServletRequest request)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |