diff options
author | Endi S. Dewata <edewata@redhat.com> | 2016-04-23 05:28:10 +0200 |
---|---|---|
committer | Endi S. Dewata <edewata@redhat.com> | 2016-05-03 01:57:34 +0200 |
commit | 1b8f5230d01499d97b874d4912c5c1a13e389c5f (patch) | |
tree | 761b0f7d2b2de2e58862fe81af1bee219e078f47 /base/tps/src/org/dogtagpki/server/tps/processor/TPSEnrollProcessor.java | |
parent | 0b779ffe4d29474b4f75370e4da9d7723d9bfec5 (diff) | |
download | pki-1b8f5230d01499d97b874d4912c5c1a13e389c5f.tar.gz pki-1b8f5230d01499d97b874d4912c5c1a13e389c5f.tar.xz pki-1b8f5230d01499d97b874d4912c5c1a13e389c5f.zip |
Renamed token status UNINITIALIZED to READY.
The token status UNINITIALIZED has been renamed to READY for
clarity.
To simplify the transition, the CLIs and the REST API will continue
to accept UNINITIALIZED but it will be converted internally into
READY and a deprecation warning will be generated.
https://fedorahosted.org/pki/ticket/2288
Diffstat (limited to 'base/tps/src/org/dogtagpki/server/tps/processor/TPSEnrollProcessor.java')
-rw-r--r-- | base/tps/src/org/dogtagpki/server/tps/processor/TPSEnrollProcessor.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/base/tps/src/org/dogtagpki/server/tps/processor/TPSEnrollProcessor.java b/base/tps/src/org/dogtagpki/server/tps/processor/TPSEnrollProcessor.java index 19df79f53..4e8c8abfb 100644 --- a/base/tps/src/org/dogtagpki/server/tps/processor/TPSEnrollProcessor.java +++ b/base/tps/src/org/dogtagpki/server/tps/processor/TPSEnrollProcessor.java @@ -319,7 +319,7 @@ public class TPSEnrollProcessor extends TPSProcessor { } } else { CMS.debug(method + " token does not exist"); - tokenRecord.setStatus("uninitialized"); + tokenRecord.setStatus("ready"); checkAllowUnknownToken(TPSEngine.OP_FORMAT_PREFIX); } @@ -368,7 +368,7 @@ public class TPSEnrollProcessor extends TPSProcessor { if (!isTokenPresent) { try { - tps.tdb.tdbAddTokenEntry(tokenRecord, "uninitialized"); + tps.tdb.tdbAddTokenEntry(tokenRecord, "ready"); } catch (Exception e) { String failMsg = "add token failure"; logMsg = failMsg + ":" + e.toString(); @@ -1031,7 +1031,7 @@ public class TPSEnrollProcessor extends TPSProcessor { //same token logMsg = "found current token entry"; CMS.debug(method + ":" + logMsg); - if (tokenRecord.getStatus().equals("uninitialized")) { + if (tokenRecord.getStatus().equals("ready")) { // this is the current token if (tokenRecords.size() == 1) { // the current token is the only token owned by the user |