|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.foxinmy.weixin4j.util.MessageUtil
public final class MessageUtil
消息工具类
| Constructor Summary | |
|---|---|
MessageUtil()
|
|
| Method Summary | |
|---|---|
static String |
aesDecrypt(String appId,
String encodingAesKey,
String encryptContent)
对AES消息解密 |
static String |
aesEncrypt(String appId,
String encodingAesKey,
String xmlContent)
对xml消息加密 |
static String |
signature(String... para)
验证微信签名 |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MessageUtil()
| Method Detail |
|---|
public static String signature(String... para)
signature - 微信加密签名,signature结合了开发者填写的token参数和请求中的timestamp参数、nonce参数
public static String aesEncrypt(String appId,
String encodingAesKey,
String xmlContent)
appId - 应用IDencodingAesKey - 加密密钥xmlContent - 原始消息体
WeixinException
public static String aesDecrypt(String appId,
String encodingAesKey,
String encryptContent)
appId - encodingAesKey - aes加密的密钥encryptContent - 加密的消息体
WeixinException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||