Example #1
0
 @Override
 public void init(FilterConfig filterConfig) throws ServletException {
   provider =
       OAuthUtils.initiateServletContext(
           filterConfig.getServletContext(), OAUTH_RS_PROVIDER_CLASS, OAuth2RSProvider.class);
   super.init(filterConfig);
 }
Example #2
0
 @Override
 public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
     throws IOException, ServletException {
   provider.setServletResponse((HttpServletResponse) response);
   super.doFilter(request, response, chain);
 }