/** * Send an unauthorized header back to the client * * * @param request http request * @param response http response * * @throws IOException */ public static void sendUnauthorized(HttpServletRequest request, HttpServletResponse response) throws IOException { sendUnauthorized(request, response, AUTHENTICATION_REALM); }
/** * Send an unauthorized header back to the client * * * @param response - the http response * * @throws IOException */ public static void sendUnauthorized(HttpServletResponse response) throws IOException { sendUnauthorized(null, response, AUTHENTICATION_REALM); }
/** * Send an unauthorized header back to the client * * * @param response - the http response * * @throws IOException */ public static void sendUnauthorized(HttpServletResponse response) throws IOException { sendUnauthorized(null, response, AUTHENTICATION_REALM); }
/** * Send an unauthorized header back to the client * * * @param request http request * @param response http response * * @throws IOException */ public static void sendUnauthorized(HttpServletRequest request, HttpServletResponse response) throws IOException { sendUnauthorized(request, response, AUTHENTICATION_REALM); }
/** * Send an unauthorized header back to the client * * * @param response - the http response * @param realmDescription - realm description * * @throws IOException * * @since 1.36 */ public static void sendUnauthorized(HttpServletResponse response, String realmDescription) throws IOException { sendUnauthorized(null, response, realmDescription); }
/** * Send an unauthorized header back to the client * * * @param response - the http response * @param realmDescription - realm description * * @throws IOException * * @since 1.36 */ public static void sendUnauthorized(HttpServletResponse response, String realmDescription) throws IOException { sendUnauthorized(null, response, realmDescription); }
/** * Sends an unauthorized error back to client. * * * @param request http request * @param response http response * * @throws IOException */ protected void sendUnauthorizedError(HttpServletRequest request, HttpServletResponse response) throws IOException { HttpUtil.sendUnauthorized(response, configuration.getRealmDescription()); }
/** * Sends an error for a failed authentication back to client. * * * @param request http request * @param response http response * * @throws IOException */ protected void sendFailedAuthenticationError(HttpServletRequest request, HttpServletResponse response) throws IOException { HttpUtil.sendUnauthorized(request, response, configuration.getRealmDescription()); }
/** * Sends an error for a failed authentication back to client. * * * @param request http request * @param response http response * * @throws IOException */ protected void sendFailedAuthenticationError(HttpServletRequest request, HttpServletResponse response) throws IOException { HttpUtil.sendUnauthorized(request, response, configuration.getRealmDescription()); }
/** * Sends an unauthorized error back to client. * * * @param request http request * @param response http response * * @throws IOException */ protected void sendUnauthorizedError(HttpServletRequest request, HttpServletResponse response) throws IOException { HttpUtil.sendUnauthorized(response, configuration.getRealmDescription()); }
/** * Sends an unauthorized error back to client. * * * @param request http request * @param response http response * * @throws IOException */ protected void sendUnauthorizedError(HttpServletRequest request, HttpServletResponse response) throws IOException { HttpUtil.sendUnauthorized(request, response, configuration.getRealmDescription()); }
/** * Sends an unauthorized error back to client. * * * @param request http request * @param response http response * * @throws IOException */ protected void sendUnauthorizedError(HttpServletRequest request, HttpServletResponse response) throws IOException { HttpUtil.sendUnauthorized(request, response, configuration.getRealmDescription()); }
/** * Sends unauthorized instead of forbidden for svn clients, because the * svn client prompts again for authentication. * * * @param request http request * @param response http response * * @throws IOException */ @Override protected void sendFailedAuthenticationError(HttpServletRequest request, HttpServletResponse response) throws IOException { if (SvnUtil.isSvnClient(request)) { HttpUtil.sendUnauthorized(response, configuration.getRealmDescription()); } else { super.sendFailedAuthenticationError(request, response); } } }