summaryrefslogtreecommitdiffstats
path: root/base/common/src/com/netscape/certsrv/tps
diff options
context:
space:
mode:
authorJack Magne <jmagne@dhcp-16-213.sjc.redhat.com>2014-08-20 11:43:56 -0700
committerJack Magne <jmagne@dhcp-16-213.sjc.redhat.com>2014-09-02 12:12:01 -0700
commit99e6330ce13e55ac325d76bdc33f1b1b00cba5d3 (patch)
tree5fa47b810a5893c21d9314f1717dd4a018c61811 /base/common/src/com/netscape/certsrv/tps
parent80a74e52da5ff1918c2c47f8e0329decff88671e (diff)
downloadpki-99e6330ce13e55ac325d76bdc33f1b1b00cba5d3.tar.gz
pki-99e6330ce13e55ac325d76bdc33f1b1b00cba5d3.tar.xz
pki-99e6330ce13e55ac325d76bdc33f1b1b00cba5d3.zip
Recovery and Renewal feature:
1. Basic token key recovery functionality is there. 2. Tested with mostly the "damaged" scenerio. The low level code that writes the recovered certs to the token works and has been tested with a real token. Some of the other more obscure cases need some more testing, for instance, the temporary on hold scenario. 3. Renewal has been tested with a real token to work. 4. Much of the complex code to write cert objects and key objects, as well as importing recovered keys, has been centralized to a method. This leaves the calling code simpler and easier to trouble shoot. 5. Added a method to check token operation transition states. 6. Fixed an issue with formatting a blank token I introduced. 7. Fixed a few issues with updating certificate records for a token that were discovered. 8. Added tps code to retrieve a certificate for the recovery case. 9. Minor Review fixes.
Diffstat (limited to 'base/common/src/com/netscape/certsrv/tps')
-rw-r--r--base/common/src/com/netscape/certsrv/tps/token/TokenStatus.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/base/common/src/com/netscape/certsrv/tps/token/TokenStatus.java b/base/common/src/com/netscape/certsrv/tps/token/TokenStatus.java
index 3c6d349b3..b85f9eee2 100644
--- a/base/common/src/com/netscape/certsrv/tps/token/TokenStatus.java
+++ b/base/common/src/com/netscape/certsrv/tps/token/TokenStatus.java
@@ -51,4 +51,8 @@ public enum TokenStatus {
public static TokenStatus fromInt(Integer value) {
return map.get(value);
}
+
+ public int toInt() {
+ return value.intValue();
+ }
}