C# Class Senparc.Weixin.MP.TenPayLib.RequestHandler

Mostra file Open project: JeffreySu/WeiXinMPSDK Class Usage Examples

Protected Properties

Property Type Description
HttpContext System.Web.HttpContext
Parameters System.Collections.Hashtable

Public Methods

Method Description
CreateMd5Sign ( ) : string

创建package签名

CreateSHA1Sign ( ) : string

创建sha1签名

GetAllParameters ( ) : Hashtable
GetDebugInfo ( ) : String

获取debug信息

GetKey ( ) : string

获取密钥

GetRequestURL ( ) : string

获取package带参数的签名包

Init ( ) : void

初始化函数

ParseXML ( ) : string

输出XML

RequestHandler ( HttpContext httpContext ) : System
SetDebugInfo ( String debugInfo ) : void

设置debug信息

SetKey ( string key ) : void

设置密钥

SetParameter ( string parameter, string parameterValue ) : void

设置参数值

Protected Methods

Method Description
CreateSign ( ) : void

创建md5摘要,规则是:按参数名称a-z排序,遇到空值的参数不参加签名

GetCharset ( ) : string

Method Details

CreateMd5Sign() public method

创建package签名
public CreateMd5Sign ( ) : string
return string

CreateSHA1Sign() public method

创建sha1签名
public CreateSHA1Sign ( ) : string
return string

CreateSign() protected method

创建md5摘要,规则是:按参数名称a-z排序,遇到空值的参数不参加签名
protected CreateSign ( ) : void
return void

GetAllParameters() public method

public GetAllParameters ( ) : Hashtable
return System.Collections.Hashtable

GetCharset() protected method

protected GetCharset ( ) : string
return string

GetDebugInfo() public method

获取debug信息
public GetDebugInfo ( ) : String
return String

GetKey() public method

获取密钥
public GetKey ( ) : string
return string

GetRequestURL() public method

获取package带参数的签名包
public GetRequestURL ( ) : string
return string

Init() public method

初始化函数
public Init ( ) : void
return void

ParseXML() public method

输出XML
public ParseXML ( ) : string
return string

RequestHandler() public method

public RequestHandler ( HttpContext httpContext ) : System
httpContext System.Web.HttpContext
return System

SetDebugInfo() public method

设置debug信息
public SetDebugInfo ( String debugInfo ) : void
debugInfo String
return void

SetKey() public method

设置密钥
public SetKey ( string key ) : void
key string
return void

SetParameter() public method

设置参数值
public SetParameter ( string parameter, string parameterValue ) : void
parameter string
parameterValue string
return void

Property Details

HttpContext protected_oe property

protected HttpContext,System.Web HttpContext
return System.Web.HttpContext

Parameters protected_oe property

请求的参数
protected Hashtable,System.Collections Parameters
return System.Collections.Hashtable