SAMLProcessingFilter extends AbstractAuthenticationProcessingFilter { @Override protected boolean requiresAuthentication(HttpServletRequest request, HttpServletResponse response) { return SAMLUtil.processFilter(getFilterProcessesUrl(), request); } SAMLProcessingFilter(); protected  SAMLProcessingFilter(String defaultFilterProcessesUrl); Authentication attemptAuthentication(HttpServletRequest request, HttpServletResponse response); @Deprecated void setDefaultTargetUrl(String url); @Autowired void setSAMLProcessor(SAMLProcessor processor); @Autowired void setContextProvider(SAMLContextProvider contextProvider); @Autowired(required = false) void setUriComparator(URIComparator uriComparator); @Override void afterPropertiesSet(); @Override void setFilterProcessesUrl(String filterProcessesUrl); String getFilterProcessesUrl(); static final String FILTER_URL; }
@Test public void requiresLogout() { MockHttpServletRequest request = new MockHttpServletRequest(); MockHttpServletResponse response = new MockHttpServletResponse(); assertEquals(false, processingFiler.requiresAuthentication(request, response)); request.setRequestURI("/logout"); assertEquals(false, processingFiler.requiresAuthentication(request, response)); }