|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SecurityHandler
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.
| Method Summary | |
|---|---|
String |
getId()
Return a unique identifier for this security handler. |
User |
login(Map context)
Try to authenticate the user. |
void |
logout(Map context,
User user)
This notifies the security-handler that a user logs out. |
| Method Detail |
|---|
User login(Map context)
throws Exception
context - The context for the login operation.
Exception - If something goes wrong.
void logout(Map context,
User user)
context - The context for the login operation.user - The user object.String getId()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||