m2u-upass-core / src / my / com / upass / TokenBean.java @ 56:c05a77f786c8
History | View | Annotate | Download (4.67 KB)
1 |
/**
|
---|---|
2 |
*
|
3 |
*/
|
4 |
package my.com.upass; |
5 |
|
6 |
import java.util.Date; |
7 |
|
8 |
/**
|
9 |
* @author Administrator
|
10 |
*
|
11 |
*/
|
12 |
public class TokenBean { |
13 |
|
14 |
/*
|
15 |
* V_SERIAL_NO NOT NULL VARCHAR2(22)
|
16 |
V_USER_ID NOT NULL NUMBER(9)
|
17 |
V_DP_MODEL VARCHAR2(5)
|
18 |
V_DP_AUTH_MODE VARCHAR2(2)
|
19 |
V_DP_CIPHERTEXT NOT NULL BLOB
|
20 |
V_BAK_CIPHERTEXT NOT NULL BLOB
|
21 |
V_DP_ASSIGNED NOT NULL NUMBER(1)
|
22 |
V_DATE_ASSIGNED TIMESTAMP(6)
|
23 |
V_DATE_FIRST_USED TIMESTAMP(6)
|
24 |
V_DATE_LAST_USED TIMESTAMP(6)
|
25 |
V_USE_COUNT NOT NULL NUMBER(6)
|
26 |
V_ERROR_COUNT NOT NULL NUMBER(2)
|
27 |
V_DP_STATE NOT NULL NUMBER(1)
|
28 |
V_BATCH_NO NOT NULL NUMBER(9)
|
29 |
*/
|
30 |
|
31 |
private String vserialNumber; |
32 |
private long vuserID; |
33 |
private String vdpModel; |
34 |
private String vdpAuthMode; |
35 |
private byte[] vdpCipherText; |
36 |
private byte[] vbkCipherText; |
37 |
private int vassigned; //unused, pls refer to VState on assign status |
38 |
private Date vdateAssigned; |
39 |
private Date vdateFirstUsed; |
40 |
private Date vdateLastUsed; |
41 |
private int vuseCount; |
42 |
private int verrorCount; |
43 |
private int vstate; |
44 |
private String vbatchNo; |
45 |
|
46 |
/**
|
47 |
* @return the vSerialNumber
|
48 |
*/
|
49 |
public String getVserialNumber() { |
50 |
return vserialNumber;
|
51 |
} |
52 |
/**
|
53 |
* @param serialNumber the vSerialNumber to set
|
54 |
*/
|
55 |
public void setVserialNumber(String serialNumber) { |
56 |
vserialNumber = serialNumber; |
57 |
} |
58 |
/**
|
59 |
* @return the vUserID
|
60 |
*/
|
61 |
public long getVuserID() { |
62 |
return vuserID;
|
63 |
} |
64 |
/**
|
65 |
* @param userID the vUserID to set
|
66 |
*/
|
67 |
public void setVuserID(long userID) { |
68 |
vuserID = userID; |
69 |
} |
70 |
/**
|
71 |
* @return the vDPModel
|
72 |
*/
|
73 |
public String getVdpModel() { |
74 |
return vdpModel;
|
75 |
} |
76 |
/**
|
77 |
* @param model the vDPModel to set
|
78 |
*/
|
79 |
public void setVdpModel(String model) { |
80 |
vdpModel = model; |
81 |
} |
82 |
/**
|
83 |
* @return the vDPAuthMode
|
84 |
*/
|
85 |
public String getVdpAuthMode() { |
86 |
return vdpAuthMode;
|
87 |
} |
88 |
/**
|
89 |
* @param authMode the vDPAuthMode to set
|
90 |
*/
|
91 |
public void setVdpAuthMode(String authMode) { |
92 |
vdpAuthMode = authMode; |
93 |
} |
94 |
/**
|
95 |
* @return the vDPCipherText
|
96 |
*/
|
97 |
public byte[] getVdpCipherText() { |
98 |
return vdpCipherText;
|
99 |
} |
100 |
/**
|
101 |
* @param cipherText the vDPCipherText to set
|
102 |
*/
|
103 |
public void setVdpCipherText(byte[] cipherText) { |
104 |
vdpCipherText = cipherText; |
105 |
} |
106 |
/**
|
107 |
* @return the vBKCipherText
|
108 |
*/
|
109 |
public byte[] getVbkCipherText() { |
110 |
return vbkCipherText;
|
111 |
} |
112 |
/**
|
113 |
* @param cipherText the vBKCipherText to set
|
114 |
*/
|
115 |
public void setVbkCipherText(byte[] cipherText) { |
116 |
vbkCipherText = cipherText; |
117 |
} |
118 |
/**
|
119 |
* @return the vAssigned
|
120 |
*/
|
121 |
public int getVassigned() { |
122 |
return vassigned;
|
123 |
} |
124 |
/**
|
125 |
* @param assigned the vAssigned to set
|
126 |
*/
|
127 |
public void setVassigned(int assigned) { |
128 |
vassigned = assigned; |
129 |
} |
130 |
/**
|
131 |
* @return the vDateAssigned
|
132 |
*/
|
133 |
public Date getVdateAssigned() { |
134 |
return vdateAssigned;
|
135 |
} |
136 |
/**
|
137 |
* @param dateAssigned the vDateAssigned to set
|
138 |
*/
|
139 |
public void setVdateAssigned(Date dateAssigned) { |
140 |
vdateAssigned = dateAssigned; |
141 |
} |
142 |
/**
|
143 |
* @return the vDateFirstUsed
|
144 |
*/
|
145 |
public Date getVdateFirstUsed() { |
146 |
return vdateFirstUsed;
|
147 |
} |
148 |
/**
|
149 |
* @param dateFirstUsed the vDateFirstUsed to set
|
150 |
*/
|
151 |
public void setVdateFirstUsed(Date dateFirstUsed) { |
152 |
vdateFirstUsed = dateFirstUsed; |
153 |
} |
154 |
/**
|
155 |
* @return the vDateLastUsed
|
156 |
*/
|
157 |
public Date getVdateLastUsed() { |
158 |
return vdateLastUsed;
|
159 |
} |
160 |
/**
|
161 |
* @param dateLastUsed the vDateLastUsed to set
|
162 |
*/
|
163 |
public void setVdateLastUsed(Date dateLastUsed) { |
164 |
vdateLastUsed = dateLastUsed; |
165 |
} |
166 |
/**
|
167 |
* @return the vUseCount
|
168 |
*/
|
169 |
public int getVuseCount() { |
170 |
return vuseCount;
|
171 |
} |
172 |
/**
|
173 |
* @param useCount the vUseCount to set
|
174 |
*/
|
175 |
public void setVuseCount(int useCount) { |
176 |
vuseCount = useCount; |
177 |
} |
178 |
/**
|
179 |
* @return the vErrorCount
|
180 |
*/
|
181 |
public int getVerrorCount() { |
182 |
return verrorCount;
|
183 |
} |
184 |
/**
|
185 |
* @param errorCount the vErrorCount to set
|
186 |
*/
|
187 |
public void setVerrorCount(int errorCount) { |
188 |
verrorCount = errorCount; |
189 |
} |
190 |
/**
|
191 |
* @return the vState
|
192 |
*/
|
193 |
public int getVstate() { |
194 |
return vstate;
|
195 |
} |
196 |
/**
|
197 |
* @param state the vState to set
|
198 |
*/
|
199 |
public void setVstate(int state) { |
200 |
vstate = state; |
201 |
} |
202 |
/**
|
203 |
* @return the vBatchNo
|
204 |
*/
|
205 |
public String getVbatchNo() { |
206 |
return vbatchNo;
|
207 |
} |
208 |
/**
|
209 |
* @param batchNo the vBatchNo to set
|
210 |
*/
|
211 |
public void setVbatchNo(String batchNo) { |
212 |
vbatchNo = batchNo; |
213 |
} |
214 |
} |