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
This commit is contained in:
parent
8e5d19325d
commit
d37b46e5c7
@ -36,4 +36,6 @@ public interface Authenticator
|
||||
|
||||
AuthenticationResult authenticate( AuthenticationDataSource source )
|
||||
throws AccountLockedException, AuthenticationException, MustChangePasswordException;
|
||||
|
||||
void initialize() throws AuthenticationException;
|
||||
}
|
||||
|
@ -19,6 +19,7 @@
|
||||
* 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 @@
|
||||
*/
|
||||
@Service( "authenticator#ldap" )
|
||||
public class LdapBindAuthenticator
|
||||
extends AbstractAuthenticator
|
||||
implements Authenticator
|
||||
{
|
||||
|
||||
|
@ -19,6 +19,7 @@
|
||||
* 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 @@
|
||||
*/
|
||||
@Service("authenticator#memory")
|
||||
public class MemoryAuthenticator
|
||||
extends AbstractAuthenticator
|
||||
implements Authenticator
|
||||
{
|
||||
private String login;
|
||||
|
@ -19,6 +19,7 @@
|
||||
* 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 @@
|
||||
|
||||
/**
|
||||
* 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
|
||||
{
|
||||
|
||||
|
@ -19,6 +19,7 @@
|
||||
* 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 @@
|
||||
*/
|
||||
@Service("authenticator#user-manager")
|
||||
public class UserManagerAuthenticator
|
||||
extends AbstractAuthenticator
|
||||
implements Authenticator
|
||||
{
|
||||
private Logger log = LoggerFactory.getLogger( getClass() );
|
||||
@ -66,6 +68,7 @@ public String getId()
|
||||
return "UserManagerAuthenticator";
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @throws org.apache.archiva.redback.policy.AccountLockedException
|
||||
*
|
||||
|
@ -19,6 +19,7 @@
|
||||
* 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;
|
||||
@ -47,6 +48,7 @@
|
||||
*/
|
||||
@Service("authenticator#keystore")
|
||||
public class KeyStoreAuthenticator
|
||||
extends AbstractAuthenticator
|
||||
implements Authenticator
|
||||
{
|
||||
private Logger log = LoggerFactory.getLogger( getClass() );
|
||||
|
Loading…
x
Reference in New Issue
Block a user