|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface TomcatLogin
Interface to code in the Tomcat valve. Why is this needed? Because Tomcat has a classloader system where code in a valve does not appear in the classloader that is used for servlets. There is a commons area that both valves and servlets share, however, which is where this interface needs to be placed. JAR NOTE: this class is not in flex-messaging.jar but rather flex-tomcat-common.jar.
| Method Summary | |
|---|---|
boolean |
authorize(Principal principal,
List roles)
The gateway calls this method to perform programmatic authorization. |
Principal |
login(String username,
String password,
javax.servlet.http.HttpServletRequest request)
Attempt to login user with the specified credentials. |
boolean |
logout(javax.servlet.http.HttpServletRequest request)
Logs out the user associated with the passed-in request |
| Method Detail |
|---|
Principal login(String username,
String password,
javax.servlet.http.HttpServletRequest request)
username - usernamepassword - credentialsrequest - request via which this login attempt was made
boolean authorize(Principal principal,
List roles)
A typical implementation would simply iterate over the supplied roles and check that atleast one of the roles returned true from a call to HttpServletRequest.isUserInRole(String role).
principal - The principal being checked for authorizationroles - A List of role names to check, all members should be strings
boolean logout(javax.servlet.http.HttpServletRequest request)
request - whose associated user is to be loged-out
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/blazeds/1/javadoc/flex/messaging/security/TomcatLogin.html