Package net.vinant.idp4java.base

Examples of net.vinant.idp4java.base.BaseAuthenticationHandler.authenticate()


      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
Copyright © 2018 www.massapi.com. 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.