info.magnolia.cms.security
Class IPSecurityManagerImpl
java.lang.Object
info.magnolia.cms.security.IPSecurityManagerImpl
- All Implemented Interfaces:
- IPSecurityManager
public class IPSecurityManagerImpl
- extends java.lang.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(java.lang.String ip)
- Specified by:
isAllowed
in interface IPSecurityManager
getRule
protected IPSecurityManagerImpl.Rule getRule(java.lang.String ip)
getRules
public java.util.Map<java.lang.String,IPSecurityManagerImpl.Rule> getRules()
setRules
public void setRules(java.util.Map<java.lang.String,IPSecurityManagerImpl.Rule> rules)
addRule
public void addRule(java.lang.String name,
IPSecurityManagerImpl.Rule rule)
Copyright © 2003-2011 Magnolia International Ltd.. All Rights Reserved.