Class SubsystemChainingAuthenticationComponent
java.lang.Object
org.alfresco.repo.security.authentication.AbstractAuthenticationComponent
org.alfresco.repo.security.authentication.AbstractChainingAuthenticationComponent
org.alfresco.repo.security.authentication.subsystems.SubsystemChainingAuthenticationComponent
- All Implemented Interfaces:
AuthenticationComponent,AuthenticationContext
public class SubsystemChainingAuthenticationComponent
extends AbstractChainingAuthenticationComponent
An authentication component that chains across beans in multiple child application contexts corresponding to
different 'subsystems' in a chain determined by a
ChildApplicationContextManager.- Author:
- dward
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.alfresco.repo.security.authentication.AuthenticationComponent
AuthenticationComponent.UserNameValidationMode -
Field Summary
Fields inherited from class org.alfresco.repo.security.authentication.AbstractAuthenticationComponent
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected AuthenticationComponentgetAuthenticationComponent(String instanceId) Get the authentication component with the specified nameprotected Collection<AuthenticationComponent>Gets the authentication components across which methods will chain.voidsetApplicationContextManager(ChildApplicationContextManager applicationContextManager) voidsetSourceBeanName(String sourceBeanName) Sets the name of the bean to look up in the child application contexts.Methods inherited from class org.alfresco.repo.security.authentication.AbstractChainingAuthenticationComponent
authenticateImpl, getDefaultAdministratorUserNames, getDefaultGuestUserNames, implementationAllowsGuestLogin, setCurrentUser, setCurrentUser, testAuthenticateMethods inherited from class org.alfresco.repo.security.authentication.AbstractAuthenticationComponent
authenticate, clearCurrentSecurityContext, getAllowGuestLogin, getCurrentAuthentication, getCurrentUserName, getGuestUserName, getGuestUserName, getNodeService, getNumberFailedAuthentications, getNumberSuccessfulAuthentications, getPersonService, getSystemUserName, getSystemUserName, getTransactionService, getUserDetails, getUserDomain, guestUserAuthenticationAllowed, isCurrentUserTheSystemUser, isGuestUserName, isSystemUserName, onAuthenticate, onFail, setAllowGuestLogin, setAuthenticationContext, setCurrentAuthentication, setDefaultAdministratorUserNameList, setDefaultAdministratorUserNames, setDefaultGuestUserNameList, setDefaultGuestUserNames, setGuestUserAsCurrentUser, setNodeService, setPersonService, setSystemUserAsCurrentUser, setSystemUserAsCurrentUser, setTransactionService, setUserDetails, setUserRegistrySynchronizer
-
Constructor Details
-
SubsystemChainingAuthenticationComponent
public SubsystemChainingAuthenticationComponent()
-
-
Method Details
-
setApplicationContextManager
- Parameters:
applicationContextManager- the applicationContextManager to set
-
setSourceBeanName
Sets the name of the bean to look up in the child application contexts.- Parameters:
sourceBeanName- the bean name
-
getUsableAuthenticationComponents
Description copied from class:AbstractChainingAuthenticationComponentGets the authentication components across which methods will chain.- Specified by:
getUsableAuthenticationComponentsin classAbstractChainingAuthenticationComponent- Returns:
- the usable authentication components
-
getAuthenticationComponent
Description copied from class:AbstractChainingAuthenticationComponentGet the authentication component with the specified name- Specified by:
getAuthenticationComponentin classAbstractChainingAuthenticationComponent- Parameters:
instanceId- String- Returns:
- the authentication component or null if it does not exist
-