|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.basecmp.core.servlets.LoginSecuritychecksFilter
Filter to check the configured security-checks. Possible security-checks are:
Filter-Configvalues are:
| Field Summary | |
static java.lang.String |
CONFIG_PARAM_ALLOWED_IPS
|
static java.lang.String |
CONFIG_PARAM_DENY_ALL_OTHER_IPS
|
static java.lang.String |
CONFIG_PARAM_EXCLUDE_PATH_PATTERN
|
static java.lang.String |
CONFIG_PARAM_FORCE_LOGIN_URL
|
static java.lang.String |
CONFIG_PARAM_LOGIN_DELAY
|
static java.lang.String |
CONFIG_PARAM_LOGIN_DELAY_OFFSET
|
static java.lang.String |
CONFIG_PARAM_LOGIN_DISABLED_URL
|
static java.lang.String |
CONFIG_PARAM_MAX_ATTEMPTS
|
static long |
DEFAULT_LOGIN_DELAY
|
static long |
DEFAULT_LOGIN_DELAY_OFFSET
|
static int |
DEFAULT_MAX_ATTEMPTS
|
static java.lang.String |
REQUEST_ATTRIBUTE_ATTEMPTS
|
static java.lang.String |
REQUEST_ATTRIBUTE_MAX_ATTEMPTS
|
static java.lang.String |
REQUEST_ATTRIBUTE_SECCONDS_TO_NEXT_ATTEMPT
|
| Constructor Summary | |
LoginSecuritychecksFilter()
|
|
| Method Summary | |
void |
destroy()
|
void |
doFilter(ServletRequest request,
ServletResponse response,
FilterChain chain)
|
static LoginSecuritychecksFilter |
getInstance(java.lang.String filterName)
Delivers the instance identified by the given filtername from web.xml. |
void |
init(FilterConfig config)
|
boolean |
isLoginDisabled(java.lang.String loginname,
HttpServletRequest request,
HttpServletResponse response,
boolean redirect)
Delivers true, if the user has made to many false attempts to login into the website. |
boolean |
isRemoteIpAllowed(HttpServletRequest httpRequest)
Delivers true, if the remote-ip of the given request is allowed to access. |
boolean |
logFailedAttempt(java.lang.String loginname,
boolean redirect,
PageContext pageContext)
Logs a false login-attempt per username and stores the values REQUEST_ATTRIBUTE_ATTEMPTS and REQUEST_ATTRIBUTE_MAX_ATTEMPTS as String-Attributes in the given request-object for display-purposes in a JSP. |
void |
resetAccount(java.lang.String loginname)
Resets the account from failed login-attempts |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String CONFIG_PARAM_ALLOWED_IPS
public static final java.lang.String CONFIG_PARAM_DENY_ALL_OTHER_IPS
public static final java.lang.String CONFIG_PARAM_EXCLUDE_PATH_PATTERN
public static final java.lang.String CONFIG_PARAM_FORCE_LOGIN_URL
public static final java.lang.String CONFIG_PARAM_LOGIN_DELAY
public static final java.lang.String CONFIG_PARAM_LOGIN_DELAY_OFFSET
public static final java.lang.String CONFIG_PARAM_LOGIN_DISABLED_URL
public static final java.lang.String CONFIG_PARAM_MAX_ATTEMPTS
public static final long DEFAULT_LOGIN_DELAY
public static final long DEFAULT_LOGIN_DELAY_OFFSET
public static final int DEFAULT_MAX_ATTEMPTS
public static final java.lang.String REQUEST_ATTRIBUTE_ATTEMPTS
public static final java.lang.String REQUEST_ATTRIBUTE_MAX_ATTEMPTS
public static final java.lang.String REQUEST_ATTRIBUTE_SECCONDS_TO_NEXT_ATTEMPT
| Constructor Detail |
public LoginSecuritychecksFilter()
| Method Detail |
public void destroy()
public void doFilter(ServletRequest request,
ServletResponse response,
FilterChain chain)
throws java.io.IOException,
ServletException
java.io.IOException
ServletExceptionpublic static LoginSecuritychecksFilter getInstance(java.lang.String filterName)
public void init(FilterConfig config)
throws ServletException
ServletException
public boolean isLoginDisabled(java.lang.String loginname,
HttpServletRequest request,
HttpServletResponse response,
boolean redirect)
throws java.io.IOException
java.io.IOExceptionpublic boolean isRemoteIpAllowed(HttpServletRequest httpRequest)
httpRequest -
public boolean logFailedAttempt(java.lang.String loginname,
boolean redirect,
PageContext pageContext)
throws java.io.IOException
java.io.IOExceptionpublic void resetAccount(java.lang.String loginname)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||