Class UserManagerAuthenticator
- java.lang.Object
-
- org.apache.archiva.redback.authentication.AbstractAuthenticator
-
- org.apache.archiva.redback.authentication.users.UserManagerAuthenticator
-
- All Implemented Interfaces:
Authenticator
@Service("authenticator#user-manager") public class UserManagerAuthenticator extends AbstractAuthenticator implements Authenticator
Authenticator
implementation that uses a wrappedUserManager
to authenticate.- Author:
- Rahul Thakur
-
-
Field Summary
-
Fields inherited from class org.apache.archiva.redback.authentication.AbstractAuthenticator
valid
-
-
Constructor Summary
Constructors Constructor Description UserManagerAuthenticator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuthenticationResult
authenticate(AuthenticationDataSource ds)
String
getId()
UserSecurityPolicy
getSecurityPolicy()
UserManager
getUserManager()
Returns the wrappedUserManager
used by thisAuthenticator
implementation for authentication.void
setSecurityPolicy(UserSecurityPolicy securityPolicy)
void
setUserManager(UserManager userManager)
Sets aUserManager
to be used by thisAuthenticator
implementation for authentication.boolean
supportsDataSource(AuthenticationDataSource source)
-
Methods inherited from class org.apache.archiva.redback.authentication.AbstractAuthenticator
initialize, isValid
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.archiva.redback.authentication.Authenticator
initialize, isValid
-
-
-
-
Constructor Detail
-
UserManagerAuthenticator
public UserManagerAuthenticator()
-
-
Method Detail
-
getId
public String getId()
- Specified by:
getId
in interfaceAuthenticator
-
authenticate
public AuthenticationResult authenticate(AuthenticationDataSource ds) throws AuthenticationException, AccountLockedException, MustChangePasswordException
-
getUserManager
public UserManager getUserManager()
Returns the wrappedUserManager
used by thisAuthenticator
implementation for authentication.- Returns:
- the userManager
-
setUserManager
public void setUserManager(UserManager userManager)
Sets aUserManager
to be used by thisAuthenticator
implementation for authentication.- Parameters:
userManager
- the userManager to set
-
supportsDataSource
public boolean supportsDataSource(AuthenticationDataSource source)
- Specified by:
supportsDataSource
in interfaceAuthenticator
-
getSecurityPolicy
public UserSecurityPolicy getSecurityPolicy()
-
setSecurityPolicy
public void setSecurityPolicy(UserSecurityPolicy securityPolicy)
-
-