com.caucho.server.security
Class SecurityConstraint

java.lang.Object
  extended by com.caucho.server.security.SecurityConstraint
Direct Known Subclasses:
Allow, Deny

public class SecurityConstraint
extends java.lang.Object

Configuration for the security-constraint.


Constructor Summary
SecurityConstraint()
          Creates the security-constraint.
 
Method Summary
 void add(AbstractConstraint constraint)
          Sets a custom constraint
 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 addURLPattern(java.lang.String pattern)
          Sets the url-pattern
 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 isFallthrough()
          Returns true for a fallthrough.
 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 setFallthrough(boolean isFallthrough)
           
 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.


setFallthrough

public void setFallthrough(boolean isFallthrough)

addURLPattern

public void addURLPattern(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


add

public void add(AbstractConstraint constraint)
Sets a custom constraint


init

@PostConstruct
public void init()
initialize


isMatch

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


isFallthrough

public boolean isFallthrough()
Returns true for a fallthrough.


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