Class AuthenticationComponentImpl
java.lang.Object
org.alfresco.repo.security.authentication.AbstractAuthenticationComponent
org.alfresco.repo.security.authentication.AuthenticationComponentImpl
- All Implemented Interfaces:
AuthenticationComponent,AuthenticationContext
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.alfresco.repo.security.authentication.AuthenticationComponent
AuthenticationComponent.UserNameValidationMode -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnet.sf.acegisecurity.Authenticationauthenticate(net.sf.acegisecurity.Authentication token) The default is not to support Authentication token base authenticationprotected voidauthenticateImpl(String userNameIn, char[] password) AuthenticateGets a set of user names who for this particular authentication system should be considered administrators by default.getMD4HashedPassword(String userName) Get the password hash from the DAOprotected net.sf.acegisecurity.UserDetailsgetUserDetails(String userName) We actually have an acegi object so override the default method.protected booleanvoidsetAuthenticationDao(MutableAuthenticationDao authenticationDao) IOCvoidsetAuthenticationManager(net.sf.acegisecurity.AuthenticationManager authenticationManager) IOCvoidsetCompositePasswordEncoder(CompositePasswordEncoder passwordEncoder) Methods inherited from class org.alfresco.repo.security.authentication.AbstractAuthenticationComponent
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
-
Constructor Details
-
AuthenticationComponentImpl
public AuthenticationComponentImpl()
-
-
Method Details
-
setAuthenticationManager
public void setAuthenticationManager(net.sf.acegisecurity.AuthenticationManager authenticationManager) IOC- Parameters:
authenticationManager- AuthenticationManager
-
setAuthenticationDao
IOC- Parameters:
authenticationDao- MutableAuthenticationDao
-
setCompositePasswordEncoder
-
authenticateImpl
Authenticate- Overrides:
authenticateImplin classAbstractAuthenticationComponent- Parameters:
userNameIn- Stringpassword- char[]- Throws:
AuthenticationException
-
getUserDetails
We actually have an acegi object so override the default method.- Overrides:
getUserDetailsin classAbstractAuthenticationComponent- Parameters:
userName- String- Returns:
- UserDetails
-
getMD4HashedPassword
Get the password hash from the DAO -
authenticate
public net.sf.acegisecurity.Authentication authenticate(net.sf.acegisecurity.Authentication token) throws AuthenticationException The default is not to support Authentication token base authentication- Throws:
AuthenticationException
-
implementationAllowsGuestLogin
protected boolean implementationAllowsGuestLogin()- Specified by:
implementationAllowsGuestLoginin classAbstractAuthenticationComponent
-
getDefaultAdministratorUserNames
Description copied from class:AbstractAuthenticationComponentGets a set of user names who for this particular authentication system should be considered administrators by default. If the security framework is case sensitive these values should be case sensitive user names. If the security framework is not case sensitive these values should be the lower-case user names.- Specified by:
getDefaultAdministratorUserNamesin interfaceAuthenticationComponent- Overrides:
getDefaultAdministratorUserNamesin classAbstractAuthenticationComponent- Returns:
- a set of user names
-