public class SimpleAcceptOrRejectAllAuthenticationComponentImpl extends AbstractAuthenticationComponent implements NLTMAuthenticator
AuthenticationComponent.UserNameValidationMode
Constructor and Description |
---|
SimpleAcceptOrRejectAllAuthenticationComponentImpl() |
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
|
void |
authenticateImpl(String userName,
char[] password)
Default unsupported authentication implementation - as of 2.1 this is the best way to implement your own
authentication component as it will support guest login - prior to this direct over ride for authenticate(String ,
char[]) was used.
|
String |
getMD4HashedPassword(String userName)
Get the MD4 password hash, as required by NTLM based authentication methods.
|
NTLMMode |
getNTLMMode()
Get the enum that describes NTLM integration.
|
protected net.sf.acegisecurity.UserDetails |
getUserDetails(String userName)
We actually have an acegi object so override the default method.
|
protected boolean |
implementationAllowsGuestLogin() |
void |
setAccept(boolean accept) |
void |
setAuthenticationDao(net.sf.acegisecurity.providers.dao.AuthenticationDao authenticationDao) |
void |
setSupportNtlm(boolean supportNtlm) |
authenticate, clearCurrentSecurityContext, getAllowGuestLogin, getCurrentAuthentication, getCurrentUserName, getDefaultAdministratorUserNames, 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, getDefaultAdministratorUserNames, getDefaultGuestUserNames, guestUserAuthenticationAllowed, setCurrentUser, setCurrentUser, setGuestUserAsCurrentUser
clearCurrentSecurityContext, getCurrentAuthentication, getCurrentUserName, getGuestUserName, getGuestUserName, getSystemUserName, getSystemUserName, getUserDomain, isCurrentUserTheSystemUser, isGuestUserName, isSystemUserName, setCurrentAuthentication, setSystemUserAsCurrentUser, setSystemUserAsCurrentUser, setUserDetails
public SimpleAcceptOrRejectAllAuthenticationComponentImpl()
public void setAuthenticationDao(net.sf.acegisecurity.providers.dao.AuthenticationDao authenticationDao)
public void setAccept(boolean accept)
public void setSupportNtlm(boolean supportNtlm)
public void authenticateImpl(String userName, char[] password) throws org.alfresco.repo.security.authentication.AuthenticationException
AbstractAuthenticationComponent
authenticateImpl
in class AbstractAuthenticationComponent
userName
- Stringpassword
- char[]org.alfresco.repo.security.authentication.AuthenticationException
protected boolean implementationAllowsGuestLogin()
implementationAllowsGuestLogin
in class AbstractAuthenticationComponent
public String getMD4HashedPassword(String userName)
NLTMAuthenticator
getMD4HashedPassword
in interface NLTMAuthenticator
userName
- the user namepublic NTLMMode getNTLMMode()
NLTMAuthenticator
getNTLMMode
in interface NLTMAuthenticator
public 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 exceptionprotected net.sf.acegisecurity.UserDetails getUserDetails(String userName)
getUserDetails
in class AbstractAuthenticationComponent
userName
- StringCopyright © 2005–2017 Alfresco Software. All rights reserved.