public class IPSecurityManagerImpl extends Object implements IPSecurityManager
IPSecurityManager
. On can either limit the IP addresses
(no patterns), or grant access for all IPs.Modifier and Type | Class and Description |
---|---|
static class |
IPSecurityManagerImpl.InstanceFactory
Provides a custom transformer as the current configuration is not c2b friendly.
|
static class |
IPSecurityManagerImpl.IPSecurityManagerTransformer
Transformer which uses the IP value of the rule as the key.
|
static class |
IPSecurityManagerImpl.Rule
Basic rule.
|
IPSecurityManager.Factory
Constructor and Description |
---|
IPSecurityManagerImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addRule(String name,
IPSecurityManagerImpl.Rule rule) |
protected IPSecurityManagerImpl.Rule |
getRule(String ip) |
Map<String,IPSecurityManagerImpl.Rule> |
getRules() |
boolean |
isAllowed(javax.servlet.http.HttpServletRequest req) |
boolean |
isAllowed(String ip) |
void |
setRules(Map<String,IPSecurityManagerImpl.Rule> rules) |
public boolean isAllowed(javax.servlet.http.HttpServletRequest req)
isAllowed
in interface IPSecurityManager
public boolean isAllowed(String ip)
isAllowed
in interface IPSecurityManager
protected IPSecurityManagerImpl.Rule getRule(String ip)
public Map<String,IPSecurityManagerImpl.Rule> getRules()
public void setRules(Map<String,IPSecurityManagerImpl.Rule> rules)
public void addRule(String name, IPSecurityManagerImpl.Rule rule)
Copyright © 2003–2016 Magnolia International Ltd.. All rights reserved.