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