Class SentryUserFilter

All Implemented Interfaces:
javax.servlet.Filter, Aware, BeanNameAware, DisposableBean, InitializingBean, EnvironmentAware, EnvironmentCapable, ServletContextAware

public class SentryUserFilter extends OncePerRequestFilter
Sets the User on the IScope with information retrieved from SentryUserProviders.
  • Constructor Details

    • SentryUserFilter

      public SentryUserFilter(@NotNull @NotNull IHub hub, @NotNull @NotNull List<SentryUserProvider> sentryUserProviders)
  • Method Details

    • doFilterInternal

      protected void doFilterInternal(@NotNull @NotNull javax.servlet.http.HttpServletRequest request, @NotNull @NotNull javax.servlet.http.HttpServletResponse response, @NotNull @NotNull javax.servlet.FilterChain chain) throws javax.servlet.ServletException, IOException
      Specified by:
      doFilterInternal in class OncePerRequestFilter
      Throws:
      javax.servlet.ServletException
      IOException
    • getSentryUserProviders

      @VisibleForTesting @NotNull public @NotNull List<SentryUserProvider> getSentryUserProviders()