Class ConfigurationUtil
- java.lang.Object
-
- org.apache.jackrabbit.oak.spi.security.authentication.ConfigurationUtil
-
public final class ConfigurationUtil extends java.lang.Object
Utility to createConfiguration
s for built-in LoginModule implementations.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static javax.security.auth.login.Configuration
getDefaultConfiguration(ConfigurationParameters loginConfiguration)
Creates a newConfiguration
for the default OAK authentication setup which only handles login for standard JCR credentials.static javax.security.auth.login.Configuration
getJackrabbit2Configuration(ConfigurationParameters loginConfiguration)
Creates a newConfiguration
backwards compatible with the default Jackrabbit 2.x authentication setup.
-
-
-
Method Detail
-
getDefaultConfiguration
public static javax.security.auth.login.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 javax.security.auth.login.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
-
-