Package tifauv.jplop.core.auth

Examples of tifauv.jplop.core.auth.Authenticator


        return;
      }

      // OK, now we are sure we got all the required fields
      m_logger.info("Logon request for user [" + username + "].");
      Authenticator authn = new Authenticator(username, password);
      if (authn.authenticate()) {
        p_request.getSession().removeAttribute(CommonConstants.NICK_SESSION_ATTR);
        p_request.getSession().setAttribute(CommonConstants.USER_SESSION_ATTR, authn.getUser());
        getServletContext().getRequestDispatcher(SUCCESS_PAGE).forward(p_request, p_response);
      }
      else {
        m_logger.warn("Authentication failed for user [" + username + "].");
        p_request.setAttribute(CommonConstants.ERROR_REQUEST_ATTR, "L'authentification a échoué.");
View Full Code Here

TOP

Related Classes of tifauv.jplop.core.auth.Authenticator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.