Class RequireAuthenticationHandlerInterceptor

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

    @Component
    public class RequireAuthenticationHandlerInterceptor
    extends Object
    implements org.springframework.web.servlet.HandlerInterceptor
    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
        Specified by:
        preHandle in interface org.springframework.web.servlet.HandlerInterceptor
        Throws:
        Exception