Class ConfigurationUtil
- java.lang.Object
-
- org.apache.jackrabbit.oak.spi.security.authentication.ConfigurationUtil
-
public final class ConfigurationUtil extends Object
Utility to createConfiguration
s for built-in LoginModule implementations.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Configuration
getDefaultConfiguration(ConfigurationParameters loginConfiguration)
Creates a newConfiguration
for the default OAK authentication setup which only handles login for standard JCR credentials.static Configuration
getJackrabbit2Configuration(ConfigurationParameters loginConfiguration)
Creates a newConfiguration
backwards compatible with the default Jackrabbit 2.x authentication setup.
-
-
-
Method Detail
-
getDefaultConfiguration
public static Configuration getDefaultConfiguration(ConfigurationParameters loginConfiguration)
Creates a newConfiguration
for the default OAK authentication setup which only handles login for standard JCR credentials.- Parameters:
loginConfiguration
- The configuration parameters.- Returns:
- A new
Configuration
-
getJackrabbit2Configuration
public static Configuration getJackrabbit2Configuration(ConfigurationParameters loginConfiguration)
Creates a newConfiguration
backwards compatible with the default Jackrabbit 2.x authentication setup. In addition to login with standard JCR credentials this configuration also handlesTokenCredentials
and under certain circumstances treats login without credentials as anonymous login.- Parameters:
loginConfiguration
- The configuration parameters.- Returns:
- A new
Configuration
-
-