com.caucho.security
Class Require

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

public class Require
extends Allow

The <sec:Require> tag authorizes requests for a set of url-patterns. If the request URL matches, <sec:Require> checks all its children ServletReqestPredicate for matches, and if any children don't match, the request is forbidden.

 <web-app xmlns="http://caucho.com/ns/resin"
          xmlns:sec="urn:java:com.caucho.security">

   <sec:Require>
     <sec:url-pattern>/admin/*<sec:url-pattern>
     <sec:url-pattern>/security/*<sec:url-pattern>

     <sec:IfNetwork>192.168.0.1</sec:IfNetwork>
   </sec:Require>

 </web-app>
 


Constructor Summary
Require()
           
 
Method Summary
 AbstractConstraint getConstraint()
          return the constraint
 
Methods inherited from class com.caucho.security.Allow
add, addURLPattern, getMethods, getPredicateList, isFallthrough, isMatch
 
Methods inherited from class com.caucho.server.security.SecurityConstraint
add, addAuthConstraint, addConstraint, addIPConstraint, addRoleName, addWebResourceCollection, init, setDescription, setDisplayName, setFallthrough, setUserDataConstraint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Require

public Require()
Method Detail

getConstraint

public AbstractConstraint getConstraint()
return the constraint

Overrides:
getConstraint in class Allow