Category "servlet-filters"

Setting User Principal in filter

I have an authentication filter that implements filter. by typcasting ServletRequest to HTTPServletRequest i can get the userPrincipal. public void doFilter(

What is the purpose of AuthenticationEntryPoint in Spring Web Security?

What is the purpose of AuthenticationEntryPoint in Spring Web Security? The documentation does not provide much details. When should this be used, and does it

How to specify the dispatcher type for a filter defined in a Guice Servlet Module?

I'm working on a Java based web app. We're using Guice and its ServletModule to configure servlets and filters. Now, I need a Filter to be invoked even when a

How can I add a filter class in Spring Boot?

Is there any annotation for a Filter class (for web applications) in Spring Boot? Perhaps @Filter? I want to add a custom filter in my project. The Spring Boot