|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.server.security.SecurityConstraint
com.caucho.security.Allow
com.caucho.security.Require
public class Require
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 |
|---|
public Require()
| Method Detail |
|---|
public AbstractConstraint getConstraint()
getConstraint in class Allow
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||