Package net.vinant.idp4java.base

Examples of net.vinant.idp4java.base.BaseAuthenticationHandler


 
  @Override
  public String handle(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
    HttpSession session = request.getSession();
    if(isAuthenticationRequest(request)){
      BaseAuthenticationHandler authenticationHandler = ((SimpleServiceProxy)getServiceProxy()).getAuthenticationHandler();
      Object u = request.getParameter("username");
      Object p = request.getParameter("password");
      String username = u!=null?(String)u:null;
      String password = p!=null?(String)p:null;
      IUser authorizedUser = authenticationHandler.authenticate(username, password);
      if(authorizedUser == null){
        //response.sendRedirect("login.jsp");
        request.getRequestDispatcher("/login").forward(request, response);
        return null;
      }else{
View Full Code Here

TOP

Related Classes of net.vinant.idp4java.base.BaseAuthenticationHandler

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.