Package com.groiss.org
Class PasswdAuth
java.lang.Object
com.groiss.org.PasswdAuth
- All Implemented Interfaces:
HttpAuth
- Direct Known Subclasses:
LDAPPasswdAuth
The default Authorization class.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThis method gets the parameters necessary for checking if the user is allowed to connect to the server.void
This method is called by the server, when authorization is required and the client must be requested for login information.void
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
Methods inherited from interface com.groiss.servlet.HttpAuth
logoutRedirect
-
Constructor Details
-
PasswdAuth
public PasswdAuth()
-
-
Method Details
-
sendLoginRequest
Description copied from interface:HttpAuth
This method is called by the server, when authorization is required and the client must be requested for login information. It typically sends a HTML page containing a login form to the browser.- Specified by:
sendLoginRequest
in interfaceHttpAuth
- Parameters:
r
- the HTTP Requestres
- the HTTP Response, where the HTML-page must be written to.- Throws:
Exception
-
setAuthorizationCookie
public void setAuthorizationCookie(HttpServletRequest req, HttpServletResponse res) throws Exception Answers the request from the login mask.- Throws:
Exception
-
checkUser
Description copied from interface:HttpAuth
This method gets the parameters necessary for checking if the user is allowed to connect to the server. If the user is not allowed to connect an exception containing the reason is thrown.
-