|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.activemath.webapp.base.AuthenticationManager
public class AuthenticationManager
Login/Logout logic
| Method Summary | |
|---|---|
String |
checkAuthentication(HttpServletRequest request)
Say if user can be authenticated by a login cookie. |
boolean |
checkAuthentication(String userId,
String password)
Say if user can be authenticated. |
boolean |
checkAuthenticationHashed(String userId,
String password)
|
ExternalAuthenticationData |
checkExternalAuthentication(HttpServletRequest request)
|
AccountManager |
getAccountManager()
Return the user account management object |
static AuthenticationManager |
getInstance()
|
AuthenticationManagerService |
getService()
Return the XML-RPC remote service object |
boolean |
isValidToken(String tokenId)
|
User |
login(String userId,
AppSession appSession,
HttpServletRequest request,
HttpServletResponse response)
Login logic. |
void |
logout(AppSession appSession)
Logout current user of an AppSession. |
void |
removeLoginCookie(HttpServletResponse response)
|
void |
removeToken(AuthToken token)
Remove a token from the valid token list. |
void |
setLoginCookie(String userId,
HttpServletResponse response)
|
protected void |
tryAutoLogin(HttpServletRequest request,
AppSession appSession,
String userIdParam,
String passwordParam)
Try to login implicitly. |
void |
unbindAppSession(HttpServletRequest request)
Unbind an AppSession from the HttpSession. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static AuthenticationManager getInstance()
public final AccountManager getAccountManager()
public AuthenticationManagerService getService()
public void unbindAppSession(HttpServletRequest request)
public boolean checkAuthentication(String userId,
String password)
public boolean checkAuthenticationHashed(String userId,
String password)
public String checkAuthentication(HttpServletRequest request)
null.
public ExternalAuthenticationData checkExternalAuthentication(HttpServletRequest request)
throws ExternalAuthenticationException
ExternalAuthenticationException
protected void tryAutoLogin(HttpServletRequest request,
AppSession appSession,
String userIdParam,
String passwordParam)
throws ExternalAuthenticationException,
Exception
ExternalAuthenticationException
UserManagerException
AuthenticationManagerException
Exception
public User login(String userId,
AppSession appSession,
HttpServletRequest request,
HttpServletResponse response)
throws AuthenticationManagerException
AuthenticationManagerExceptionpublic void logout(AppSession appSession)
public void setLoginCookie(String userId,
HttpServletResponse response)
public void removeLoginCookie(HttpServletResponse response)
public void removeToken(AuthToken token)
public boolean isValidToken(String tokenId)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||