1 public void authWithHttpServletRequest(HttpServletRequest request, String username, String password) {
2 try {
3 request.login(username, password);
4 } catch (ServletException e) {
5 LOGGER.error("Error while login ", e);
6 }
7 }