public class AuthenticationComponentImpl extends AbstractAuthenticationComponent implements NLTMAuthenticator
AuthenticationComponent.UserNameValidationMode
Constructor and Description |
---|
AuthenticationComponentImpl() |
Modifier and Type | Method and Description |
---|---|
net.sf.acegisecurity.Authentication |
authenticate(net.sf.acegisecurity.Authentication token)
The default is not to support Authentication token base authentication
|
protected void |
authenticateImpl(String userNameIn,
char[] password)
Authenticate
|
Set<String> |
getDefaultAdministratorUserNames()
Gets a set of user names who for this particular authentication system should be considered administrators by
default.
|
String |
getMD4HashedPassword(String userName)
Get the password hash from the DAO
|
NTLMMode |
getNTLMMode()
This implementation supported MD4 password hashes.
|
protected net.sf.acegisecurity.UserDetails |
getUserDetails(String userName)
We actually have an acegi object so override the default method.
|
protected boolean |
implementationAllowsGuestLogin() |
void |
setAuthenticationDao(MutableAuthenticationDao authenticationDao)
IOC
|
void |
setAuthenticationManager(net.sf.acegisecurity.AuthenticationManager authenticationManager)
IOC
|
void |
setCompositePasswordEncoder(CompositePasswordEncoder passwordEncoder) |
authenticate, clearCurrentSecurityContext, getAllowGuestLogin, getCurrentAuthentication, getCurrentUserName, getDefaultGuestUserNames, getGuestUserName, getGuestUserName, getNodeService, getNumberFailedAuthentications, getNumberSuccessfulAuthentications, getPersonService, getSystemUserName, getSystemUserName, getTransactionService, getUserDomain, guestUserAuthenticationAllowed, isCurrentUserTheSystemUser, isGuestUserName, isSystemUserName, onAuthenticate, onFail, setAllowGuestLogin, setAuthenticationContext, setCurrentAuthentication, setCurrentUser, setCurrentUser, setDefaultAdministratorUserNameList, setDefaultAdministratorUserNames, setDefaultGuestUserNameList, setDefaultGuestUserNames, setGuestUserAsCurrentUser, setNodeService, setPersonService, setSystemUserAsCurrentUser, setSystemUserAsCurrentUser, setTransactionService, setUserDetails, setUserRegistrySynchronizer
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
authenticate, getDefaultGuestUserNames, guestUserAuthenticationAllowed, setCurrentUser, setCurrentUser, setGuestUserAsCurrentUser
clearCurrentSecurityContext, getCurrentAuthentication, getCurrentUserName, getGuestUserName, getGuestUserName, getSystemUserName, getSystemUserName, getUserDomain, isCurrentUserTheSystemUser, isGuestUserName, isSystemUserName, setCurrentAuthentication, setSystemUserAsCurrentUser, setSystemUserAsCurrentUser, setUserDetails
public void setAuthenticationManager(net.sf.acegisecurity.AuthenticationManager authenticationManager)
authenticationManager
- AuthenticationManagerpublic void setAuthenticationDao(MutableAuthenticationDao authenticationDao)
authenticationDao
- MutableAuthenticationDaopublic void setCompositePasswordEncoder(CompositePasswordEncoder passwordEncoder)
protected void authenticateImpl(String userNameIn, char[] password) throws org.alfresco.repo.security.authentication.AuthenticationException
authenticateImpl
in class AbstractAuthenticationComponent
userNameIn
- Stringpassword
- char[]org.alfresco.repo.security.authentication.AuthenticationException
protected net.sf.acegisecurity.UserDetails getUserDetails(String userName)
getUserDetails
in class AbstractAuthenticationComponent
userName
- Stringpublic String getMD4HashedPassword(String userName)
getMD4HashedPassword
in interface NLTMAuthenticator
userName
- the user namepublic net.sf.acegisecurity.Authentication authenticate(net.sf.acegisecurity.Authentication token) throws org.alfresco.repo.security.authentication.AuthenticationException
authenticate
in interface NLTMAuthenticator
token
- Authenticationorg.alfresco.repo.security.authentication.AuthenticationException
- the authentication exceptionpublic NTLMMode getNTLMMode()
getNTLMMode
in interface NLTMAuthenticator
protected boolean implementationAllowsGuestLogin()
implementationAllowsGuestLogin
in class AbstractAuthenticationComponent
public Set<String> getDefaultAdministratorUserNames()
AbstractAuthenticationComponent
getDefaultAdministratorUserNames
in interface AuthenticationComponent
getDefaultAdministratorUserNames
in class AbstractAuthenticationComponent
Copyright © 2005–2017 Alfresco Software. All rights reserved.