cn.gtmap.estateplat.core.support.cas
类 CasService

java.lang.Object
  继承者 cn.gtmap.estateplat.core.support.cas.CasService

@Service
public class CasService
extends Object

版本:
1.0, 2016/10/18
作者:
shenjian

构造方法摘要
CasService()
           
 
方法摘要
 byte[] doGetRequest(String url)
           
 byte[] doPostRequest(String url, List<org.apache.http.NameValuePair> postParams)
           
 Boolean loginCas(String username, String password)
           
 Boolean loginCasByIdNo(String username, String password, String idNo)
           
 void loginOutCas(String casLogoutUrl)
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

CasService

public CasService()
方法详细信息

loginCas

public Boolean loginCas(String username,
                        String password)
                 throws IOException
参数:
username - 用户名
password - 密码
返回:
是否成功
抛出:
IOException

loginOutCas

public void loginOutCas(String casLogoutUrl)
                 throws Exception
参数:
casLogoutUrl - cas登出地址
抛出:
Exception

doGetRequest

public byte[] doGetRequest(String url)
                    throws IOException
参数:
url - url地址
返回:
抛出:
IOException

doPostRequest

public byte[] doPostRequest(String url,
                            List<org.apache.http.NameValuePair> postParams)
                     throws IOException
参数:
url - 页面地址
返回:
抛出:
IOException

loginCasByIdNo

public Boolean loginCasByIdNo(String username,
                              String password,
                              String idNo)
                       throws IOException
参数:
username - 用户名
password - 密码
idNo - 身份证号
返回:
是否成功
抛出:
IOException


Copyright © 2015–2017 cn.gtmap. All rights reserved.