@Test public void testIsAccessAllowed() { when(antiCrsfHelper.isAccessAllowed(httpServletRequest)).thenReturn(true); assertTrue(underTest.isAccessAllowed(httpServletRequest, httpServletResponse, null)); when(antiCrsfHelper.isAccessAllowed(httpServletRequest)).thenReturn(false); assertFalse(underTest.isAccessAllowed(httpServletRequest, httpServletResponse, null)); }
@Override protected boolean isAccessAllowed(final ServletRequest request, final ServletResponse response, final Object mappedValue) { return csrfHelper.isAccessAllowed((HttpServletRequest) request); }
AntiCsrfFilter extends AuthenticationFilter { @Override protected boolean isAccessAllowed(final ServletRequest request, final ServletResponse response, final Object mappedValue) { return csrfHelper.isAccessAllowed((HttpServletRequest) request); } }
AntiCsrfFilter extends AuthenticationFilter { @Override protected boolean isAccessAllowed(final ServletRequest request, final ServletResponse response, final Object mappedValue) { return csrfHelper.isAccessAllowed((HttpServletRequest) request); } @Inject  AntiCsrfFilter(final AntiCsrfHelper csrfHelper); }
AntiCsrfFilter extends AuthenticationFilter { @Override protected boolean isAccessAllowed(final ServletRequest request, final ServletResponse response, final Object mappedValue) { return csrfHelper.isAccessAllowed((HttpServletRequest) request); } @Inject  AntiCsrfFilter(final AntiCsrfHelper csrfHelper); @Override boolean isEnabled(); }
AntiCsrfFilter extends AuthenticationFilter { @Override protected boolean isAccessAllowed(final ServletRequest request, final ServletResponse response, final Object mappedValue) { return csrfHelper.isAccessAllowed((HttpServletRequest) request); } @Inject  AntiCsrfFilter(final AntiCsrfHelper csrfHelper); @Override boolean isEnabled(); static final String NAME; }