diff options
author | Olivier Lamy <olamy@apache.org> | 2012-12-13 20:04:16 +0000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2012-12-13 20:04:16 +0000 |
commit | d37b46e5c734f4f2c76e6e50c9ee4d74a192d1d5 (patch) | |
tree | ea26048b21ce04828405fdca02cecb47f19d25d1 /redback-authentication | |
parent | 8e5d19325d158275461555f2252a65a5ebc75038 (diff) | |
download | archiva-d37b46e5c734f4f2c76e6e50c9ee4d74a192d1d5.tar.gz archiva-d37b46e5c734f4f2c76e6e50c9ee4d74a192d1d5.zip |
expose intialize method for Authenticator to make it reloadable
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1421469 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'redback-authentication')
5 files changed, 12 insertions, 3 deletions
diff --git a/redback-authentication/redback-authentication-api/src/main/java/org/apache/archiva/redback/authentication/Authenticator.java b/redback-authentication/redback-authentication-api/src/main/java/org/apache/archiva/redback/authentication/Authenticator.java index 54805bcf5..6efe11ca4 100644 --- a/redback-authentication/redback-authentication-api/src/main/java/org/apache/archiva/redback/authentication/Authenticator.java +++ b/redback-authentication/redback-authentication-api/src/main/java/org/apache/archiva/redback/authentication/Authenticator.java @@ -36,4 +36,6 @@ public interface Authenticator AuthenticationResult authenticate( AuthenticationDataSource source ) throws AccountLockedException, AuthenticationException, MustChangePasswordException; + + void initialize() throws AuthenticationException; } diff --git a/redback-authentication/redback-authentication-providers/redback-authentication-ldap/src/main/java/org/apache/archiva/redback/authentication/ldap/LdapBindAuthenticator.java b/redback-authentication/redback-authentication-providers/redback-authentication-ldap/src/main/java/org/apache/archiva/redback/authentication/ldap/LdapBindAuthenticator.java index a4b51fee8..7cf582fa3 100644 --- a/redback-authentication/redback-authentication-providers/redback-authentication-ldap/src/main/java/org/apache/archiva/redback/authentication/ldap/LdapBindAuthenticator.java +++ b/redback-authentication/redback-authentication-providers/redback-authentication-ldap/src/main/java/org/apache/archiva/redback/authentication/ldap/LdapBindAuthenticator.java @@ -19,6 +19,7 @@ package org.apache.archiva.redback.authentication.ldap; * under the License. */ +import org.apache.archiva.redback.authentication.AbstractAuthenticator; import org.apache.archiva.redback.authentication.AuthenticationConstants; import org.apache.archiva.redback.common.ldap.UserMapper; import org.apache.archiva.redback.common.ldap.connection.LdapConnectionFactory; @@ -54,6 +55,7 @@ import java.util.Map; */ @Service( "authenticator#ldap" ) public class LdapBindAuthenticator + extends AbstractAuthenticator implements Authenticator { diff --git a/redback-authentication/redback-authentication-providers/redback-authentication-memory/src/main/java/org/apache/archiva/redback/authentication/memory/MemoryAuthenticator.java b/redback-authentication/redback-authentication-providers/redback-authentication-memory/src/main/java/org/apache/archiva/redback/authentication/memory/MemoryAuthenticator.java index 4bc98e317..92de62b15 100644 --- a/redback-authentication/redback-authentication-providers/redback-authentication-memory/src/main/java/org/apache/archiva/redback/authentication/memory/MemoryAuthenticator.java +++ b/redback-authentication/redback-authentication-providers/redback-authentication-memory/src/main/java/org/apache/archiva/redback/authentication/memory/MemoryAuthenticator.java @@ -19,6 +19,7 @@ package org.apache.archiva.redback.authentication.memory; * under the License. */ +import org.apache.archiva.redback.authentication.AbstractAuthenticator; import org.apache.archiva.redback.authentication.AuthenticationDataSource; import org.apache.archiva.redback.authentication.AuthenticationException; import org.apache.archiva.redback.authentication.AuthenticationResult; @@ -33,6 +34,7 @@ import org.springframework.stereotype.Service; */ @Service("authenticator#memory") public class MemoryAuthenticator + extends AbstractAuthenticator implements Authenticator { private String login; diff --git a/redback-authentication/redback-authentication-providers/redback-authentication-open/src/main/java/org/apache/archiva/redback/authentication/open/OpenAuthenticator.java b/redback-authentication/redback-authentication-providers/redback-authentication-open/src/main/java/org/apache/archiva/redback/authentication/open/OpenAuthenticator.java index b87c8f591..8d0f95777 100644 --- a/redback-authentication/redback-authentication-providers/redback-authentication-open/src/main/java/org/apache/archiva/redback/authentication/open/OpenAuthenticator.java +++ b/redback-authentication/redback-authentication-providers/redback-authentication-open/src/main/java/org/apache/archiva/redback/authentication/open/OpenAuthenticator.java @@ -19,6 +19,7 @@ package org.apache.archiva.redback.authentication.open; * under the License. */ +import org.apache.archiva.redback.authentication.AbstractAuthenticator; import org.apache.archiva.redback.authentication.AuthenticationDataSource; import org.apache.archiva.redback.authentication.AuthenticationException; import org.apache.archiva.redback.authentication.AuthenticationResult; @@ -29,14 +30,13 @@ import org.springframework.stereotype.Service; /** * OpenAuthenticator - Does not test user / password. - * All attempts result in access. + * All attempts result in access. * * @author <a href="mailto:joakim@erdfelt.com">Joakim Erdfelt</a> - * - * */ @Service("authenticator#open") public class OpenAuthenticator + extends AbstractAuthenticator implements Authenticator { diff --git a/redback-authentication/redback-authentication-providers/redback-authentication-users/src/main/java/org/apache/archiva/redback/authentication/users/UserManagerAuthenticator.java b/redback-authentication/redback-authentication-providers/redback-authentication-users/src/main/java/org/apache/archiva/redback/authentication/users/UserManagerAuthenticator.java index eb982ddab..d62f2e772 100644 --- a/redback-authentication/redback-authentication-providers/redback-authentication-users/src/main/java/org/apache/archiva/redback/authentication/users/UserManagerAuthenticator.java +++ b/redback-authentication/redback-authentication-providers/redback-authentication-users/src/main/java/org/apache/archiva/redback/authentication/users/UserManagerAuthenticator.java @@ -19,6 +19,7 @@ package org.apache.archiva.redback.authentication.users; * under the License. */ +import org.apache.archiva.redback.authentication.AbstractAuthenticator; import org.apache.archiva.redback.authentication.AuthenticationConstants; import org.apache.archiva.redback.authentication.AuthenticationDataSource; import org.apache.archiva.redback.authentication.AuthenticationException; @@ -50,6 +51,7 @@ import java.util.Map; */ @Service("authenticator#user-manager") public class UserManagerAuthenticator + extends AbstractAuthenticator implements Authenticator { private Logger log = LoggerFactory.getLogger( getClass() ); @@ -66,6 +68,7 @@ public class UserManagerAuthenticator return "UserManagerAuthenticator"; } + /** * @throws org.apache.archiva.redback.policy.AccountLockedException * |