com.basecmp.core.security.filter
Class AbstractLoginConstraint

java.lang.Object
  extended bycom.basecmp.core.security.filter.AbstractLoginConstraint
All Implemented Interfaces:
LoginConstraint
Direct Known Subclasses:
CDALoginConstraint

public abstract class AbstractLoginConstraint
extends java.lang.Object
implements LoginConstraint

TODO Write Class-Description Created on 12.05.2004

Author:
Wolfgang Schröder

Field Summary
protected  int authMethod
           
protected static Log log
           
protected  java.lang.String pageLogin
           
protected  java.lang.String pageStandard
           
protected  java.lang.String pageUnauthorized
           
protected  java.lang.String SESSION_ATTRIBUTE_HOSTNAME
           
protected  java.lang.String SESSION_ATTRIBUTE_QUERY_STRING
           
protected  java.lang.String SESSION_ATTRIBUTE_REQUESTED_URL
           
protected  java.lang.String submitLoginPattern
           
protected  java.lang.String submitLogoutPattern
           
 
Fields inherited from interface com.basecmp.core.security.filter.LoginConstraint
AUTH_METHOD_FORM, DEFAULT_LOGIN_SUBMIT_PATTERN, FORM_INPUT_PASSWORD, FORM_INPUT_USERNAME
 
Constructor Summary
AbstractLoginConstraint()
           
 
Method Summary
 int getAuthMethod()
           
 java.lang.String getPassword(HttpServletRequest request)
           
 java.lang.String getStoredHostname(HttpServletRequest request)
           
 java.lang.String getStoredParameter(HttpServletRequest request, java.lang.String parameterName)
           
 java.lang.String getStoredQueryString(HttpServletRequest request)
           
 java.lang.String getStoredUrl(HttpServletRequest request)
           
 java.lang.String getUsername(HttpServletRequest request)
           
 void init(FilterConfig filterConfig)
           
 boolean processLogin(HttpServletRequest request)
           
 boolean processLogout(HttpServletRequest request)
           
 void resetSessionAttributes(HttpSession session)
           
static void setLoginRequestURL(HttpServletRequest request)
           
 void showLogin(HttpServletRequest request, HttpServletResponse response)
           
 void showUnauthorized(HttpServletRequest request, HttpServletResponse response)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

authMethod

protected int authMethod

log

protected static Log log

pageLogin

protected java.lang.String pageLogin

pageStandard

protected java.lang.String pageStandard

pageUnauthorized

protected java.lang.String pageUnauthorized

SESSION_ATTRIBUTE_HOSTNAME

protected java.lang.String SESSION_ATTRIBUTE_HOSTNAME

SESSION_ATTRIBUTE_QUERY_STRING

protected java.lang.String SESSION_ATTRIBUTE_QUERY_STRING

SESSION_ATTRIBUTE_REQUESTED_URL

protected java.lang.String SESSION_ATTRIBUTE_REQUESTED_URL

submitLoginPattern

protected java.lang.String submitLoginPattern

submitLogoutPattern

protected java.lang.String submitLogoutPattern
Constructor Detail

AbstractLoginConstraint

public AbstractLoginConstraint()
Method Detail

getAuthMethod

public int getAuthMethod()
Specified by:
getAuthMethod in interface LoginConstraint

getPassword

public java.lang.String getPassword(HttpServletRequest request)
Specified by:
getPassword in interface LoginConstraint

getStoredHostname

public java.lang.String getStoredHostname(HttpServletRequest request)
Specified by:
getStoredHostname in interface LoginConstraint

getStoredParameter

public java.lang.String getStoredParameter(HttpServletRequest request,
                                           java.lang.String parameterName)
Specified by:
getStoredParameter in interface LoginConstraint

getStoredQueryString

public java.lang.String getStoredQueryString(HttpServletRequest request)
Specified by:
getStoredQueryString in interface LoginConstraint

getStoredUrl

public java.lang.String getStoredUrl(HttpServletRequest request)
Specified by:
getStoredUrl in interface LoginConstraint

getUsername

public java.lang.String getUsername(HttpServletRequest request)
Specified by:
getUsername in interface LoginConstraint

init

public void init(FilterConfig filterConfig)
Specified by:
init in interface LoginConstraint

processLogin

public boolean processLogin(HttpServletRequest request)
Specified by:
processLogin in interface LoginConstraint

processLogout

public boolean processLogout(HttpServletRequest request)
Specified by:
processLogout in interface LoginConstraint

resetSessionAttributes

public void resetSessionAttributes(HttpSession session)
Specified by:
resetSessionAttributes in interface LoginConstraint

setLoginRequestURL

public static void setLoginRequestURL(HttpServletRequest request)

showLogin

public void showLogin(HttpServletRequest request,
                      HttpServletResponse response)
Specified by:
showLogin in interface LoginConstraint

showUnauthorized

public void showUnauthorized(HttpServletRequest request,
                             HttpServletResponse response)
Specified by:
showUnauthorized in interface LoginConstraint


Copyright © 2004 by basecmp® - Professional Web Solutions