|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface LoginHandler
Handler for login/logout/roles.
Method Summary | |
---|---|
Principal |
getUserPrincipal(FlowControllerHandlerContext context)
Get the current user. |
boolean |
isUserInRole(FlowControllerHandlerContext context,
String roleName)
Tell whether the current user is in a given role. |
void |
login(FlowControllerHandlerContext context,
String username,
String password)
Log in the given user. |
void |
logout(FlowControllerHandlerContext context,
boolean invalidateSessions)
Log out the current user. |
Methods inherited from interface Handler |
---|
init, reinit |
Method Detail |
---|
void login(FlowControllerHandlerContext context, String username, String password) throws LoginException
username
- the user to log in.password
- the user's password.
LoginException
- if the login fails.void logout(FlowControllerHandlerContext context, boolean invalidateSessions)
invalidateSessions
- if true
, current sessions associated with the current
logged-in user will be invalidated.boolean isUserInRole(FlowControllerHandlerContext context, String roleName)
roleName
- the role to check.
true
if there is a current logged-in user who is in the given role.Principal getUserPrincipal(FlowControllerHandlerContext context)
Principal
that represents the current logged-in user, or null
if there is no
logged-in user.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |