test_class.declarator: filter
test_class.modifier: private
test_class.original_string: private KeycloakPreAuthActionsFilter filter;
test_class.type: KeycloakPreAuthActionsFilter
test_class.var_name: filter
test_class.declarator: nodesRegistrationManagement
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private NodesRegistrationManagement nodesRegistrationManagement;
test_class.type: NodesRegistrationManagement
test_class.var_name: nodesRegistrationManagement
test_class.declarator: applicationContext
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private ApplicationContext applicationContext;
test_class.type: ApplicationContext
test_class.var_name: applicationContext
test_class.declarator: deploymentContext
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private AdapterDeploymentContext deploymentContext;
test_class.type: AdapterDeploymentContext
test_class.var_name: deploymentContext
test_class.declarator: preAuthActionsHandlerFactory
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private PreAuthActionsHandlerFactory preAuthActionsHandlerFactory;
test_class.type: PreAuthActionsHandlerFactory
test_class.var_name: preAuthActionsHandlerFactory
test_class.declarator: userSessionManagement
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private UserSessionManagement userSessionManagement;
test_class.type: UserSessionManagement
test_class.var_name: userSessionManagement
test_class.declarator: preAuthActionsHandler
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private PreAuthActionsHandler preAuthActionsHandler;
test_class.type: PreAuthActionsHandler
test_class.var_name: preAuthActionsHandler
test_class.declarator: deployment
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private KeycloakDeployment deployment;
test_class.type: KeycloakDeployment
test_class.var_name: deployment
test_class.declarator: request
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private HttpServletRequest request;
test_class.type: HttpServletRequest
test_class.var_name: request
test_class.declarator: response
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private HttpServletResponse response;
test_class.type: HttpServletResponse
test_class.var_name: response
test_class.declarator: chain
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private FilterChain chain;
test_class.type: FilterChain
test_class.var_name: chain
test_class.file: adapters/oidc/spring-security/src/test/java/org/keycloak/adapters/springsecurity/filter/KeycloakPreAuthActionsFilterTest.java
test_class.identifier: KeycloakPreAuthActionsFilterTest
test_case.body: @Test
      public void shouldIgnoreChainWhenPreAuthActionHandlerHandled() throws Exception {
          when(preAuthActionsHandler.handleRequest()).thenReturn(true);
          
          filter.doFilter(request, response, chain);
          
          verifyZeroInteractions(chain);
          verify(nodesRegistrationManagement).tryRegister(deployment);
      }
test_case.class_method_signature: KeycloakPreAuthActionsFilterTest.shouldIgnoreChainWhenPreAuthActionHandlerHandled()
test_case.full_signature: @Test public void shouldIgnoreChainWhenPreAuthActionHandlerHandled()
test_case.identifier: shouldIgnoreChainWhenPreAuthActionHandlerHandled
test_case.invocations: thenReturn when handleRequest doFilter verifyZeroInteractions tryRegister verify
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void shouldIgnoreChainWhenPreAuthActionHandlerHandled()
focal_class.declarator: log = LoggerFactory.getLogger(KeycloakPreAuthActionsFilter.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger log = LoggerFactory.getLogger(KeycloakPreAuthActionsFilter.class);
focal_class.type: Logger
focal_class.var_name: log
focal_class.declarator: nodesRegistrationManagement = new NodesRegistrationManagement()
focal_class.modifier: private
focal_class.original_string: private NodesRegistrationManagement nodesRegistrationManagement = new NodesRegistrationManagement();
focal_class.type: NodesRegistrationManagement
focal_class.var_name: nodesRegistrationManagement
focal_class.declarator: applicationContext
focal_class.modifier: private
focal_class.original_string: private ApplicationContext applicationContext;
focal_class.type: ApplicationContext
focal_class.var_name: applicationContext
focal_class.declarator: deploymentContext
focal_class.modifier: private
focal_class.original_string: private AdapterDeploymentContext deploymentContext;
focal_class.type: AdapterDeploymentContext
focal_class.var_name: deploymentContext
focal_class.declarator: userSessionManagement
focal_class.modifier: private
focal_class.original_string: private UserSessionManagement userSessionManagement;
focal_class.type: UserSessionManagement
focal_class.var_name: userSessionManagement
focal_class.declarator: preAuthActionsHandlerFactory = new PreAuthActionsHandlerFactory()
focal_class.modifier: private
focal_class.original_string: private PreAuthActionsHandlerFactory preAuthActionsHandlerFactory = new PreAuthActionsHandlerFactory();
focal_class.type: PreAuthActionsHandlerFactory
focal_class.var_name: preAuthActionsHandlerFactory
focal_class.file: adapters/oidc/spring-security/src/main/java/org/keycloak/adapters/springsecurity/filter/KeycloakPreAuthActionsFilter.java
focal_class.identifier: KeycloakPreAuthActionsFilter
focal_class.interfaces: implements ApplicationContextAware
focal_class.class_method_signature: KeycloakPreAuthActionsFilter.KeycloakPreAuthActionsFilter()
focal_class.full_signature: public  KeycloakPreAuthActionsFilter()
focal_class.identifier: KeycloakPreAuthActionsFilter
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  KeycloakPreAuthActionsFilter()
focal_class.class_method_signature: KeycloakPreAuthActionsFilter.KeycloakPreAuthActionsFilter(UserSessionManagement userSessionManagement)
focal_class.full_signature: public  KeycloakPreAuthActionsFilter(UserSessionManagement userSessionManagement)
focal_class.identifier: KeycloakPreAuthActionsFilter
focal_class.modifiers: public
focal_class.parameters: (UserSessionManagement userSessionManagement)
focal_class.signature:  KeycloakPreAuthActionsFilter(UserSessionManagement userSessionManagement)
focal_class.class_method_signature: KeycloakPreAuthActionsFilter.initFilterBean()
focal_class.full_signature: @Override protected void initFilterBean()
focal_class.identifier: initFilterBean
focal_class.modifiers: @Override protected
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void initFilterBean()
focal_class.class_method_signature: KeycloakPreAuthActionsFilter.destroy()
focal_class.full_signature: @Override public void destroy()
focal_class.identifier: destroy
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: void
focal_class.signature: void destroy()
focal_class.class_method_signature: KeycloakPreAuthActionsFilter.doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
focal_class.full_signature: @Override public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
focal_class.identifier: doFilter
focal_class.modifiers: @Override public
focal_class.parameters: (ServletRequest request, ServletResponse response, FilterChain chain)
focal_class.return: void
focal_class.signature: void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
focal_class.class_method_signature: KeycloakPreAuthActionsFilter.setUserSessionManagement(UserSessionManagement userSessionManagement)
focal_class.full_signature: public void setUserSessionManagement(UserSessionManagement userSessionManagement)
focal_class.identifier: setUserSessionManagement
focal_class.modifiers: public
focal_class.parameters: (UserSessionManagement userSessionManagement)
focal_class.return: void
focal_class.signature: void setUserSessionManagement(UserSessionManagement userSessionManagement)
focal_class.class_method_signature: KeycloakPreAuthActionsFilter.setApplicationContext(ApplicationContext applicationContext)
focal_class.full_signature: @Override public void setApplicationContext(ApplicationContext applicationContext)
focal_class.identifier: setApplicationContext
focal_class.modifiers: @Override public
focal_class.parameters: (ApplicationContext applicationContext)
focal_class.return: void
focal_class.signature: void setApplicationContext(ApplicationContext applicationContext)
focal_class.class_method_signature: KeycloakPreAuthActionsFilter.setNodesRegistrationManagement(NodesRegistrationManagement nodesRegistrationManagement)
focal_class.full_signature:  void setNodesRegistrationManagement(NodesRegistrationManagement nodesRegistrationManagement)
focal_class.identifier: setNodesRegistrationManagement
focal_class.parameters: (NodesRegistrationManagement nodesRegistrationManagement)
focal_class.return: void
focal_class.signature: void setNodesRegistrationManagement(NodesRegistrationManagement nodesRegistrationManagement)
focal_class.class_method_signature: KeycloakPreAuthActionsFilter.setPreAuthActionsHandlerFactory(PreAuthActionsHandlerFactory preAuthActionsHandlerFactory)
focal_class.full_signature:  void setPreAuthActionsHandlerFactory(PreAuthActionsHandlerFactory preAuthActionsHandlerFactory)
focal_class.identifier: setPreAuthActionsHandlerFactory
focal_class.parameters: (PreAuthActionsHandlerFactory preAuthActionsHandlerFactory)
focal_class.return: void
focal_class.signature: void setPreAuthActionsHandlerFactory(PreAuthActionsHandlerFactory preAuthActionsHandlerFactory)
focal_class.superclass: extends GenericFilterBean
focal_method.body: @Override
      public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
              throws IOException, ServletException {
  
          HttpFacade facade = new SimpleHttpFacade((HttpServletRequest)request, (HttpServletResponse)response);
          KeycloakDeployment deployment = deploymentContext.resolveDeployment(facade);
          
          if (deployment == null) {
              return;
          }
  
          if (deployment.isConfigured()) {
              nodesRegistrationManagement.tryRegister(deploymentContext.resolveDeployment(facade));
          }
  
          PreAuthActionsHandler handler = preAuthActionsHandlerFactory.createPreAuthActionsHandler(facade);
          if (handler.handleRequest()) {
              log.debug("Pre-auth filter handled request: {}", ((HttpServletRequest) request).getRequestURI());
          } else {
              chain.doFilter(request, response);
          }
      }
focal_method.class_method_signature: KeycloakPreAuthActionsFilter.doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
focal_method.full_signature: @Override public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
focal_method.identifier: doFilter
focal_method.invocations: resolveDeployment isConfigured tryRegister resolveDeployment createPreAuthActionsHandler handleRequest debug getRequestURI doFilter
focal_method.modifiers: @Override public
focal_method.parameters: (ServletRequest request, ServletResponse response, FilterChain chain)
focal_method.return: void
focal_method.signature: void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)