public class LDAPAuthenticationComponentImpl extends AbstractAuthenticationComponent implements org.springframework.beans.factory.InitializingBean, ActivateableBean
userNameFormat
if set, or calls the LDAPNameResolver
otherwise.AuthenticationComponent.UserNameValidationMode
Constructor and Description |
---|
LDAPAuthenticationComponentImpl() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
protected void |
authenticateImpl(String userName,
char[] password)
Implement the authentication method
|
protected boolean |
implementationAllowsGuestLogin() |
boolean |
isActive()
Determines whether this bean is active.
|
void |
setActive(boolean active) |
void |
setEscapeCommasInBind(boolean escapeCommasInBind) |
void |
setEscapeCommasInUid(boolean escapeCommasInUid) |
void |
setId(String id)
Set the unique name of this ldap authentication component e.g.
|
void |
setLDAPInitialDirContextFactory(LDAPInitialDirContextFactory ldapInitialDirContextFactory) |
void |
setLdapNameResolver(LDAPNameResolver ldapNameResolver) |
void |
setUserNameFormat(String userNameFormat) |
authenticate, clearCurrentSecurityContext, getAllowGuestLogin, getCurrentAuthentication, getCurrentUserName, getDefaultAdministratorUserNames, getDefaultGuestUserNames, getGuestUserName, getGuestUserName, getNodeService, getNumberFailedAuthentications, getNumberSuccessfulAuthentications, getPersonService, getSystemUserName, getSystemUserName, getTransactionService, getUserDetails, getUserDomain, guestUserAuthenticationAllowed, isCurrentUserTheSystemUser, isGuestUserName, isSystemUserName, onAuthenticate, onFail, setAllowGuestLogin, setAuthenticationContext, setCurrentAuthentication, setCurrentUser, setCurrentUser, setDefaultAdministratorUserNameList, setDefaultAdministratorUserNames, setDefaultGuestUserNameList, setDefaultGuestUserNames, setGuestUserAsCurrentUser, setNodeService, setPersonService, setSystemUserAsCurrentUser, setSystemUserAsCurrentUser, setTransactionService, setUserDetails, setUserRegistrySynchronizer
public void setLDAPInitialDirContextFactory(LDAPInitialDirContextFactory ldapInitialDirContextFactory)
public void setUserNameFormat(String userNameFormat)
public void setLdapNameResolver(LDAPNameResolver ldapNameResolver)
public void setEscapeCommasInBind(boolean escapeCommasInBind)
public void setEscapeCommasInUid(boolean escapeCommasInUid)
public void setActive(boolean active)
public boolean isActive()
ActivateableBean
isActive
in interface ActivateableBean
true
if this bean is activepublic void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
protected void authenticateImpl(String userName, char[] password) throws org.alfresco.repo.security.authentication.AuthenticationException
authenticateImpl
in class AbstractAuthenticationComponent
userName
- Stringpassword
- char[]org.alfresco.repo.security.authentication.AuthenticationException
protected boolean implementationAllowsGuestLogin()
implementationAllowsGuestLogin
in class AbstractAuthenticationComponent
public void setId(String id)
id
- StringCopyright © 2005–2017 Alfresco Software. All rights reserved.