* Created by Binary Wang on 2017-3-23.
/**
* 校验签名是否正确.
*
* @param params 需要校验的参数Map
* @param signType 签名类型,如果为空,则默认为MD5
* @param signKey 校验的签名Key
* @return true - 签名校验成功,false - 签名校验失败
*/
public static boolean checkSign(Map<String, String> params, String signType, String signKey) {
String sign = createSign(params, signType, signKey, new String[0]);
return sign.equals(params.get("sign"));
}
这个方法