|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.groiss.org.PasswdAuth
public class PasswdAuth
The default Authorization class.
Constructor Summary | |
---|---|
PasswdAuth()
|
Method Summary | |
---|---|
java.security.Principal |
checkUser(java.lang.String userId,
java.lang.String passwd,
java.lang.String clientAddr)
This method gets the parameters necessary for checking if the user is allowed to connect to the server. |
void |
sendLoginRequest(javax.servlet.http.HttpServletRequest r,
javax.servlet.http.HttpServletResponse res)
This method is called by the server, when authorization is required and the client must be requested for login information. |
void |
setAuthorizationCookie(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse res)
Answers the request from the login mask. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PasswdAuth()
Method Detail |
---|
public void sendLoginRequest(javax.servlet.http.HttpServletRequest r, javax.servlet.http.HttpServletResponse res) throws java.lang.Exception
HttpAuth
sendLoginRequest
in interface HttpAuth
r
- the HTTP Requestres
- the HTTP Response, where the HTML-page must be written to.
java.lang.Exception
public void setAuthorizationCookie(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse res) throws java.lang.Exception
java.lang.Exception
public java.security.Principal checkUser(java.lang.String userId, java.lang.String passwd, java.lang.String clientAddr) throws java.lang.Exception
HttpAuth
checkUser
in interface HttpAuth
userId
- a string determining the id of the user who wants to get connectedpasswd
- the password of the userclientAddr
- the ip-address of the client from which the user wants to connect
java.lang.Exception
HttpAuth.checkUser(java.lang.String, java.lang.String, java.lang.String)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |