com.basecmp.core.util
Class IPLoginConstraint

java.lang.Object
  extended bycom.basecmp.core.util.LoginConstraint
      extended bycom.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

Field Summary
static java.lang.String CONFIG_PARAM_ALLOWED_IPS
           
static java.lang.String CONFIG_PARAM_DENY_ALL_OTHER_IPS
           
 
Fields inherited from class com.basecmp.core.util.LoginConstraint
FORCE_LOGIN, LOGIN_TEMPORARILY_DISABLED, OK, SEND_FORBIDDEN
 
Constructor Summary
IPLoginConstraint()
           
 
Method Summary
 int checkConstraint(ServletRequest request)
           
 void init(FilterConfig config)
           
 java.lang.String printConfig()
           
 
Methods inherited from class com.basecmp.core.util.LoginConstraint
getFilter, init, processFailedLoginAttempt
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

IPLoginConstraint

public IPLoginConstraint()
Method Detail

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