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 AuthenticatorAuthenticatorimplementation that uses a wrappedUserManagerto 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 AuthenticationResultauthenticate(AuthenticationDataSource ds)StringgetId()UserSecurityPolicygetSecurityPolicy()UserManagergetUserManager()Returns the wrappedUserManagerused by thisAuthenticatorimplementation for authentication.voidsetSecurityPolicy(UserSecurityPolicy securityPolicy)voidsetUserManager(UserManager userManager)Sets aUserManagerto be used by thisAuthenticatorimplementation for authentication.booleansupportsDataSource(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:
getIdin interfaceAuthenticator
-
authenticate
public AuthenticationResult authenticate(AuthenticationDataSource ds) throws AuthenticationException, AccountLockedException, MustChangePasswordException
-
getUserManager
public UserManager getUserManager()
Returns the wrappedUserManagerused by thisAuthenticatorimplementation for authentication.- Returns:
- the userManager
-
setUserManager
public void setUserManager(UserManager userManager)
Sets aUserManagerto be used by thisAuthenticatorimplementation for authentication.- Parameters:
userManager- the userManager to set
-
supportsDataSource
public boolean supportsDataSource(AuthenticationDataSource source)
- Specified by:
supportsDataSourcein interfaceAuthenticator
-
getSecurityPolicy
public UserSecurityPolicy getSecurityPolicy()
-
setSecurityPolicy
public void setSecurityPolicy(UserSecurityPolicy securityPolicy)
-
-