com.github.sd4324530.fastweixin.util
类 SignUtil

java.lang.Object
  继承者 com.github.sd4324530.fastweixin.util.SignUtil

public final class SignUtil
extends Object

绑定服务器工具类

作者:
peiyu

方法摘要
static boolean checkSignature(String token, String signature, String timestamp, String nonce)
          认证微信,可以参见微信开发者文档
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

方法详细信息

checkSignature

public static boolean checkSignature(String token,
                                     String signature,
                                     String timestamp,
                                     String nonce)
认证微信,可以参见微信开发者文档

参数:
token - 我们自己设定的token值
signature - 微信传来的变量
timestamp - 微信传来的变量
nonce - 微信传来的变量
返回:
是否合法


Copyright © 2017. All rights reserved.