|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.groiss.org.AuthUtil
public class AuthUtil
Utilities for writing an authorization class.
| Constructor Summary | |
|---|---|
AuthUtil()
|
|
| Method Summary | |
|---|---|
static void |
authorizeBrowser(HttpServletRequest req,
HttpServletResponse res,
User u,
String nextUrl)
This function can be called from the client to instantiate a session and send the session cookie to the browser. |
static void |
checkSysadmPasswd(String passwd)
|
static Principal |
checkUser(String userId,
String passwd,
String clientAddr)
Checks the user. |
static Principal |
checkUser(String userId,
String passwd,
String clientAddr,
boolean ignoreUnsuccessfulLogin)
Checks the user. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AuthUtil()
| Method Detail |
|---|
public static void authorizeBrowser(HttpServletRequest req,
HttpServletResponse res,
User u,
String nextUrl)
throws IOException
req - the HttpServletRequestres - the HttpServletResponseu - the usernextUrl - the url for redirection
IOException
public static Principal checkUser(String userId,
String passwd,
String clientAddr)
throws Exception
userId - the id of the userpasswd - the passwdclientAddr - the ip address of the client
Exception
public static Principal checkUser(String userId,
String passwd,
String clientAddr,
boolean ignoreUnsuccessfulLogin)
throws Exception
userId - the id of the userpasswd - the passwdclientAddr - the ip address of the clientignoreUnsuccessfulLogin - if true unsuccessful logins will not be recorded
Exceptionpublic static void checkSysadmPasswd(String passwd)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||