test_class.declarator: TEST_FUNCTIONS = {"test_function_1", "test_function_2"}
test_class.modifier: private final
test_class.original_string: private final String[] TEST_FUNCTIONS = {"test_function_1", "test_function_2"};
test_class.type: String[]
test_class.var_name: TEST_FUNCTIONS
test_class.file: herd-code/herd-app/src/test/java/org/finra/herd/app/security/HttpHeaderAuthenticationFilterTest.java
test_class.identifier: HttpHeaderAuthenticationFilterTest
test_class.superclass: extends AbstractAppTest
test_case.body: @Test
      public void testHttpHeaderAuthenticationFilterNoRoles() throws Exception
      {
          modifyPropertySourceInEnvironment(getDefaultSecurityEnvironmentVariables());
  
          try
          {
              MockHttpServletRequest request = getRequestWithHeaders(USER_ID, "testFirstName", "testLastName", "testEmail", null, "Wed, 11 Mar 2015 10:24:09");
  
              // Invalidate user session if exists.
              invalidateApplicationUser(request);
  
              httpHeaderAuthenticationFilter.init(new MockFilterConfig());
              httpHeaderAuthenticationFilter.doFilter(request, new MockHttpServletResponse(), new MockFilterChain());
  
              validateHttpHeaderApplicationUser(USER_ID, "testFirstName", "testLastName", "testEmail", (String) null, "Wed, 11 Mar 2015 10:24:09", null, null);
          }
          finally
          {
              restorePropertySourceInEnvironment();
          }
      }
test_case.class_method_signature: HttpHeaderAuthenticationFilterTest.testHttpHeaderAuthenticationFilterNoRoles()
test_case.full_signature: @Test public void testHttpHeaderAuthenticationFilterNoRoles()
test_case.identifier: testHttpHeaderAuthenticationFilterNoRoles
test_case.invocations: modifyPropertySourceInEnvironment getDefaultSecurityEnvironmentVariables getRequestWithHeaders invalidateApplicationUser init doFilter validateHttpHeaderApplicationUser restorePropertySourceInEnvironment
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testHttpHeaderAuthenticationFilterNoRoles()
focal_class.declarator: LOGGER = LoggerFactory.getLogger(HttpHeaderAuthenticationFilter.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOGGER = LoggerFactory.getLogger(HttpHeaderAuthenticationFilter.class);
focal_class.type: Logger
focal_class.var_name: LOGGER
focal_class.declarator: securityHelper
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private SecurityHelper securityHelper;
focal_class.type: SecurityHelper
focal_class.var_name: securityHelper
focal_class.declarator: herdErrorInformationExceptionHandler
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private HerdErrorInformationExceptionHandler herdErrorInformationExceptionHandler;
focal_class.type: HerdErrorInformationExceptionHandler
focal_class.var_name: herdErrorInformationExceptionHandler
focal_class.declarator: xmlHelper
focal_class.modifier: @Autowired
      private
focal_class.original_string: @Autowired
      private XmlHelper xmlHelper;
focal_class.type: XmlHelper
focal_class.var_name: xmlHelper
focal_class.declarator: authenticationTrustResolver = new AuthenticationTrustResolverImpl()
focal_class.modifier: private
focal_class.original_string: private AuthenticationTrustResolver authenticationTrustResolver = new AuthenticationTrustResolverImpl();
focal_class.type: AuthenticationTrustResolver
focal_class.var_name: authenticationTrustResolver
focal_class.declarator: authenticationDetailsSource = new WebAuthenticationDetailsSource()
focal_class.modifier: private
focal_class.original_string: private AuthenticationDetailsSource<HttpServletRequest, WebAuthenticationDetails> authenticationDetailsSource = new WebAuthenticationDetailsSource();
focal_class.type: AuthenticationDetailsSource<HttpServletRequest, WebAuthenticationDetails>
focal_class.var_name: authenticationDetailsSource
focal_class.declarator: authenticationManager = null
focal_class.modifier: private
focal_class.original_string: private AuthenticationManager authenticationManager = null;
focal_class.type: AuthenticationManager
focal_class.var_name: authenticationManager
focal_class.declarator: applicationUserBuilder
focal_class.modifier: private
focal_class.original_string: private ApplicationUserBuilder applicationUserBuilder;
focal_class.type: ApplicationUserBuilder
focal_class.var_name: applicationUserBuilder
focal_class.file: herd-code/herd-app/src/main/java/org/finra/herd/app/security/HttpHeaderAuthenticationFilter.java
focal_class.identifier: HttpHeaderAuthenticationFilter
focal_class.class_method_signature: HttpHeaderAuthenticationFilter.HttpHeaderAuthenticationFilter(AuthenticationManager authenticationManager, ApplicationUserBuilder applicationUserBuilder)
focal_class.full_signature: public  HttpHeaderAuthenticationFilter(AuthenticationManager authenticationManager, ApplicationUserBuilder applicationUserBuilder)
focal_class.identifier: HttpHeaderAuthenticationFilter
focal_class.modifiers: public
focal_class.parameters: (AuthenticationManager authenticationManager, ApplicationUserBuilder applicationUserBuilder)
focal_class.signature:  HttpHeaderAuthenticationFilter(AuthenticationManager authenticationManager, ApplicationUserBuilder applicationUserBuilder)
focal_class.class_method_signature: HttpHeaderAuthenticationFilter.doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain)
focal_class.full_signature: @Override @SuppressFBWarnings(value = "BC_UNCONFIRMED_CAST", justification = "The ServletRequest is cast to an HttpServletRequest which is always the case since all requests use the HTTP protocol.") public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain)
focal_class.identifier: doFilter
focal_class.modifiers: @Override @SuppressFBWarnings(value = "BC_UNCONFIRMED_CAST", justification = "The ServletRequest is cast to an HttpServletRequest which is always the case since all requests use the HTTP protocol.") public
focal_class.parameters: (ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain)
focal_class.return: void
focal_class.signature: void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain)
focal_class.class_method_signature: HttpHeaderAuthenticationFilter.doHttpFilter(HttpServletRequest servletRequest, HttpServletResponse servletResponse, FilterChain filterChain)
focal_class.full_signature: public void doHttpFilter(HttpServletRequest servletRequest, HttpServletResponse servletResponse, FilterChain filterChain)
focal_class.identifier: doHttpFilter
focal_class.modifiers: public
focal_class.parameters: (HttpServletRequest servletRequest, HttpServletResponse servletResponse, FilterChain filterChain)
focal_class.return: void
focal_class.signature: void doHttpFilter(HttpServletRequest servletRequest, HttpServletResponse servletResponse, FilterChain filterChain)
focal_class.class_method_signature: HttpHeaderAuthenticationFilter.authenticateUser(HttpServletRequest servletRequest)
focal_class.full_signature: private void authenticateUser(HttpServletRequest servletRequest)
focal_class.identifier: authenticateUser
focal_class.modifiers: private
focal_class.parameters: (HttpServletRequest servletRequest)
focal_class.return: void
focal_class.signature: void authenticateUser(HttpServletRequest servletRequest)
focal_class.class_method_signature: HttpHeaderAuthenticationFilter.processUserNotLoggedIn(HttpServletRequest servletRequest)
focal_class.full_signature: protected void processUserNotLoggedIn(HttpServletRequest servletRequest)
focal_class.identifier: processUserNotLoggedIn
focal_class.modifiers: protected
focal_class.parameters: (HttpServletRequest servletRequest)
focal_class.return: void
focal_class.signature: void processUserNotLoggedIn(HttpServletRequest servletRequest)
focal_class.class_method_signature: HttpHeaderAuthenticationFilter.invalidateUser(HttpServletRequest servletRequest, boolean invalidateSession)
focal_class.full_signature: protected void invalidateUser(HttpServletRequest servletRequest, boolean invalidateSession)
focal_class.identifier: invalidateUser
focal_class.modifiers: protected
focal_class.parameters: (HttpServletRequest servletRequest, boolean invalidateSession)
focal_class.return: void
focal_class.signature: void invalidateUser(HttpServletRequest servletRequest, boolean invalidateSession)
focal_class.class_method_signature: HttpHeaderAuthenticationFilter.getExistingUserId()
focal_class.full_signature: protected String getExistingUserId()
focal_class.identifier: getExistingUserId
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getExistingUserId()
focal_class.class_method_signature: HttpHeaderAuthenticationFilter.getExistingSessionInitTime()
focal_class.full_signature: protected Date getExistingSessionInitTime()
focal_class.identifier: getExistingSessionInitTime
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: Date
focal_class.signature: Date getExistingSessionInitTime()
focal_class.class_method_signature: HttpHeaderAuthenticationFilter.getExistingUser()
focal_class.full_signature: protected ApplicationUser getExistingUser()
focal_class.identifier: getExistingUser
focal_class.modifiers: protected
focal_class.parameters: ()
focal_class.return: ApplicationUser
focal_class.signature: ApplicationUser getExistingUser()
focal_class.class_method_signature: HttpHeaderAuthenticationFilter.successfulAuthentication(Authentication authResult)
focal_class.full_signature: protected void successfulAuthentication(Authentication authResult)
focal_class.identifier: successfulAuthentication
focal_class.modifiers: protected
focal_class.parameters: (Authentication authResult)
focal_class.return: void
focal_class.signature: void successfulAuthentication(Authentication authResult)
focal_class.class_method_signature: HttpHeaderAuthenticationFilter.unsuccessfulAuthentication(HttpServletRequest servletRequest, AuthenticationException authenticationException)
focal_class.full_signature: protected void unsuccessfulAuthentication(HttpServletRequest servletRequest, AuthenticationException authenticationException)
focal_class.identifier: unsuccessfulAuthentication
focal_class.modifiers: protected
focal_class.parameters: (HttpServletRequest servletRequest, AuthenticationException authenticationException)
focal_class.return: void
focal_class.signature: void unsuccessfulAuthentication(HttpServletRequest servletRequest, AuthenticationException authenticationException)
focal_class.superclass: extends GenericFilterBean
focal_method.body: @Override
      @SuppressFBWarnings(value = "BC_UNCONFIRMED_CAST",
          justification = "The ServletRequest is cast to an HttpServletRequest which is always the case since all requests use the HTTP protocol.")
      public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException
      {
          doHttpFilter((HttpServletRequest) servletRequest, (HttpServletResponse) servletResponse, filterChain);
      }
focal_method.class_method_signature: HttpHeaderAuthenticationFilter.doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain)
focal_method.full_signature: @Override @SuppressFBWarnings(value = "BC_UNCONFIRMED_CAST", justification = "The ServletRequest is cast to an HttpServletRequest which is always the case since all requests use the HTTP protocol.") public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain)
focal_method.identifier: doFilter
focal_method.invocations: doHttpFilter
focal_method.modifiers: @Override @SuppressFBWarnings(value = "BC_UNCONFIRMED_CAST", justification = "The ServletRequest is cast to an HttpServletRequest which is always the case since all requests use the HTTP protocol.") public
focal_method.parameters: (ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain)
focal_method.return: void
focal_method.signature: void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain)