Package com.github.ebnew.ki4so.core.authentication

Examples of com.github.ebnew.ki4so.core.authentication.AbstractParameter


      }
    }
   
    //如果是抽象的参数凭据对象,则解析其它的参数。
    if(credential instanceof AbstractParameter){
      AbstractParameter abstractParameter = (AbstractParameter)credential;
      //将所有的参数设置到参数列表中,方便以后处理使用。
      abstractParameter.setParameters(WebUtils.getParametersStartingWith(request, null));
      //如果参数列表中无service,则从session中获取。
      if(abstractParameter.getParameterValue(WebConstants.SERVICE_PARAM_NAME)==null){
        if(request.getSession().getAttribute(WebConstants.KI4SO_SERVICE_KEY_IN_SESSION)!=null){
          abstractParameter.getParameters().put(WebConstants.SERVICE_PARAM_NAME, request.getSession().getAttribute(WebConstants.KI4SO_SERVICE_KEY_IN_SESSION));
        }
      }
    }
    return credential;
  }
View Full Code Here

TOP

Related Classes of com.github.ebnew.ki4so.core.authentication.AbstractParameter

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.