Class SecurityConfig
- java.lang.Object
-
- org.apache.jackrabbit.core.config.SecurityConfig
-
public class SecurityConfig extends Object
Security configuration. This encapsulates the security related sub configurationsAccessManagerConfig
andLoginModuleConfig
.
-
-
Constructor Summary
Constructors Constructor Description SecurityConfig(String name, SecurityManagerConfig smc, AccessManagerConfig amc, LoginModuleConfig lmc)
Creates a new security configuration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AccessManagerConfig
getAccessManagerConfig()
Returns the repository access manager configuration.String
getAppName()
Returns the repository name.LoginModuleConfig
getLoginModuleConfig()
Returns the repository login module configuration.SecurityManagerConfig
getSecurityManagerConfig()
Returns the repository security manager configuration.
-
-
-
Constructor Detail
-
SecurityConfig
public SecurityConfig(String name, SecurityManagerConfig smc, AccessManagerConfig amc, LoginModuleConfig lmc)
Creates a new security configuration.- Parameters:
name
- repository name for a JAAS app-entry configurationsmc
- security manager configurationamc
- access manager configurationlmc
- login module configuration (can benull
)
-
-
Method Detail
-
getAppName
public String getAppName()
Returns the repository name. The repository name can be used for JAAS app-entry configuration.- Returns:
- repository name
-
getSecurityManagerConfig
public SecurityManagerConfig getSecurityManagerConfig()
Returns the repository security manager configuration.- Returns:
- access manager configuration
-
getAccessManagerConfig
public AccessManagerConfig getAccessManagerConfig()
Returns the repository access manager configuration.- Returns:
- access manager configuration
-
getLoginModuleConfig
public LoginModuleConfig getLoginModuleConfig()
Returns the repository login module configuration.- Returns:
- login module configuration, or
null
if standard JAAS mechanism should be used.
-
-