com.caucho.server.security
Class SecurityConstraint

java.lang.Object
  extended by com.caucho.server.security.SecurityConstraint

public class SecurityConstraint
extends java.lang.Object

Configuration for the security-constraint.


Constructor Summary
SecurityConstraint()
          Creates the security-constraint.
 
Method Summary
 void addAuthConstraint(AuthConstraint auth)
          Adds the auth-constraint
 void addConstraint(AbstractConstraint constraint)
          Sets a custom constraint
 void addIPConstraint(IPConstraint constraint)
          Add an ip-constraint
 void addRoleName(java.lang.String roleName)
          Sets the role-name
 void addWebResourceCollection(WebResourceCollection resource)
          Adds a web-resource-collection
 AbstractConstraint getConstraint()
          return the constraint
 java.util.ArrayList<java.lang.String> getMethods(java.lang.String url)
          Returns the applicable methods if the URL matches.
 void init()
          initialize
 boolean isMatch(java.lang.String url)
          Returns true if the URL matches.
 void setDescription(java.lang.String description)
          Sets the description.
 void setDisplayName(java.lang.String displayName)
          Sets the display-name.
 void setURLPattern(java.lang.String pattern)
          Sets the url-pattern
 void setUserDataConstraint(UserDataConstraint constraint)
          Sets the user-data-constraint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SecurityConstraint

public SecurityConstraint()
Creates the security-constraint.

Method Detail

setDescription

public void setDescription(java.lang.String description)
Sets the description.


setDisplayName

public void setDisplayName(java.lang.String displayName)
Sets the display-name.


setURLPattern

public void setURLPattern(java.lang.String pattern)
Sets the url-pattern


addWebResourceCollection

public void addWebResourceCollection(WebResourceCollection resource)
Adds a web-resource-collection


addRoleName

public void addRoleName(java.lang.String roleName)
Sets the role-name


addAuthConstraint

public void addAuthConstraint(AuthConstraint auth)
Adds the auth-constraint


setUserDataConstraint

public void setUserDataConstraint(UserDataConstraint constraint)
Sets the user-data-constraint


addIPConstraint

public void addIPConstraint(IPConstraint constraint)
Add an ip-constraint


addConstraint

public void addConstraint(AbstractConstraint constraint)
Sets a custom constraint


init

public void init()
initialize


isMatch

public boolean isMatch(java.lang.String url)
Returns true if the URL matches.


getMethods

public java.util.ArrayList<java.lang.String> getMethods(java.lang.String url)
Returns the applicable methods if the URL matches.


getConstraint

public AbstractConstraint getConstraint()
return the constraint