org.mmbase.security
Class RequestActionChecker

java.lang.Object
  extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.mmbase.security.ActionChecker
ActionChecker.Rank
 
Field Summary
(package private)  Pattern allowedIps
           
(package private)  Pattern allowedSchemes
           
(package private)  ActionChecker rank
           
(package private)  Pattern users
           
 
Fields inherited from interface org.mmbase.security.ActionChecker
ALLOWS
 
Constructor Summary
RequestActionChecker()
           
 
Method Summary
 boolean check(UserContext user, Action ac, Parameters parameters)
           
 Parameter[] getParameterDefinition()
           
 void setAllowedIps(String i)
           
 void setAllowedSchemes(String s)
           
 void setRank(String r)
           
 void setUsers(String u)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

allowedSchemes

Pattern allowedSchemes

allowedIps

Pattern allowedIps

users

Pattern users

rank

ActionChecker rank
Constructor Detail

RequestActionChecker

public RequestActionChecker()
Method Detail

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