flex.messaging.config
Class SecurityConstraint

java.lang.Object
  extended by flex.messaging.config.SecurityConstraint

public class SecurityConstraint
extends Object

Security constraints are used by the login manager to secure access to destinations and endpoints.


Field Summary
static String BASIC_AUTH_METHOD
          String constant for basic authentication.
static String CUSTOM_AUTH_METHOD
          String constant for custom authentication.
 
Constructor Summary
SecurityConstraint()
          Creates an anonymous SecurityConstraint instance.
SecurityConstraint(String id)
          Creates a SecurityConstraint instance with an id.
 
Method Summary
 void addRole(String role)
          Adds a role to the list of roles of the SecurityConstraint.
 String getId()
          Returns the id of the SecurityConstraint.
 String getMethod()
          Returns the authorization method of the SecurityConstraint.
 List getRoles()
          Returns a list of roles of the SecurityConstraint.
 void setMethod(String method)
          Sets the authorization method of the SecurityConstraint.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BASIC_AUTH_METHOD

public static final String BASIC_AUTH_METHOD
String constant for basic authentication.

See Also:
Constant Field Values

CUSTOM_AUTH_METHOD

public static final String CUSTOM_AUTH_METHOD
String constant for custom authentication.

See Also:
Constant Field Values
Constructor Detail

SecurityConstraint

public SecurityConstraint()
Creates an anonymous SecurityConstraint instance.


SecurityConstraint

public SecurityConstraint(String id)
Creates a SecurityConstraint instance with an id.

Parameters:
id - The id of the SecurityConstraint instance.
Method Detail

getRoles

public List getRoles()
Returns a list of roles of the SecurityConstraint.

Returns:
List of roles.

addRole

public void addRole(String role)
Adds a role to the list of roles of the SecurityConstraint.

Parameters:
role - New role to add to the list of roles.

getId

public String getId()
Returns the id of the SecurityConstraint.

Returns:
The id of the SecurityConstraint.

getMethod

public String getMethod()
Returns the authorization method of the SecurityConstraint.

Returns:
Authorization method.

setMethod

public void setMethod(String method)
Sets the authorization method of the SecurityConstraint. Valid values are Basic and Custom.

Parameters:
method - The authentication method to set which can be custom or basic.


Copyright © 2008 Adobe Systems Inc. All Rights Reserved.

 

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/config/SecurityConstraint.html