test_class.file: oak-security-spi/src/test/java/org/apache/jackrabbit/oak/spi/security/authentication/ConfigurationUtilTest.java
test_class.identifier: ConfigurationUtilTest
test_case.body: @Test
      public void testGetJr2Configuration() {
          Configuration c = ConfigurationUtil.getJackrabbit2Configuration(ConfigurationParameters.EMPTY);
          AppConfigurationEntry[]  entries = c.getAppConfigurationEntry("any");
          assertEquals(3, entries.length);
  
          assertEquals(GuestLoginModule.class.getName(), entries[0].getLoginModuleName());
          assertEquals(AppConfigurationEntry.LoginModuleControlFlag.OPTIONAL, entries[0].getControlFlag());
  
          assertEquals("org.apache.jackrabbit.oak.security.authentication.token.TokenLoginModule", entries[1].getLoginModuleName());
          assertEquals(AppConfigurationEntry.LoginModuleControlFlag.SUFFICIENT, entries[1].getControlFlag());
  
          assertEquals("org.apache.jackrabbit.oak.security.authentication.user.LoginModuleImpl", entries[2].getLoginModuleName());
      }
test_case.class_method_signature: ConfigurationUtilTest.testGetJr2Configuration()
test_case.full_signature: @Test public void testGetJr2Configuration()
test_case.identifier: testGetJr2Configuration
test_case.invocations: getJackrabbit2Configuration getAppConfigurationEntry assertEquals assertEquals getName getLoginModuleName assertEquals getControlFlag assertEquals getLoginModuleName assertEquals getControlFlag assertEquals getLoginModuleName
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetJr2Configuration()
focal_class.file: oak-security-spi/src/main/java/org/apache/jackrabbit/oak/spi/security/authentication/ConfigurationUtil.java
focal_class.identifier: ConfigurationUtil
focal_class.class_method_signature: ConfigurationUtil.ConfigurationUtil()
focal_class.full_signature: private  ConfigurationUtil()
focal_class.identifier: ConfigurationUtil
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  ConfigurationUtil()
focal_class.class_method_signature: ConfigurationUtil.getDefaultConfiguration(final ConfigurationParameters loginConfiguration)
focal_class.full_signature: public static Configuration getDefaultConfiguration(final ConfigurationParameters loginConfiguration)
focal_class.identifier: getDefaultConfiguration
focal_class.modifiers: public static
focal_class.parameters: (final ConfigurationParameters loginConfiguration)
focal_class.return: Configuration
focal_class.signature: Configuration getDefaultConfiguration(final ConfigurationParameters loginConfiguration)
focal_class.class_method_signature: ConfigurationUtil.getJackrabbit2Configuration(final ConfigurationParameters loginConfiguration)
focal_class.full_signature: public static Configuration getJackrabbit2Configuration(final ConfigurationParameters loginConfiguration)
focal_class.identifier: getJackrabbit2Configuration
focal_class.modifiers: public static
focal_class.parameters: (final ConfigurationParameters loginConfiguration)
focal_class.return: Configuration
focal_class.signature: Configuration getJackrabbit2Configuration(final ConfigurationParameters loginConfiguration)
focal_method.body: public static Configuration getJackrabbit2Configuration(final ConfigurationParameters loginConfiguration) {
          return new Configuration() {
              @Override
              public AppConfigurationEntry[] getAppConfigurationEntry(String applicationName) {
                  Map<String, ?> options = loginConfiguration.getConfigValue(applicationName, Collections.<String, Object>emptyMap());
                  return new AppConfigurationEntry[]{
                          new GuestEntry(options),
                          new TokenEntry(options),
                          new DefaultEntry(options)};
              }
          };
      }
focal_method.class_method_signature: ConfigurationUtil.getJackrabbit2Configuration(final ConfigurationParameters loginConfiguration)
focal_method.full_signature: public static Configuration getJackrabbit2Configuration(final ConfigurationParameters loginConfiguration)
focal_method.identifier: getJackrabbit2Configuration
focal_method.invocations: getConfigValue emptyMap
focal_method.modifiers: public static
focal_method.parameters: (final ConfigurationParameters loginConfiguration)
focal_method.return: Configuration
focal_method.signature: Configuration getJackrabbit2Configuration(final ConfigurationParameters loginConfiguration)