m2u-upass-core / src / my / com / upass / pojo / TacBean.java @ 18:78fbff99ec6c
History | View | Annotate | Download (2.88 KB)
1 |
/**
|
---|---|
2 |
* Copyright (M) 2010 Penril Datability (M) Sdn Bhd All rights reserved.
|
3 |
*
|
4 |
* This software is copyrighted. Under the copyright laws, this software
|
5 |
* may not be copied, in whole or in part, without prior written consent
|
6 |
* of Penril Datability (M) Sdn Bhd or its assignees. This software is
|
7 |
* provided under the terms of a license between Penril Datability (M)
|
8 |
* Sdn Bhd and the recipient, and its use is subject to the terms of that
|
9 |
* license.
|
10 |
*/
|
11 |
package my.com.upass.pojo; |
12 |
|
13 |
import java.io.Serializable; |
14 |
import java.util.Date; |
15 |
|
16 |
/**
|
17 |
*
|
18 |
* PROGRAMMER: Danniell
|
19 |
* CHANGE-NO:
|
20 |
* TASK-NO:
|
21 |
* DATE CREATED: Oct 8, 2011
|
22 |
* TAG AS:
|
23 |
* REASON(S):
|
24 |
* MODIFICATION:
|
25 |
*/
|
26 |
|
27 |
/**
|
28 |
* <Class description>
|
29 |
*/
|
30 |
public class TacBean implements Serializable { |
31 |
|
32 |
private static final long serialVersionUID = 1L; |
33 |
|
34 |
private UserBean upassUser;
|
35 |
private long userID; |
36 |
private String cipherText; |
37 |
private int state; |
38 |
private Date dateCreated; |
39 |
private Date dateFirstUsed; |
40 |
private Date dateLastUsed; |
41 |
private int useCount; |
42 |
private int errorCount; |
43 |
private String sessionId; |
44 |
|
45 |
private String nonce; // a nonce value for additional securiy |
46 |
|
47 |
//
|
48 |
|
49 |
public void setUpassUser(UserBean upassUser) { |
50 |
this.upassUser = upassUser;
|
51 |
} |
52 |
|
53 |
/**
|
54 |
* @return the upassUser
|
55 |
*/
|
56 |
public UserBean getUpassUser() {
|
57 |
return upassUser;
|
58 |
} |
59 |
|
60 |
// merging with TacBean
|
61 |
public TacBean() {
|
62 |
// super();
|
63 |
} |
64 |
|
65 |
public String getNonce() { |
66 |
return nonce;
|
67 |
} |
68 |
|
69 |
public void setNonce(String nonce) { |
70 |
this.nonce = nonce;
|
71 |
} |
72 |
|
73 |
public long getUserID() { |
74 |
return userID;
|
75 |
} |
76 |
|
77 |
public void setUserID(long userID) { |
78 |
this.userID = userID;
|
79 |
} |
80 |
|
81 |
public String getCipherText() { |
82 |
return cipherText;
|
83 |
} |
84 |
|
85 |
public void setCipherText(String cipherText) { |
86 |
this.cipherText = cipherText;
|
87 |
} |
88 |
|
89 |
public int getState() { |
90 |
return state;
|
91 |
} |
92 |
|
93 |
public void setState(int state) { |
94 |
this.state = state;
|
95 |
} |
96 |
|
97 |
public Date getDateCreated() { |
98 |
return dateCreated;
|
99 |
} |
100 |
|
101 |
public void setDateCreated(Date dateCreated) { |
102 |
this.dateCreated = dateCreated;
|
103 |
} |
104 |
|
105 |
public Date getDateFirstUsed() { |
106 |
return dateFirstUsed;
|
107 |
} |
108 |
|
109 |
public void setDateFirstUsed(Date dateFirstUsed) { |
110 |
this.dateFirstUsed = dateFirstUsed;
|
111 |
} |
112 |
|
113 |
public Date getDateLastUsed() { |
114 |
return dateLastUsed;
|
115 |
} |
116 |
|
117 |
public void setDateLastUsed(Date dateLastUsed) { |
118 |
this.dateLastUsed = dateLastUsed;
|
119 |
} |
120 |
|
121 |
public int getUseCount() { |
122 |
return useCount;
|
123 |
} |
124 |
|
125 |
public void setUseCount(int useCount) { |
126 |
this.useCount = useCount;
|
127 |
} |
128 |
|
129 |
public int getErrorCount() { |
130 |
return errorCount;
|
131 |
} |
132 |
|
133 |
public void setErrorCount(int errorCount) { |
134 |
this.errorCount = errorCount;
|
135 |
} |
136 |
|
137 |
/**
|
138 |
* @return the sessionId
|
139 |
*/
|
140 |
public String getSessionId() { |
141 |
return sessionId;
|
142 |
} |
143 |
|
144 |
/**
|
145 |
* @param sessionId
|
146 |
* the sessionId to set
|
147 |
*/
|
148 |
public void setSessionId(String sessionId) { |
149 |
this.sessionId = sessionId;
|
150 |
} |
151 |
} |