info.magnolia.cms.security
Class IPSecurityManagerImpl
java.lang.Object
info.magnolia.cms.security.IPSecurityManagerImpl
- All Implemented Interfaces:
- IPSecurityManager
public class IPSecurityManagerImpl
- extends Object
- implements IPSecurityManager
A very limited implementation of IPSecurityManager
. On can either limit the IP addresses
(no patterns), or grant access for all IPs.
- Version:
- $Revision: $ ($Author: $)
- Author:
- gjoseph
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IPSecurityManagerImpl
public IPSecurityManagerImpl()
isAllowed
public boolean isAllowed(javax.servlet.http.HttpServletRequest req)
- Specified by:
isAllowed
in interface IPSecurityManager
isAllowed
public boolean isAllowed(String ip)
- Specified by:
isAllowed
in interface IPSecurityManager
getRule
protected IPSecurityManagerImpl.Rule getRule(String ip)
getRules
public Map<String,IPSecurityManagerImpl.Rule> getRules()
setRules
public void setRules(Map<String,IPSecurityManagerImpl.Rule> rules)
addRule
public void addRule(String name,
IPSecurityManagerImpl.Rule rule)
Copyright © 2003-2013 Magnolia International Ltd.. All Rights Reserved.