You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by an...@apache.org on 2010/11/28 04:08:09 UTC
svn commit: r1039821 -
/directory/apacheds/branches/antoine/core/src/main/java/org/apache/directory/server/core/authn/AuthenticationInterceptor.java
Author: antoine
Date: Sun Nov 28 03:08:09 2010
New Revision: 1039821
URL: http://svn.apache.org/viewvc?rev=1039821&view=rev
Log:
this was required, I had a classcast exception otherwise
Modified:
directory/apacheds/branches/antoine/core/src/main/java/org/apache/directory/server/core/authn/AuthenticationInterceptor.java
Modified: directory/apacheds/branches/antoine/core/src/main/java/org/apache/directory/server/core/authn/AuthenticationInterceptor.java
URL: http://svn.apache.org/viewvc/directory/apacheds/branches/antoine/core/src/main/java/org/apache/directory/server/core/authn/AuthenticationInterceptor.java?rev=1039821&r1=1039820&r2=1039821&view=diff
==============================================================================
--- directory/apacheds/branches/antoine/core/src/main/java/org/apache/directory/server/core/authn/AuthenticationInterceptor.java (original)
+++ directory/apacheds/branches/antoine/core/src/main/java/org/apache/directory/server/core/authn/AuthenticationInterceptor.java Sun Nov 28 03:08:09 2010
@@ -248,9 +248,11 @@ public class AuthenticationInterceptor e
public void setAuthenticators( Authenticator[] authenticators )
{
this.authenticators.clear();
+ Set<Authenticator> set = new HashSet<Authenticator>();
for (Authenticator authenticator : authenticators) {
- this.authenticators.add( authenticator );
+ set.add( authenticator );
}
+ setAuthenticators( set );
}
/**
* Deinitializes and deregisters all {@link Authenticator}s from this service.