|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Authenticator
Must provide the login and logout mechanisms.
Method Summary | |
---|---|
AuthenticationResult |
login(javax.servlet.http.HttpServletRequest req)
Logs the specified user in. |
AuthenticationResult |
logout(javax.servlet.http.HttpServletRequest req)
Logs the specified user out. |
boolean |
logout(User user)
Logs the specified user out. |
Method Detail |
---|
AuthenticationResult login(javax.servlet.http.HttpServletRequest req) throws IOException
The servlet request must contain the details sufficient to login (eg. parameters, headers).
Implementations should specify which details are required to login.
req
- the HTTP Servlet Request that contains the details sufficient to login.
IOException
- if any error occurs while trying to login.AuthenticationResult logout(javax.servlet.http.HttpServletRequest req) throws IOException
req
- The HTTP srevlet request.
IOException
- Should an error occur while logging out.boolean logout(User user) throws IOException
user
- Logout the specified user.
true
if the logout request succeeded, false
otherwise.
IOException
- Should an error occur while logging the user out.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |