Package org.hamster.weixinmp.dao.entity.auth

Examples of org.hamster.weixinmp.dao.entity.auth.WxAuthReq


    return result;
  }

  public boolean validateAuth(String signature, String timestamp,
      String nonce, String echostr) throws WxException {
    WxAuthReq authReq = new WxAuthReq();
    authReq.setCreatedDate(new Date());
    authReq.setSignature(signature);
    authReq.setTimestamp(timestamp);
    authReq.setNonce(nonce);
    authReq.setEchostr(echostr);

    String excepted = hash(getStringToHash(timestamp, nonce,
        config.getToken()));

    if (signature == null || !signature.equals(excepted)) {
View Full Code Here


  private WxXmlUtil() {
  }

  public static WxAuthReq getAuthReq(String signature, String timestamp,
      String nonce, String echostr) {
    WxAuthReq result = new WxAuthReq();
    result.setSignature(signature);
    result.setTimestamp(timestamp);
    result.setNonce(nonce);
    result.setEchostr(echostr);
    return result;
  }
View Full Code Here

TOP

Related Classes of org.hamster.weixinmp.dao.entity.auth.WxAuthReq

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.