Author: ate
Date: Fri Mar 10 07:36:49 2006
New Revision: 384821
URL: http://svn.apache.org/viewcvs?rev=384821&view=rev
Log:
Added extra constructor allowing both maxNumberOfAuthenticationFailures as well
as a list of session attributes to be cleared upon login
Modified:
portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/security/impl/LoginValidationValveImpl.java
Modified:
portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/security/impl/LoginValidationValveImpl.java
URL:
http://svn.apache.org/viewcvs/portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/security/impl/LoginValidationValveImpl.java?rev=384821&r1=384820&r2=384821&view=diff
==============================================================================
---
portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/security/impl/LoginValidationValveImpl.java
(original)
+++
portals/jetspeed-2/trunk/components/portal/src/java/org/apache/jetspeed/security/impl/LoginValidationValveImpl.java
Fri Mar 10 07:36:49 2006
@@ -47,6 +47,7 @@
private int maxNumberOfAuthenticationFailures;
private List sessionAttributes;
+
/**
* Creates a LoginValidationValveImpl instance which doesn't evaluate the
maxNumberOfAuthenticationFailures
* for LoginConstant.ERROR_FINAL_LOGIN_ATTEMPT error reporting.
@@ -69,6 +70,21 @@
{
this.maxNumberOfAuthenticationFailures =
maxNumberOfAuthenticationFailures;
this.sessionAttributes = new LinkedList();
+ }
+
+ /**
+ * <p>
+ * Creates a LoginValidationValveImpl instance which can evaluate [EMAIL
PROTECTED] 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.</p>
+ * <p>
+ * The provided maxNumberOfAuthenticationFailures value should be equal to
the value configured for the
+ * MaxPasswordAuthenticationFailuresInterceptor (and > 2 to be useful).</p>
+ */
+ public LoginValidationValveImpl(int maxNumberOfAuthenticationFailures,
List sessionAttributes)
+ {
+ this.maxNumberOfAuthenticationFailures =
maxNumberOfAuthenticationFailures;
+ this.sessionAttributes = sessionAttributes;
}
/**
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]