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
An authentication service that chains across beans in multiple child application contexts corresponding to different 'subsystems' in a chain determined by a
ChildApplicationContextManager. 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
loggerFields inherited from class org.alfresco.repo.security.authentication.AbstractAuthenticationService
GUEST_AUTHENTICATION_NOT_SUPPORTED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetId(AuthenticationService authService) Should be overridden to returns the ID of the authService for use in debug.Gets the mutable authentication service.protected List<AuthenticationService>Gets the authentication services across which methods will chain.voidsetApplicationContextManager(ChildApplicationContextManager applicationContextManager) Sets the application context manager.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.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, validateMethods inherited from class org.alfresco.repo.security.authentication.AbstractAuthenticationService
getAllowedUsers, getMaxUsers, preAuthenticationCheck, setSysAdminParams
-
Constructor Details
-
SubsystemChainingAuthenticationService
public SubsystemChainingAuthenticationService()
-
-
Method Details
-
setApplicationContextManager
Sets the application context manager.- 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
-
getMutableAuthenticationService
Description copied from class:AbstractChainingAuthenticationServiceGets the mutable authentication service.- Specified by:
getMutableAuthenticationServicein classAbstractChainingAuthenticationService- Returns:
- the mutable authentication service
-
getUsableAuthenticationServices
Description copied from class:AbstractChainingAuthenticationServiceGets the authentication services across which methods will chain.- Specified by:
getUsableAuthenticationServicesin classAbstractChainingAuthenticationService- Returns:
- the usable authentication services
-
getId
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.
-