| org.apache.cocoon.auth.SecurityHandler
All known Subclasses: org.apache.cocoon.auth.AbstractSecurityHandler,
SecurityHandler | public interface SecurityHandler (Code) | | The Security Handler
A security handler is the connection between the web application and the
backend system managing the users.
A handler offers two main methods: one for login and one for logout. The
login method tries to authenticate the current user and returns a
User object on success.
A
SecurityHandler must be implemented in a thread safe manner.
version: $Id: SecurityHandler.java 433543 2006-08-22 06:22:54Z crossley $ |
Method Summary | |
String | getId() Return a unique identifier for this security handler. | User | login(Map context) Try to authenticate the user.
Parameters: context - The context for the login operation. | void | logout(Map context, User user) This notifies the security-handler that a user logs out. |
getId | String getId()(Code) | | Return a unique identifier for this security handler.
For session replication to work, a security handler must deliver
the same identifier across systems!
A unique identifier. |
login | User login(Map context) throws Exception(Code) | | Try to authenticate the user.
Parameters: context - The context for the login operation. The user if the authentication is successful, null otherwise. throws: Exception - If something goes wrong. |
logout | void logout(Map context, User user)(Code) | | This notifies the security-handler that a user logs out.
Parameters: context - The context for the login operation. Parameters: user - The user object. |
|
|