com.basecmp.core.util
Class RequiresLoginLoginConstraint

java.lang.Object
  extended bycom.basecmp.core.util.LoginConstraint
      extended bycom.basecmp.core.util.RequiresLoginLoginConstraint

public class RequiresLoginLoginConstraint
extends LoginConstraint

Forces a login whenever the filter's mapping applies and the remoteuser is not yet logged in. If this constraint is used it should be configured as the last constraint in the chain of constraints. If this constraint is not configured and all other constraint-checks are ok NO LOGIN IS FORCED AT ALL! This behaviour might become useful for example if an intranet should be used internally without any login but require a login if the remote-ip is from outside. Created on 08.01.2007

Author:
Wolfgang Schröder

Field Summary
 
Fields inherited from class com.basecmp.core.util.LoginConstraint
FORCE_LOGIN, LOGIN_TEMPORARILY_DISABLED, OK, SEND_FORBIDDEN
 
Constructor Summary
RequiresLoginLoginConstraint()
           
 
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
 

Constructor Detail

RequiresLoginLoginConstraint

public RequiresLoginLoginConstraint()
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