C# Class Senparc.Weixin.MP.CheckSignature

签名验证类
Mostrar archivo Open project: JeffreySu/WeiXinMPSDK

Public Methods

Method Description
Check ( string signature, PostModel postModel ) : bool

检查签名是否正确

Check ( string signature, string timestamp, string nonce, string token = null ) : bool

检查签名是否正确

GetSignature ( PostModel postModel ) : string

返回正确的签名

GetSignature ( string timestamp, string nonce, string token = null ) : string

返回正确的签名

Method Details

Check() public static method

检查签名是否正确
public static Check ( string signature, PostModel postModel ) : bool
signature string
postModel Senparc.Weixin.MP.Entities.Request.PostModel 需要提供:Timestamp、Nonce、Token
return bool

Check() public static method

检查签名是否正确
public static Check ( string signature, string timestamp, string nonce, string token = null ) : bool
signature string
timestamp string
nonce string
token string
return bool

GetSignature() public static method

返回正确的签名
public static GetSignature ( PostModel postModel ) : string
postModel Senparc.Weixin.MP.Entities.Request.PostModel 需要提供:Timestamp、Nonce、Token
return string

GetSignature() public static method

返回正确的签名
public static GetSignature ( string timestamp, string nonce, string token = null ) : string
timestamp string
nonce string
token string
return string