code: protected boolean requiresAuthentication(HttpServletRequest request, HttpServletResponse response) {
          String uri = request.getRequestURI();
          int pathParamIndex = uri.indexOf(';');
  
          if (pathParamIndex > 0) {
              // strip everything after the first semi-colon
              uri = uri.substring(0, pathParamIndex);
          }
  
          if ("".equals(request.getContextPath())) {
              return uri.endsWith(filterProcessesUrl);
          }
  
          return uri.endsWith(request.getContextPath() + filterProcessesUrl);
      }
docs: /*
  public void setAuthenticationSuccessHandler(AuthenticationSuccessHandler successHandler) {
  Assert.notNull(successHandler, "successHandler cannot be null");
  this.successHandler = successHandler;
  }
  
  public void setAuthenticationFailureHandler(AuthenticationFailureHandler failureHandler) {
  Assert.notNull(failureHandler, "failureHandler cannot be null");
  this.failureHandler = failureHandler;
  }