|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectflex.messaging.security.AppServerLoginCommand
flex.messaging.security.WeblogicLoginCommand
public class WeblogicLoginCommand
Authenticates against WebLogic and if using an HttpServlet will store the authenticated user in the request. Authorization is done via WebLogic groups, not via the WebLogic roles mechanism.
| Constructor Summary | |
|---|---|
WeblogicLoginCommand()
|
|
| Method Summary | |
|---|---|
Principal |
doAuthentication(String username,
Object credentials)
The gateway calls this method to perform programmatic, custom authentication. |
boolean |
doAuthorization(Principal principal,
List roles)
The gateway calls this method to perform programmatic authorization. |
boolean |
logout(Principal principal)
Attempts to log a user out from their session. |
| Methods inherited from class flex.messaging.security.AppServerLoginCommand |
|---|
start, stop |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WeblogicLoginCommand()
| Method Detail |
|---|
public Principal doAuthentication(String username,
Object credentials)
The credentials are passed as a Map to allow for extra properties to be passed in the future. For now, only a "password" property is sent.
username - The principal being authenticatedcredentials - A map, typically with string keys and values - holds, for example, a password
public boolean doAuthorization(Principal principal,
List roles)
This implementation will simply iterate over the supplied roles and check that at least one of the roles returned true from a call to HttpServletRequest.isUserInRole(String role).
doAuthorization in interface LoginCommanddoAuthorization in class AppServerLoginCommandprincipal - The principal being checked for authorizationroles - A List of role names to check, all members should be strings
public boolean logout(Principal principal)
principal - The principal to logout.
|
||||||||||
| 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/WeblogicLoginCommand.html