Class ConfigurationUtil


  • public final class ConfigurationUtil
    extends Object
    Utility to create Configurations for built-in LoginModule implementations.
    • Method Detail

      • getDefaultConfiguration

        public static Configuration getDefaultConfiguration​(ConfigurationParameters loginConfiguration)
        Creates a new Configuration 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 new Configuration backwards compatible with the default Jackrabbit 2.x authentication setup. In addition to login with standard JCR credentials this configuration also handles TokenCredentials and under certain circumstances treats login without credentials as anonymous login.
        Parameters:
        loginConfiguration - The configuration parameters.
        Returns:
        A new Configuration