summaryrefslogtreecommitdiffstats
path: root/base/common/src/com/netscape/certsrv/tps
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2013-12-16 02:24:44 -0500
committerEndi S. Dewata <edewata@redhat.com>2014-01-28 11:54:06 -0500
commite76084766b13a1f9c2f0c0050c13c4aa2e0fb183 (patch)
tree96c6d402d3aad4bf1c8fbf56e22027940d46d16b /base/common/src/com/netscape/certsrv/tps
parent352040246bbd96bc59a2e2b9156c65837a6c02b7 (diff)
downloadpki-e76084766b13a1f9c2f0c0050c13c4aa2e0fb183.tar.gz
pki-e76084766b13a1f9c2f0c0050c13c4aa2e0fb183.tar.xz
pki-e76084766b13a1f9c2f0c0050c13c4aa2e0fb183.zip
Added dialog for adding TPS tokens.
A new dialog box has been added for adding TPS token. A separate token ID attribute has been added to the REST service as required by Backbone. Ticket #654
Diffstat (limited to 'base/common/src/com/netscape/certsrv/tps')
-rw-r--r--base/common/src/com/netscape/certsrv/tps/token/TokenData.java52
1 files changed, 52 insertions, 0 deletions
diff --git a/base/common/src/com/netscape/certsrv/tps/token/TokenData.java b/base/common/src/com/netscape/certsrv/tps/token/TokenData.java
index cbd8275b2..3c6b2d7ba 100644
--- a/base/common/src/com/netscape/certsrv/tps/token/TokenData.java
+++ b/base/common/src/com/netscape/certsrv/tps/token/TokenData.java
@@ -51,6 +51,7 @@ public class TokenData {
}
String id;
+ String tokenID;
String userID;
String status;
String reason;
@@ -70,6 +71,15 @@ public class TokenData {
this.id = id;
}
+ @XmlElement(name="TokenID")
+ public String getTokenID() {
+ return tokenID;
+ }
+
+ public void setTokenID(String tokenID) {
+ this.tokenID = tokenID;
+ }
+
@XmlElement(name="UserID")
public String getUserID() {
return userID;
@@ -146,8 +156,15 @@ public class TokenData {
public int hashCode() {
final int prime = 31;
int result = 1;
+ result = prime * result + ((appletID == null) ? 0 : appletID.hashCode());
+ result = prime * result + ((createTimestamp == null) ? 0 : createTimestamp.hashCode());
result = prime * result + ((id == null) ? 0 : id.hashCode());
+ result = prime * result + ((keyInfo == null) ? 0 : keyInfo.hashCode());
result = prime * result + ((link == null) ? 0 : link.hashCode());
+ result = prime * result + ((modifyTimestamp == null) ? 0 : modifyTimestamp.hashCode());
+ result = prime * result + ((reason == null) ? 0 : reason.hashCode());
+ result = prime * result + ((status == null) ? 0 : status.hashCode());
+ result = prime * result + ((tokenID == null) ? 0 : tokenID.hashCode());
result = prime * result + ((userID == null) ? 0 : userID.hashCode());
return result;
}
@@ -161,16 +178,51 @@ public class TokenData {
if (getClass() != obj.getClass())
return false;
TokenData other = (TokenData) obj;
+ if (appletID == null) {
+ if (other.appletID != null)
+ return false;
+ } else if (!appletID.equals(other.appletID))
+ return false;
+ if (createTimestamp == null) {
+ if (other.createTimestamp != null)
+ return false;
+ } else if (!createTimestamp.equals(other.createTimestamp))
+ return false;
if (id == null) {
if (other.id != null)
return false;
} else if (!id.equals(other.id))
return false;
+ if (keyInfo == null) {
+ if (other.keyInfo != null)
+ return false;
+ } else if (!keyInfo.equals(other.keyInfo))
+ return false;
if (link == null) {
if (other.link != null)
return false;
} else if (!link.equals(other.link))
return false;
+ if (modifyTimestamp == null) {
+ if (other.modifyTimestamp != null)
+ return false;
+ } else if (!modifyTimestamp.equals(other.modifyTimestamp))
+ return false;
+ if (reason == null) {
+ if (other.reason != null)
+ return false;
+ } else if (!reason.equals(other.reason))
+ return false;
+ if (status == null) {
+ if (other.status != null)
+ return false;
+ } else if (!status.equals(other.status))
+ return false;
+ if (tokenID == null) {
+ if (other.tokenID != null)
+ return false;
+ } else if (!tokenID.equals(other.tokenID))
+ return false;
if (userID == null) {
if (other.userID != null)
return false;