public class CompositePrincipalConfiguration extends CompositeConfiguration<PrincipalConfiguration> implements PrincipalConfiguration
PrincipalConfiguration
that combines different principal provider
implementations that share a common principal manager implementation.SecurityConfiguration.Default
PARAM_RANKING
NAME
Constructor and Description |
---|
CompositePrincipalConfiguration() |
CompositePrincipalConfiguration(SecurityProvider securityProvider) |
Modifier and Type | Method and Description |
---|---|
PrincipalManager |
getPrincipalManager(Root root,
NamePathMapper namePathMapper)
Returns an instance of
PrincipalManager that can be used
to query and retrieve principals such as needed for JCR access control
management. |
PrincipalProvider |
getPrincipalProvider(Root root,
NamePathMapper namePathMapper)
Returns an instance of the OAK
PrincipalProvider . |
addConfiguration, addConfiguration, getCommitHooks, getConfigurations, getConflictHandlers, getContext, getDefaultConfig, getName, getParameters, getProtectedItemImporters, getRepositoryInitializer, getValidators, getWorkspaceInitializer, removeConfiguration, setDefaultConfig, setRootProvider, setSecurityProvider, setTreeProvider
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCommitHooks, getConflictHandlers, getContext, getName, getParameters, getProtectedItemImporters, getRepositoryInitializer, getValidators, getWorkspaceInitializer
public CompositePrincipalConfiguration()
public CompositePrincipalConfiguration(SecurityProvider securityProvider)
public PrincipalManager getPrincipalManager(Root root, NamePathMapper namePathMapper)
PrincipalConfiguration
PrincipalManager
that can be used
to query and retrieve principals such as needed for JCR access control
management.getPrincipalManager
in interface PrincipalConfiguration
root
- The target root.namePathMapper
- The NamePathMapper
to be used.PrincipalManager
.JackrabbitSession.getPrincipalManager()
public PrincipalProvider getPrincipalProvider(Root root, NamePathMapper namePathMapper)
PrincipalConfiguration
PrincipalProvider
.
PrincipalProvider
a public interface of the SPI, it's configuration goes along with the
configuration of the JCR level PrincipalManager
. The authentication
setup may have access to the principal configuration if the
SecurityProvider
is
made available in the AuthenticationConfiguration
.
CompositePrincipalProvider
to combine the different sources.getPrincipalProvider
in interface PrincipalConfiguration
root
- The target Root
.namePathMapper
- The NamePathMapper
to be used.PrincipalProvider
."Copyright © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"