|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.weborganic.bastille.security.ps.PageSeederAuthenticator
public final class PageSeederAuthenticator
An authenticator that uses PageSeeder to authenticate users.
Constructor Summary | |
---|---|
PageSeederAuthenticator()
|
Method Summary | |
---|---|
AuthenticationResult |
login(javax.servlet.http.HttpServletRequest req)
The PageSeeder login requires a username and password and checks them against the members on a PageSeeder Server. |
static PageSeederUser |
login(String username,
String password)
Logins the user using their username and password. |
AuthenticationResult |
logout(javax.servlet.http.HttpServletRequest req)
Logs the specified user out. |
boolean |
logout(User user)
Logs the specified user out. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PageSeederAuthenticator()
Method Detail |
---|
public 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.
login
in interface Authenticator
req
- the HTTP Servlet Request that contains the details sufficient to login.
IOException
- if any error occurs while trying to login.public AuthenticationResult logout(javax.servlet.http.HttpServletRequest req) throws IOException
Authenticator
logout
in interface Authenticator
req
- The HTTP srevlet request.
IOException
- Should an error occur while logging out.public static PageSeederUser login(String username, String password) throws IOException
username
- The username of the user to loginpassword
- The password of the user to login
null
IOException
- Should any I/O error occurs while connecting to the server.public boolean logout(User user) throws IOException
Authenticator
logout
in interface Authenticator
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 |