Class SubsystemChainingAuthenticationService
- java.lang.Object
-
- org.alfresco.repo.security.authentication.AbstractAuthenticationService
-
- org.alfresco.repo.security.authentication.AbstractChainingAuthenticationService
-
- org.alfresco.repo.security.authentication.subsystems.SubsystemChainingAuthenticationService
-
- All Implemented Interfaces:
AuthenticationService,MutableAuthenticationService
public class SubsystemChainingAuthenticationService extends AbstractChainingAuthenticationService
An authentication service that chains across beans in multiple child application contexts corresponding to different 'subsystems' in a chain determined by aChildApplicationContextManager. The first authentication service in the chain will always be considered to be the 'mutable' authentication service.- Author:
- dward
-
-
Field Summary
-
Fields inherited from class org.alfresco.repo.security.authentication.AbstractChainingAuthenticationService
logger
-
Fields inherited from class org.alfresco.repo.security.authentication.AbstractAuthenticationService
GUEST_AUTHENTICATION_NOT_SUPPORTED
-
-
Constructor Summary
Constructors Constructor Description SubsystemChainingAuthenticationService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringgetId(AuthenticationService authService)Should be overridden to returns the ID of the authService for use in debug.MutableAuthenticationServicegetMutableAuthenticationService()Gets the mutable authentication service.protected java.util.List<AuthenticationService>getUsableAuthenticationServices()Gets the authentication services across which methods will chain.voidsetApplicationContextManager(ChildApplicationContextManager applicationContextManager)Sets the application context manager.voidsetSourceBeanName(java.lang.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.AbstractChainingAuthenticationService
authenticate, authenticateAsGuest, authenticationExists, clearCurrentSecurityContext, countTickets, createAuthentication, deleteAuthentication, getAuthenticationEnabled, getCurrentTicket, getCurrentUserName, getDefaultAdministratorUserNames, getDefaultGuestUserNames, getDomains, getDomainsThatAllowUserCreation, getDomainsThatAllowUserDeletion, getDomiansThatAllowUserPasswordChanges, getNewTicket, getTicketComponents, getUsersWithTickets, guestUserAuthenticationAllowed, invalidateTicket, invalidateTickets, invalidateUserSession, isAuthenticationCreationAllowed, isAuthenticationMutable, isCurrentUserTheSystemUser, setAuthentication, setAuthenticationEnabled, updateAuthentication, validate
-
Methods inherited from class org.alfresco.repo.security.authentication.AbstractAuthenticationService
getAllowedUsers, getMaxUsers, preAuthenticationCheck, setSysAdminParams
-
-
-
-
Method Detail
-
setApplicationContextManager
public void setApplicationContextManager(ChildApplicationContextManager applicationContextManager)
Sets the application context manager.- Parameters:
applicationContextManager- the applicationContextManager to set
-
setSourceBeanName
public void setSourceBeanName(java.lang.String sourceBeanName)
Sets the name of the bean to look up in the child application contexts.- Parameters:
sourceBeanName- the bean name
-
getMutableAuthenticationService
public MutableAuthenticationService getMutableAuthenticationService()
Description copied from class:AbstractChainingAuthenticationServiceGets the mutable authentication service.- Specified by:
getMutableAuthenticationServicein classAbstractChainingAuthenticationService- Returns:
- the mutable authentication service
-
getUsableAuthenticationServices
protected java.util.List<AuthenticationService> getUsableAuthenticationServices()
Description copied from class:AbstractChainingAuthenticationServiceGets the authentication services across which methods will chain.- Specified by:
getUsableAuthenticationServicesin classAbstractChainingAuthenticationService- Returns:
- the usable authentication services
-
getId
protected java.lang.String getId(AuthenticationService authService)
Description copied from class:AbstractChainingAuthenticationServiceShould be overridden to returns the ID of the authService for use in debug.- Overrides:
getIdin classAbstractChainingAuthenticationService- Parameters:
authService- in question.- Returns:
- the ID of the authService. This implementation has no way to work this out so returns the simple class name.
-
-