C# Class Senparc.Weixin.MP.CheckSignature

签名验证类
Afficher le fichier Open project: JeffreySu/WeiXinMPSDK

Méthodes publiques

Méthode 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 méthode

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

Check() public static méthode

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

GetSignature() public static méthode

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

GetSignature() public static méthode

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