org.mmbase.security
Class RequestActionChecker
java.lang.Object
org.mmbase.security.RequestActionChecker
- All Implemented Interfaces:
- Serializable, ActionChecker
public class RequestActionChecker
- extends Object
- implements ActionChecker
This action checker can deny an action based on properties of the request made by the
user. E.g. access may be denied from certain IP's or e.g. you may want to allow a certain action
only when done via HTTPS.
- Since:
- MMBase-1.9.2
- Version:
- $Id: RequestActionChecker.java 41989 2010-04-20 16:45:39Z michiel $
- Author:
- Michiel Meeuwissen
- See Also:
- Serialized Form
- To Do:
- EXPERIMENTAL
allowedSchemes
Pattern allowedSchemes
allowedIps
Pattern allowedIps
users
Pattern users
rank
ActionChecker rank
RequestActionChecker
public RequestActionChecker()
setAllowedSchemes
public void setAllowedSchemes(String s)
setAllowedIps
public void setAllowedIps(String i)
setRank
public void setRank(String r)
setUsers
public void setUsers(String u)
check
public boolean check(UserContext user,
Action ac,
Parameters parameters)
- Specified by:
check in interface ActionChecker
getParameterDefinition
public Parameter[] getParameterDefinition()
- Specified by:
getParameterDefinition in interface ActionChecker
toString
public String toString()
- Overrides:
toString in class Object
MMBase 2.0-SNAPSHOT - null