Interface UserConfiguration
- 
- All Superinterfaces:
 SecurityConfiguration
public interface UserConfiguration extends SecurityConfiguration
Configuration interface for user management. 
- 
- 
Nested Class Summary
- 
Nested classes/interfaces inherited from interface org.apache.jackrabbit.oak.spi.security.SecurityConfiguration
SecurityConfiguration.Default 
 - 
 
- 
Field Summary
Fields Modifier and Type Field Description static java.lang.StringNAME 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @NotNull UserManagergetUserManager(Root root, NamePathMapper namePathMapper)Create a newUserManagerinstance@Nullable org.apache.jackrabbit.oak.spi.security.principal.PrincipalProvidergetUserPrincipalProvider(@NotNull Root root, @NotNull NamePathMapper namePathMapper)Optional method that allows a given user management implementation to provide a specific and optimized implementation of thePrincipalProviderinterface for the principals represented by the user/groups known to this implementation.- 
Methods inherited from interface org.apache.jackrabbit.oak.spi.security.SecurityConfiguration
getCommitHooks, getConflictHandlers, getContext, getMonitors, getName, getParameters, getProtectedItemImporters, getRepositoryInitializer, getValidators, getWorkspaceInitializer 
 - 
 
 - 
 
- 
- 
Field Detail
- 
NAME
static final java.lang.String NAME
- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Method Detail
- 
getUserManager
@NotNull @NotNull UserManager getUserManager(Root root, NamePathMapper namePathMapper)
Create a newUserManagerinstance- Parameters:
 root- The root associated with the user manager.namePathMapper- A name path mapper used for conversion of jcr/oak names/paths.- Returns:
 - a new instance of 
UserManager 
 
- 
getUserPrincipalProvider
@Nullable @Nullable org.apache.jackrabbit.oak.spi.security.principal.PrincipalProvider getUserPrincipalProvider(@NotNull @NotNull Root root, @NotNull @NotNull NamePathMapper namePathMapper)Optional method that allows a given user management implementation to provide a specific and optimized implementation of thePrincipalProviderinterface for the principals represented by the user/groups known to this implementation. If this method returnsnullthe security setup will by default use a basicPrincipalProviderimplementation based on public user management API or a combination of otherPrincipalProviders as configured with the repository setup.- Parameters:
 root- The root used to read the principal information from.namePathMapper- TheNamePathMapperto convert oak paths to JCR paths.- Returns:
 - An implementation of 
PrincipalProviderornullif principal discovery is provided by other means of if the default principal provider implementation should be used that acts on public user management API. - See Also:
 PrincipalConfiguration
 
 - 
 
 -