Class RequireAuthenticationHandlerInterceptor

  • All Implemented Interfaces:
    org.springframework.web.servlet.AsyncHandlerInterceptor, org.springframework.web.servlet.HandlerInterceptor

    @Component
    public class RequireAuthenticationHandlerInterceptor
    extends org.springframework.web.servlet.handler.HandlerInterceptorAdapter
    A handler interceptor that enforces JWT authentication for all handler methods not annotated with IgnoreJwt.
    • Constructor Detail

      • RequireAuthenticationHandlerInterceptor

        public RequireAuthenticationHandlerInterceptor()
    • Method Detail

      • preHandle

        public boolean preHandle​(javax.servlet.http.HttpServletRequest request,
                                 javax.servlet.http.HttpServletResponse response,
                                 Object handler)
                          throws Exception
        Throws:
        Exception