test_class.declarator: keycloakAuthenticationToken
test_class.modifier: private
test_class.original_string: private KeycloakAuthenticationToken keycloakAuthenticationToken;
test_class.type: KeycloakAuthenticationToken
test_class.var_name: keycloakAuthenticationToken
test_class.declarator: keycloakLogoutHandler
test_class.modifier: private
test_class.original_string: private KeycloakLogoutHandler keycloakLogoutHandler;
test_class.type: KeycloakLogoutHandler
test_class.var_name: keycloakLogoutHandler
test_class.declarator: request
test_class.modifier: private
test_class.original_string: private MockHttpServletRequest request;
test_class.type: MockHttpServletRequest
test_class.var_name: request
test_class.declarator: response
test_class.modifier: private
test_class.original_string: private MockHttpServletResponse response;
test_class.type: MockHttpServletResponse
test_class.var_name: response
test_class.declarator: adapterDeploymentContext
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private AdapterDeploymentContext adapterDeploymentContext;
test_class.type: AdapterDeploymentContext
test_class.var_name: adapterDeploymentContext
test_class.declarator: keycloakAccount
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private OidcKeycloakAccount keycloakAccount;
test_class.type: OidcKeycloakAccount
test_class.var_name: keycloakAccount
test_class.declarator: keycloakDeployment
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private KeycloakDeployment keycloakDeployment;
test_class.type: KeycloakDeployment
test_class.var_name: keycloakDeployment
test_class.declarator: session
test_class.modifier: @Mock
      private
test_class.original_string: @Mock
      private RefreshableKeycloakSecurityContext session;
test_class.type: RefreshableKeycloakSecurityContext
test_class.var_name: session
test_class.declarator: authorities = Collections.singleton(new KeycloakRole(UUID.randomUUID().toString()))
test_class.modifier: private
test_class.original_string: private Collection<KeycloakRole> authorities = Collections.singleton(new KeycloakRole(UUID.randomUUID().toString()));
test_class.type: Collection<KeycloakRole>
test_class.var_name: authorities
test_class.file: adapters/oidc/spring-security/src/test/java/org/keycloak/adapters/springsecurity/authentication/KeycloakLogoutHandlerTest.java
test_class.identifier: KeycloakLogoutHandlerTest
test_case.body: @Test
      public void testHandleSingleSignOut() throws Exception {
          keycloakLogoutHandler.handleSingleSignOut(request, response, keycloakAuthenticationToken);
          verify(session).logout(eq(keycloakDeployment));
      }
test_case.class_method_signature: KeycloakLogoutHandlerTest.testHandleSingleSignOut()
test_case.full_signature: @Test public void testHandleSingleSignOut()
test_case.identifier: testHandleSingleSignOut
test_case.invocations: handleSingleSignOut logout verify eq
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testHandleSingleSignOut()
focal_class.declarator: log = LoggerFactory.getLogger(KeycloakLogoutHandler.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger log = LoggerFactory.getLogger(KeycloakLogoutHandler.class);
focal_class.type: Logger
focal_class.var_name: log
focal_class.declarator: adapterDeploymentContext
focal_class.modifier: private
focal_class.original_string: private AdapterDeploymentContext adapterDeploymentContext;
focal_class.type: AdapterDeploymentContext
focal_class.var_name: adapterDeploymentContext
focal_class.declarator: adapterTokenStoreFactory = new SpringSecurityAdapterTokenStoreFactory()
focal_class.modifier: private
focal_class.original_string: private AdapterTokenStoreFactory adapterTokenStoreFactory = new SpringSecurityAdapterTokenStoreFactory();
focal_class.type: AdapterTokenStoreFactory
focal_class.var_name: adapterTokenStoreFactory
focal_class.file: adapters/oidc/spring-security/src/main/java/org/keycloak/adapters/springsecurity/authentication/KeycloakLogoutHandler.java
focal_class.identifier: KeycloakLogoutHandler
focal_class.interfaces: implements LogoutHandler
focal_class.class_method_signature: KeycloakLogoutHandler.KeycloakLogoutHandler(AdapterDeploymentContext adapterDeploymentContext)
focal_class.full_signature: public  KeycloakLogoutHandler(AdapterDeploymentContext adapterDeploymentContext)
focal_class.identifier: KeycloakLogoutHandler
focal_class.modifiers: public
focal_class.parameters: (AdapterDeploymentContext adapterDeploymentContext)
focal_class.signature:  KeycloakLogoutHandler(AdapterDeploymentContext adapterDeploymentContext)
focal_class.class_method_signature: KeycloakLogoutHandler.setAdapterTokenStoreFactory(AdapterTokenStoreFactory adapterTokenStoreFactory)
focal_class.full_signature: public void setAdapterTokenStoreFactory(AdapterTokenStoreFactory adapterTokenStoreFactory)
focal_class.identifier: setAdapterTokenStoreFactory
focal_class.modifiers: public
focal_class.parameters: (AdapterTokenStoreFactory adapterTokenStoreFactory)
focal_class.return: void
focal_class.signature: void setAdapterTokenStoreFactory(AdapterTokenStoreFactory adapterTokenStoreFactory)
focal_class.class_method_signature: KeycloakLogoutHandler.logout(HttpServletRequest request, HttpServletResponse response, Authentication authentication)
focal_class.full_signature: @Override public void logout(HttpServletRequest request, HttpServletResponse response, Authentication authentication)
focal_class.identifier: logout
focal_class.modifiers: @Override public
focal_class.parameters: (HttpServletRequest request, HttpServletResponse response, Authentication authentication)
focal_class.return: void
focal_class.signature: void logout(HttpServletRequest request, HttpServletResponse response, Authentication authentication)
focal_class.class_method_signature: KeycloakLogoutHandler.handleSingleSignOut(HttpServletRequest request, HttpServletResponse response, KeycloakAuthenticationToken authenticationToken)
focal_class.full_signature: protected void handleSingleSignOut(HttpServletRequest request, HttpServletResponse response, KeycloakAuthenticationToken authenticationToken)
focal_class.identifier: handleSingleSignOut
focal_class.modifiers: protected
focal_class.parameters: (HttpServletRequest request, HttpServletResponse response, KeycloakAuthenticationToken authenticationToken)
focal_class.return: void
focal_class.signature: void handleSingleSignOut(HttpServletRequest request, HttpServletResponse response, KeycloakAuthenticationToken authenticationToken)
focal_method.body: protected void handleSingleSignOut(HttpServletRequest request, HttpServletResponse response, KeycloakAuthenticationToken authenticationToken) {
          HttpFacade facade = new SimpleHttpFacade(request, response);
          KeycloakDeployment deployment = adapterDeploymentContext.resolveDeployment(facade);
          adapterTokenStoreFactory.createAdapterTokenStore(deployment, request, response).logout();
          RefreshableKeycloakSecurityContext session = (RefreshableKeycloakSecurityContext) authenticationToken.getAccount().getKeycloakSecurityContext();
          session.logout(deployment);
      }
focal_method.class_method_signature: KeycloakLogoutHandler.handleSingleSignOut(HttpServletRequest request, HttpServletResponse response, KeycloakAuthenticationToken authenticationToken)
focal_method.full_signature: protected void handleSingleSignOut(HttpServletRequest request, HttpServletResponse response, KeycloakAuthenticationToken authenticationToken)
focal_method.identifier: handleSingleSignOut
focal_method.invocations: resolveDeployment logout createAdapterTokenStore getKeycloakSecurityContext getAccount logout
focal_method.modifiers: protected
focal_method.parameters: (HttpServletRequest request, HttpServletResponse response, KeycloakAuthenticationToken authenticationToken)
focal_method.return: void
focal_method.signature: void handleSingleSignOut(HttpServletRequest request, HttpServletResponse response, KeycloakAuthenticationToken authenticationToken)