Class ConfigurationUtil
java.lang.Object
org.apache.jackrabbit.oak.spi.security.authentication.ConfigurationUtil
Utility to create
Configurations for built-in LoginModule implementations.-
Method Summary
Modifier and TypeMethodDescriptionstatic ConfigurationgetDefaultConfiguration(ConfigurationParameters loginConfiguration) Creates a newConfigurationfor the default OAK authentication setup which only handles login for standard JCR credentials.static ConfigurationgetJackrabbit2Configuration(ConfigurationParameters loginConfiguration) Creates a newConfigurationbackwards compatible with the default Jackrabbit 2.x authentication setup.
-
Method Details
-
getDefaultConfiguration
Creates a newConfigurationfor the default OAK authentication setup which only handles login for standard JCR credentials.- Parameters:
loginConfiguration- The configuration parameters.- Returns:
- A new
Configuration
-
getJackrabbit2Configuration
Creates a newConfigurationbackwards compatible with the default Jackrabbit 2.x authentication setup. In addition to login with standard JCR credentials this configuration also handlesTokenCredentialsand under certain circumstances treats login without credentials as anonymous login.- Parameters:
loginConfiguration- The configuration parameters.- Returns:
- A new
Configuration
-