Class ConfigurationUtil


  • public final class ConfigurationUtil
    extends java.lang.Object
    Utility to create Configurations 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 new Configuration 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 new Configuration backwards compatible with the default Jackrabbit 2.x authentication setup.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getDefaultConfiguration

        public static javax.security.auth.login.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 javax.security.auth.login.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