com.foxinmy.weixin4j.util
Class AesToken

java.lang.Object
  extended by com.foxinmy.weixin4j.util.AesToken
All Implemented Interfaces:
Serializable

public class AesToken
extends Object
implements Serializable

aes & token

Since:
JDK 1.6
Author:
jinyu(foxinmy@gmail.com)
See Also:
, Serialized Form

Constructor Summary
AesToken(String token)
          一般为明文模式
AesToken(String weixinId, String token, String aesKey)
          一般为AES加密模式
 
Method Summary
 String getAesKey()
           
 String getToken()
           
 String getWeixinId()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AesToken

public AesToken(String token)
一般为明文模式

Parameters:
token - 开发者的Token

AesToken

public AesToken(String weixinId,
                String token,
                String aesKey)
一般为AES加密模式

Parameters:
weixinId - 公众号的应用ID(原始id/appid/corpid)
token - 开发者Token
aesKey - 解密的EncodingAESKey
Method Detail

getWeixinId

public String getWeixinId()

getToken

public String getToken()

getAesKey

public String getAesKey()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2014–2017. All rights reserved.