com.basecmp.core.util
Class IPLoginConstraint
java.lang.Object
com.basecmp.core.util.LoginConstraint
com.basecmp.core.util.IPLoginConstraint
- public class IPLoginConstraint
- extends LoginConstraint
Compares the remote user's ip against the configured ips or ip ranges.
If the remote ip does not apply depending on the config values a login is
forced or denied at all.
Filter configvalues:
AllowedIpList - A List og single IPs (Format:
[1..255].[1..255].[1..255].[1..255]) or IP-Ranges (Format:
[1..255].[1..255].[1..255].[1..255]-[1..255])
DenyAll [true|false(=default)] - If set true, all requests which do
not fit in the allowed ip-list are denied (http-forbidden). The loginform ist
NOT shown!
Created on 08.01.2007
- Author:
- Wolfgang Schröder
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CONFIG_PARAM_ALLOWED_IPS
public static final java.lang.String CONFIG_PARAM_ALLOWED_IPS
- See Also:
- Constant Field Values
CONFIG_PARAM_DENY_ALL_OTHER_IPS
public static final java.lang.String CONFIG_PARAM_DENY_ALL_OTHER_IPS
- See Also:
- Constant Field Values
IPLoginConstraint
public IPLoginConstraint()
checkConstraint
public int checkConstraint(ServletRequest request)
- Specified by:
checkConstraint in class LoginConstraint
init
public void init(FilterConfig config)
throws ServletException
- Specified by:
init in class LoginConstraint
- Throws:
ServletException
printConfig
public java.lang.String printConfig()
- Specified by:
printConfig in class LoginConstraint
Copyright © 2004 by basecmp® - Professional Web Solutions