|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectflex.messaging.security.LoginManager
public class LoginManager
Much of this logic has been taken from the Flash Remoting Gateway.
Since each application server manages sessions, users and security differently, a separate LoginCommand needs to be written for each server.
| Field Summary | |
|---|---|
static String |
LOG_CATEGORY
Log category for LoginManager. |
| Constructor Summary | |
|---|---|
LoginManager()
Creates a new LoginManager instance. |
|
| Method Summary | |
|---|---|
void |
checkConstraint(SecurityConstraint constraint)
|
boolean |
checkRoles(Principal principal,
List roles)
|
LoginCommand |
getLoginCommand()
Returns the login command used. |
void |
initialize(String id,
ConfigMap configMap)
Implements FlexComponents.initialize. |
boolean |
isPerClientAuthentication()
Returns whether per client authentication is enabled or not. |
boolean |
isStarted()
Implements FlexComponent.isStarted. |
void |
login(String username,
Object credentials)
Perform login with username and credentials. |
void |
logout()
Perform logout. |
void |
setLoginCommand(LoginCommand loginCommand)
Sets the login command used. |
void |
setPerClientAuthentication(boolean perClientAuthentication)
Sets whether per client authentication is enabled or not. |
void |
start()
Implements FlexComponent.start. |
void |
stop()
Implements FlexComponents.stop. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String LOG_CATEGORY
| Constructor Detail |
|---|
public LoginManager()
LoginManager instance.
| Method Detail |
|---|
public void initialize(String id,
ConfigMap configMap)
initialize in interface FlexConfigurablepublic void start()
LoginManager.
start in interface FlexComponentpublic void stop()
LoginManager.
stop in interface FlexComponentpublic boolean isPerClientAuthentication()
true if per client authentication is enabled;
otherwise false.public void setPerClientAuthentication(boolean perClientAuthentication)
perClientAuthentication - true if per client authentication
is enabled; otherwise false.public boolean isStarted()
isStarted in interface FlexComponenttrue if the LoginManager is started; otherwise false.public LoginCommand getLoginCommand()
public void setLoginCommand(LoginCommand loginCommand)
loginCommand - The login command to set.
public void login(String username,
Object credentials)
username - Username to use to login.credentials - Credentials to use to login.public void logout()
public void checkConstraint(SecurityConstraint constraint)
public boolean checkRoles(Principal principal,
List roles)
|
||||||||||
| 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/LoginManager.html