org.apache.jetspeed.security.impl
Class LoginValidationValveImpl
java.lang.Object
org.apache.jetspeed.pipeline.valve.AbstractValve
org.apache.jetspeed.security.impl.LoginValidationValveImpl
- All Implemented Interfaces:
- LoginValidationValve, Valve
- public class LoginValidationValveImpl
- extends AbstractValve
- implements LoginValidationValve
LoginValidationValve
- Version:
- $Id: LoginValidationValveImpl.java 291016 2005-09-22 21:19:36Z ate $
- Author:
- Ate Douma
Constructor Summary |
LoginValidationValveImpl()
Creates a LoginValidationValveImpl instance which doesn't evaluate the maxNumberOfAuthenticationFailures
for LoginConstant.ERROR_FINAL_LOGIN_ATTEMPT error reporting. |
LoginValidationValveImpl(int maxNumberOfAuthenticationFailures)
Creates a LoginValidationValveImpl instance which can evaluate PasswordCredential.getAuthenticationFailures()
to determine if a user only has one login attempt available before the maxNumberOfAuthenticationFailures parameter
value is reached and the credential will be disabled. |
Methods inherited from interface org.apache.jetspeed.pipeline.valve.Valve |
initialize |
log
private static final org.apache.commons.logging.Log log
maxNumberOfAuthenticationFailures
private int maxNumberOfAuthenticationFailures
LoginValidationValveImpl
public LoginValidationValveImpl()
- Creates a LoginValidationValveImpl instance which doesn't evaluate the maxNumberOfAuthenticationFailures
for LoginConstant.ERROR_FINAL_LOGIN_ATTEMPT error reporting.
LoginValidationValveImpl
public LoginValidationValveImpl(int maxNumberOfAuthenticationFailures)
Creates a LoginValidationValveImpl instance which can evaluate PasswordCredential.getAuthenticationFailures()
to determine if a user only has one login attempt available before the maxNumberOfAuthenticationFailures parameter
value is reached and the credential will be disabled.
The provided maxNumberOfAuthenticationFailures value should be equal to the value configured for the
MaxPasswordAuthenticationFailuresInterceptor (and > 2 to be useful).
invoke
public void invoke(org.apache.jetspeed.request.RequestContext request,
ValveContext context)
throws PipelineException
- Specified by:
invoke
in interface Valve
- Specified by:
invoke
in class AbstractValve
- Throws:
PipelineException
- See Also:
Valve.invoke(org.apache.jetspeed.request.RequestContext, org.apache.jetspeed.pipeline.valve.ValveContext)
toString
public String toString()
Copyright © 1999-2005 Apache Software Foundation. All Rights Reserved.