com.caucho.rewrite
Class IfAuthType
java.lang.Object
com.caucho.rewrite.IfAuthType
- All Implemented Interfaces:
- RequestPredicate
@Configurable
public class IfAuthType
- extends java.lang.Object
- implements RequestPredicate
Matches if the auth-type is equal to the specified value.
Valid auth types are BASIC, CLIENT-CERT, DIGEST, FORM.
<resin:Allow url-pattern="/admin/*">
xmlns:resin="urn:java:com.caucho.resin">
<resin:IfAuthType value="DIGEST"/>
</resin:Allow>
RequestPredicates may be used for security and rewrite actions.
Method Summary |
boolean |
isMatch(HttpServletRequest request)
True if the predicate matches. |
void |
setValue(java.lang.String authType)
Sets the auth-type value to match against. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IfAuthType
public IfAuthType()
setValue
@Configurable
public void setValue(java.lang.String authType)
- Sets the auth-type value to match against.
isMatch
public boolean isMatch(HttpServletRequest request)
- True if the predicate matches.
- Specified by:
isMatch
in interface RequestPredicate
- Parameters:
request
- the servlet request to test