1 package com.zone.weixin4j.util;
2
3 import java.io.Serializable;
4
5
6
7
8
9
10
11
12
13
14 public class AesToken implements Serializable {
15
16 private static final long serialVersionUID = -6001008896414323534L;
17
18
19
20
21 private String weixinId;
22
23
24
25 private String token;
26
27
28
29 private String aesKey;
30
31
32
33
34
35
36
37 public AesToken(String token) {
38 this(null, token, null);
39 }
40
41
42
43
44
45
46
47
48
49
50
51 public AesToken(String weixinId, String token, String aesKey) {
52 this.weixinId = weixinId;
53 this.token = token;
54 this.aesKey = aesKey;
55 }
56
57 public String getWeixinId() {
58 return weixinId;
59 }
60
61 public String getToken() {
62 return token;
63 }
64
65 public String getAesKey() {
66 return aesKey;
67 }
68
69 @Override
70 public String toString() {
71 return "AesToken [weixinId=" + weixinId + ", token=" + token
72 + ", aesKey=" + aesKey + "]";
73 }
74 }