test_class.declarator: builder = SecurityProviderBuilder.newBuilder()
test_class.modifier: private
test_class.original_string: private SecurityProviderBuilder builder = SecurityProviderBuilder.newBuilder();
test_class.type: SecurityProviderBuilder
test_class.var_name: builder
test_class.file: oak-core/src/test/java/org/apache/jackrabbit/oak/security/internal/SecurityProviderBuilderTest.java
test_class.identifier: SecurityProviderBuilderTest
test_class.superclass: extends AbstractSecurityTest
test_case.body: @Test
      public void testDefault() {
          SecurityProvider sp = builder.build();
          assertNotNull(sp.getConfiguration(AuthenticationConfiguration.class));
          assertNotNull(sp.getConfiguration(AuthorizationConfiguration.class));
          assertNotNull(sp.getConfiguration(PrincipalConfiguration.class));
          assertNotNull(sp.getConfiguration(PrivilegeConfiguration.class));
          assertNotNull(sp.getConfiguration(TokenConfiguration.class));
          assertNotNull(sp.getConfiguration(UserConfiguration.class));
      }
test_case.class_method_signature: SecurityProviderBuilderTest.testDefault()
test_case.full_signature: @Test public void testDefault()
test_case.identifier: testDefault
test_case.invocations: build assertNotNull getConfiguration assertNotNull getConfiguration assertNotNull getConfiguration assertNotNull getConfiguration assertNotNull getConfiguration assertNotNull getConfiguration
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testDefault()
focal_class.declarator: whiteboard
focal_class.modifier: private
focal_class.original_string: private Whiteboard whiteboard;
focal_class.type: Whiteboard
focal_class.var_name: whiteboard
focal_class.declarator: rootProvider
focal_class.modifier: private
focal_class.original_string: private RootProvider rootProvider;
focal_class.type: RootProvider
focal_class.var_name: rootProvider
focal_class.declarator: treeProvider
focal_class.modifier: private
focal_class.original_string: private TreeProvider treeProvider;
focal_class.type: TreeProvider
focal_class.var_name: treeProvider
focal_class.declarator: authenticationParams = EMPTY
focal_class.modifier: private
focal_class.original_string: private ConfigurationParameters authenticationParams = EMPTY;
focal_class.type: ConfigurationParameters
focal_class.var_name: authenticationParams
focal_class.declarator: authenticationConfiguration
focal_class.modifier: private
focal_class.original_string: private AuthenticationConfiguration authenticationConfiguration;
focal_class.type: AuthenticationConfiguration
focal_class.var_name: authenticationConfiguration
focal_class.declarator: privilegeParams = EMPTY
focal_class.modifier: private
focal_class.original_string: private ConfigurationParameters privilegeParams = EMPTY;
focal_class.type: ConfigurationParameters
focal_class.var_name: privilegeParams
focal_class.declarator: privilegeConfiguration
focal_class.modifier: private
focal_class.original_string: private PrivilegeConfiguration privilegeConfiguration;
focal_class.type: PrivilegeConfiguration
focal_class.var_name: privilegeConfiguration
focal_class.declarator: userParams = EMPTY
focal_class.modifier: private
focal_class.original_string: private ConfigurationParameters userParams = EMPTY;
focal_class.type: ConfigurationParameters
focal_class.var_name: userParams
focal_class.declarator: userConfiguration
focal_class.modifier: private
focal_class.original_string: private UserConfiguration userConfiguration;
focal_class.type: UserConfiguration
focal_class.var_name: userConfiguration
focal_class.declarator: authorizationParams = EMPTY
focal_class.modifier: private
focal_class.original_string: private ConfigurationParameters authorizationParams = EMPTY;
focal_class.type: ConfigurationParameters
focal_class.var_name: authorizationParams
focal_class.declarator: authorizationConfiguration
focal_class.modifier: private
focal_class.original_string: private AuthorizationConfiguration authorizationConfiguration;
focal_class.type: AuthorizationConfiguration
focal_class.var_name: authorizationConfiguration
focal_class.declarator: principalParams = EMPTY
focal_class.modifier: private
focal_class.original_string: private ConfigurationParameters principalParams = EMPTY;
focal_class.type: ConfigurationParameters
focal_class.var_name: principalParams
focal_class.declarator: principalConfiguration
focal_class.modifier: private
focal_class.original_string: private PrincipalConfiguration principalConfiguration;
focal_class.type: PrincipalConfiguration
focal_class.var_name: principalConfiguration
focal_class.declarator: tokenParams = EMPTY
focal_class.modifier: private
focal_class.original_string: private ConfigurationParameters tokenParams = EMPTY;
focal_class.type: ConfigurationParameters
focal_class.var_name: tokenParams
focal_class.declarator: tokenConfiguration
focal_class.modifier: private
focal_class.original_string: private TokenConfiguration tokenConfiguration;
focal_class.type: TokenConfiguration
focal_class.var_name: tokenConfiguration
focal_class.declarator: configuration
focal_class.modifier: private
focal_class.original_string: private ConfigurationParameters configuration;
focal_class.type: ConfigurationParameters
focal_class.var_name: configuration
focal_class.file: oak-core/src/main/java/org/apache/jackrabbit/oak/security/internal/SecurityProviderBuilder.java
focal_class.identifier: SecurityProviderBuilder
focal_class.class_method_signature: SecurityProviderBuilder.newBuilder()
focal_class.full_signature: @NotNull public static SecurityProviderBuilder newBuilder()
focal_class.identifier: newBuilder
focal_class.modifiers: @NotNull public static
focal_class.parameters: ()
focal_class.return: SecurityProviderBuilder
focal_class.signature: SecurityProviderBuilder newBuilder()
focal_class.class_method_signature: SecurityProviderBuilder.SecurityProviderBuilder()
focal_class.full_signature: private  SecurityProviderBuilder()
focal_class.identifier: SecurityProviderBuilder
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.signature:  SecurityProviderBuilder()
focal_class.class_method_signature: SecurityProviderBuilder.with(@NotNull ConfigurationParameters configuration)
focal_class.full_signature: public SecurityProviderBuilder with(@NotNull ConfigurationParameters configuration)
focal_class.identifier: with
focal_class.modifiers: public
focal_class.parameters: (@NotNull ConfigurationParameters configuration)
focal_class.return: SecurityProviderBuilder
focal_class.signature: SecurityProviderBuilder with(@NotNull ConfigurationParameters configuration)
focal_class.class_method_signature: SecurityProviderBuilder.with(@NotNull AuthenticationConfiguration authenticationConfiguration,
              @NotNull ConfigurationParameters authenticationParams,
              @NotNull PrivilegeConfiguration privilegeConfiguration, @NotNull ConfigurationParameters privilegeParams,
              @NotNull UserConfiguration userConfiguration, @NotNull ConfigurationParameters userParams,
              @NotNull AuthorizationConfiguration authorizationConfiguration, @NotNull ConfigurationParameters authorizationParams,
              @NotNull PrincipalConfiguration principalConfiguration, @NotNull ConfigurationParameters principalParams,
              @NotNull TokenConfiguration tokenConfiguration, @NotNull ConfigurationParameters tokenParams)
focal_class.full_signature: public SecurityProviderBuilder with(@NotNull AuthenticationConfiguration authenticationConfiguration,
              @NotNull ConfigurationParameters authenticationParams,
              @NotNull PrivilegeConfiguration privilegeConfiguration, @NotNull ConfigurationParameters privilegeParams,
              @NotNull UserConfiguration userConfiguration, @NotNull ConfigurationParameters userParams,
              @NotNull AuthorizationConfiguration authorizationConfiguration, @NotNull ConfigurationParameters authorizationParams,
              @NotNull PrincipalConfiguration principalConfiguration, @NotNull ConfigurationParameters principalParams,
              @NotNull TokenConfiguration tokenConfiguration, @NotNull ConfigurationParameters tokenParams)
focal_class.identifier: with
focal_class.modifiers: public
focal_class.parameters: (@NotNull AuthenticationConfiguration authenticationConfiguration,
              @NotNull ConfigurationParameters authenticationParams,
              @NotNull PrivilegeConfiguration privilegeConfiguration, @NotNull ConfigurationParameters privilegeParams,
              @NotNull UserConfiguration userConfiguration, @NotNull ConfigurationParameters userParams,
              @NotNull AuthorizationConfiguration authorizationConfiguration, @NotNull ConfigurationParameters authorizationParams,
              @NotNull PrincipalConfiguration principalConfiguration, @NotNull ConfigurationParameters principalParams,
              @NotNull TokenConfiguration tokenConfiguration, @NotNull ConfigurationParameters tokenParams)
focal_class.return: SecurityProviderBuilder
focal_class.signature: SecurityProviderBuilder with(@NotNull AuthenticationConfiguration authenticationConfiguration,
              @NotNull ConfigurationParameters authenticationParams,
              @NotNull PrivilegeConfiguration privilegeConfiguration, @NotNull ConfigurationParameters privilegeParams,
              @NotNull UserConfiguration userConfiguration, @NotNull ConfigurationParameters userParams,
              @NotNull AuthorizationConfiguration authorizationConfiguration, @NotNull ConfigurationParameters authorizationParams,
              @NotNull PrincipalConfiguration principalConfiguration, @NotNull ConfigurationParameters principalParams,
              @NotNull TokenConfiguration tokenConfiguration, @NotNull ConfigurationParameters tokenParams)
focal_class.class_method_signature: SecurityProviderBuilder.build()
focal_class.full_signature: public SecurityProvider build()
focal_class.identifier: build
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: SecurityProvider
focal_class.signature: SecurityProvider build()
focal_class.class_method_signature: SecurityProviderBuilder.withWhiteboard(@NotNull Whiteboard whiteboard)
focal_class.full_signature: public SecurityProviderBuilder withWhiteboard(@NotNull Whiteboard whiteboard)
focal_class.identifier: withWhiteboard
focal_class.modifiers: public
focal_class.parameters: (@NotNull Whiteboard whiteboard)
focal_class.return: SecurityProviderBuilder
focal_class.signature: SecurityProviderBuilder withWhiteboard(@NotNull Whiteboard whiteboard)
focal_class.class_method_signature: SecurityProviderBuilder.withRootProvider(@NotNull RootProvider rootProvider)
focal_class.full_signature: public SecurityProviderBuilder withRootProvider(@NotNull RootProvider rootProvider)
focal_class.identifier: withRootProvider
focal_class.modifiers: public
focal_class.parameters: (@NotNull RootProvider rootProvider)
focal_class.return: SecurityProviderBuilder
focal_class.signature: SecurityProviderBuilder withRootProvider(@NotNull RootProvider rootProvider)
focal_class.class_method_signature: SecurityProviderBuilder.withTreeProvider(@NotNull TreeProvider treeProvider)
focal_class.full_signature: public SecurityProviderBuilder withTreeProvider(@NotNull TreeProvider treeProvider)
focal_class.identifier: withTreeProvider
focal_class.modifiers: public
focal_class.parameters: (@NotNull TreeProvider treeProvider)
focal_class.return: SecurityProviderBuilder
focal_class.signature: SecurityProviderBuilder withTreeProvider(@NotNull TreeProvider treeProvider)
focal_method.body: public SecurityProvider build() {
          InternalSecurityProvider securityProvider = new InternalSecurityProvider();
  
          if (rootProvider == null) {
              rootProvider = new RootProviderService();
          }
          if (treeProvider == null) {
              treeProvider = new TreeProviderService();
          }
  
          // authentication
          if (authenticationConfiguration == null) {
              authenticationConfiguration = new AuthenticationConfigurationImpl();
          }
          securityProvider.setAuthenticationConfiguration(initializeConfiguration(authenticationConfiguration,
                  securityProvider, authenticationParams, rootProvider, treeProvider));
  
          // privilege
          if (privilegeConfiguration == null) {
              privilegeConfiguration = new PrivilegeConfigurationImpl();
          }
          securityProvider.setPrivilegeConfiguration(initializeConfiguration(privilegeConfiguration, securityProvider,
                  privilegeParams, rootProvider, treeProvider));
  
          // user
          if (userConfiguration == null) {
              userConfiguration = new UserConfigurationImpl();
          }
          securityProvider.setUserConfiguration(
                  initializeConfiguration(userConfiguration, securityProvider, userParams, rootProvider, treeProvider));
  
          // authorization
          if (authorizationConfiguration == null) {
              CompositeAuthorizationConfiguration ac = new CompositeAuthorizationConfiguration();
              ac.withCompositionType(configuration.getConfigValue("authorizationCompositionType", CompositeAuthorizationConfiguration.CompositionType.AND.toString()));
              ac.setDefaultConfig(initializeConfiguration(new AuthorizationConfigurationImpl(),
                      securityProvider, rootProvider, treeProvider));
              authorizationConfiguration = ac;
          }
  
          if (authorizationConfiguration instanceof CompositeAuthorizationConfiguration) {
              initializeConfigurations((CompositeAuthorizationConfiguration) authorizationConfiguration, securityProvider, authorizationParams, rootProvider, treeProvider);
          } else {
              initializeConfiguration(authorizationConfiguration, securityProvider, authorizationParams, rootProvider, treeProvider);
          }
          securityProvider.setAuthorizationConfiguration(authorizationConfiguration);
  
          // principal
          if (principalConfiguration == null) {
              CompositePrincipalConfiguration pc = new CompositePrincipalConfiguration();
              pc.setDefaultConfig(initializeConfiguration(new PrincipalConfigurationImpl(), securityProvider, rootProvider, treeProvider));
              principalConfiguration = pc;
          }
  
          if (principalConfiguration instanceof CompositePrincipalConfiguration) {
              initializeConfigurations((CompositePrincipalConfiguration) principalConfiguration, securityProvider, principalParams, rootProvider, treeProvider);
          } else {
              initializeConfiguration(principalConfiguration, securityProvider, principalParams, rootProvider, treeProvider);
          }
          securityProvider.setPrincipalConfiguration(principalConfiguration);
  
          // token
          if (tokenConfiguration == null) {
              CompositeTokenConfiguration tc = new CompositeTokenConfiguration();
              tc.setDefaultConfig(initializeConfiguration(new TokenConfigurationImpl(), securityProvider, rootProvider, treeProvider));
              tokenConfiguration = tc;
          }
  
          if (tokenConfiguration instanceof CompositeTokenConfiguration) {
              initializeConfigurations((CompositeTokenConfiguration) tokenConfiguration, securityProvider, tokenParams, rootProvider, treeProvider);
          } else {
              initializeConfiguration(tokenConfiguration, securityProvider, tokenParams, rootProvider, treeProvider);
          }
          securityProvider.setTokenConfiguration(tokenConfiguration);
  
          // whiteboard
          if (whiteboard != null) {
              securityProvider.setWhiteboard(whiteboard);
          }
  
          return securityProvider;
      }
focal_method.class_method_signature: SecurityProviderBuilder.build()
focal_method.full_signature: public SecurityProvider build()
focal_method.identifier: build
focal_method.invocations: setAuthenticationConfiguration initializeConfiguration setPrivilegeConfiguration initializeConfiguration setUserConfiguration initializeConfiguration withCompositionType getConfigValue toString setDefaultConfig initializeConfiguration initializeConfigurations initializeConfiguration setAuthorizationConfiguration setDefaultConfig initializeConfiguration initializeConfigurations initializeConfiguration setPrincipalConfiguration setDefaultConfig initializeConfiguration initializeConfigurations initializeConfiguration setTokenConfiguration setWhiteboard
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: SecurityProvider
focal_method.signature: SecurityProvider build()