@Test public void testEntryPointOk() throws Exception { HttpServletResponse response = mock(HttpServletResponse.class); entryPoint.commence(null, response, null); verify(response).addHeader("WWW-Authenticate", "Negotiate"); verify(response).setStatus(HttpServletResponse.SC_UNAUTHORIZED); }
@Override public void commence(HttpServletRequest request, HttpServletResponse response, AuthenticationException ex) throws IOException, ServletException { if (LOG.isDebugEnabled()) { LOG.debug("Sending back Negotiate Header for request: "+request.getRequestURL()); } response.addHeader("WWW-Authenticate", "Negotiate"); response.setStatus(HttpServletResponse.SC_UNAUTHORIZED); response.flushBuffer(); }
SpnegoEntryPoint implements AuthenticationEntryPoint { @Override public void commence(HttpServletRequest request, HttpServletResponse response, AuthenticationException ex) throws IOException, ServletException { if (LOG.isDebugEnabled()) { LOG.debug("Sending back Negotiate Header for request: "+request.getRequestURL()); } response.addHeader("WWW-Authenticate", "Negotiate"); response.setStatus(HttpServletResponse.SC_UNAUTHORIZED); response.flushBuffer(); } }
SpnegoEntryPoint implements AuthenticationEntryPoint { @Override public void commence(HttpServletRequest request, HttpServletResponse response, AuthenticationException ex) throws IOException, ServletException { if (LOG.isDebugEnabled()) { LOG.debug("Sending back Negotiate Header for request: "+request.getRequestURL()); } response.addHeader("WWW-Authenticate", "Negotiate"); response.setStatus(HttpServletResponse.SC_UNAUTHORIZED); response.flushBuffer(); }  }
SpnegoEntryPoint implements AuthenticationEntryPoint { @Override public void commence(HttpServletRequest request, HttpServletResponse response, AuthenticationException ex) throws IOException, ServletException { if (LOG.isDebugEnabled()) { LOG.debug("Sending back Negotiate Header for request: "+request.getRequestURL()); } response.addHeader("WWW-Authenticate", "Negotiate"); response.setStatus(HttpServletResponse.SC_UNAUTHORIZED); response.flushBuffer(); }  @Override void commence(HttpServletRequest request, HttpServletResponse response,
            AuthenticationException ex); }
SpnegoEntryPoint implements AuthenticationEntryPoint { @Override public void commence(HttpServletRequest request, HttpServletResponse response, AuthenticationException ex) throws IOException, ServletException { if (LOG.isDebugEnabled()) { LOG.debug("Sending back Negotiate Header for request: "+request.getRequestURL()); } response.addHeader("WWW-Authenticate", "Negotiate"); response.setStatus(HttpServletResponse.SC_UNAUTHORIZED); response.flushBuffer(); }  @Override void commence(HttpServletRequest request, HttpServletResponse response,
            AuthenticationException ex);  }