test_class.file: adapters/oidc/spring-security/src/test/java/org/keycloak/adapters/springsecurity/facade/SimpleHttpFacadeTest.java
test_class.identifier: SimpleHttpFacadeTest
test_case.body: @Test
      public void shouldRetrieveKeycloakSecurityContext() {
          SimpleHttpFacade facade = new SimpleHttpFacade(new MockHttpServletRequest(), new MockHttpServletResponse());
  
          assertNotNull(facade.getSecurityContext());
      }
test_case.class_method_signature: SimpleHttpFacadeTest.shouldRetrieveKeycloakSecurityContext()
test_case.full_signature: @Test public void shouldRetrieveKeycloakSecurityContext()
test_case.identifier: shouldRetrieveKeycloakSecurityContext
test_case.invocations: assertNotNull getSecurityContext
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void shouldRetrieveKeycloakSecurityContext()
focal_class.declarator: request
focal_class.modifier: private final
focal_class.original_string: private final HttpServletRequest request;
focal_class.type: HttpServletRequest
focal_class.var_name: request
focal_class.declarator: response
focal_class.modifier: private final
focal_class.original_string: private final HttpServletResponse response;
focal_class.type: HttpServletResponse
focal_class.var_name: response
focal_class.file: adapters/oidc/spring-security/src/main/java/org/keycloak/adapters/springsecurity/facade/SimpleHttpFacade.java
focal_class.identifier: SimpleHttpFacade
focal_class.interfaces: implements OIDCHttpFacade
focal_class.class_method_signature: SimpleHttpFacade.SimpleHttpFacade(HttpServletRequest request, HttpServletResponse response)
focal_class.full_signature: public  SimpleHttpFacade(HttpServletRequest request, HttpServletResponse response)
focal_class.identifier: SimpleHttpFacade
focal_class.modifiers: public
focal_class.parameters: (HttpServletRequest request, HttpServletResponse response)
focal_class.signature:  SimpleHttpFacade(HttpServletRequest request, HttpServletResponse response)
focal_class.class_method_signature: SimpleHttpFacade.getSecurityContext()
focal_class.full_signature: @Override public KeycloakSecurityContext getSecurityContext()
focal_class.identifier: getSecurityContext
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: KeycloakSecurityContext
focal_class.signature: KeycloakSecurityContext getSecurityContext()
focal_class.class_method_signature: SimpleHttpFacade.getRequest()
focal_class.full_signature: @Override public Request getRequest()
focal_class.identifier: getRequest
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Request
focal_class.signature: Request getRequest()
focal_class.class_method_signature: SimpleHttpFacade.getResponse()
focal_class.full_signature: @Override public Response getResponse()
focal_class.identifier: getResponse
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Response
focal_class.signature: Response getResponse()
focal_class.class_method_signature: SimpleHttpFacade.getCertificateChain()
focal_class.full_signature: @Override public X509Certificate[] getCertificateChain()
focal_class.identifier: getCertificateChain
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: X509Certificate[]
focal_class.signature: X509Certificate[] getCertificateChain()
focal_method.body: @Override
      public KeycloakSecurityContext getSecurityContext() {
  
          SecurityContext context = SecurityContextHolder.getContext();
  
          if (context != null && context.getAuthentication() != null) {
              KeycloakAuthenticationToken authentication = (KeycloakAuthenticationToken) context.getAuthentication();
              return authentication.getAccount().getKeycloakSecurityContext();
          }
  
          return null;
      }
focal_method.class_method_signature: SimpleHttpFacade.getSecurityContext()
focal_method.full_signature: @Override public KeycloakSecurityContext getSecurityContext()
focal_method.identifier: getSecurityContext
focal_method.invocations: getContext getAuthentication getAuthentication getKeycloakSecurityContext getAccount
focal_method.modifiers: @Override public
focal_method.parameters: ()
focal_method.return: KeycloakSecurityContext
focal_method.signature: KeycloakSecurityContext getSecurityContext()