public class PrincipalConfigurationImpl extends ConfigurationBase implements PrincipalConfiguration
PrincipalConfiguration
SecurityConfiguration.Default
NAME
Constructor and Description |
---|
PrincipalConfigurationImpl() |
PrincipalConfigurationImpl(SecurityProvider securityProvider) |
Modifier and Type | Method and Description |
---|---|
@NotNull java.lang.String |
getName()
Returns the name of this security configuration.
|
@NotNull 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. |
@NotNull PrincipalProvider |
getPrincipalProvider(Root root,
NamePathMapper namePathMapper)
Returns an instance of the OAK
PrincipalProvider . |
getParameters, getRootProvider, getSecurityProvider, getTreeProvider, setParameters, setRootProvider, setSecurityProvider, setTreeProvider
getCommitHooks, getConflictHandlers, getContext, getProtectedItemImporters, getRepositoryInitializer, getValidators, getWorkspaceInitializer
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCommitHooks, getConflictHandlers, getContext, getMonitors, getParameters, getProtectedItemImporters, getRepositoryInitializer, getValidators, getWorkspaceInitializer
public PrincipalConfigurationImpl()
public PrincipalConfigurationImpl(SecurityProvider securityProvider)
@NotNull public @NotNull 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()
@NotNull public @NotNull 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
.
PrincipalConfiguration
for each source.getPrincipalProvider
in interface PrincipalConfiguration
root
- The target Root
.namePathMapper
- The NamePathMapper
to be used.PrincipalProvider
.@NotNull public @NotNull java.lang.String getName()
SecurityConfiguration
getName
in interface SecurityConfiguration
getName
in class SecurityConfiguration.Default
Copyright © 2012–2022 The Apache Software Foundation. All rights reserved.