summaryrefslogtreecommitdiffstats
path: root/base/tps/src/org/dogtagpki/server/tps/TPSSubsystem.java
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2016-04-23 00:50:08 +0200
committerEndi S. Dewata <edewata@redhat.com>2016-05-03 01:56:54 +0200
commit0b779ffe4d29474b4f75370e4da9d7723d9bfec5 (patch)
treeb56ed632a5b8063eccbfc4df889433b7033d6bdb /base/tps/src/org/dogtagpki/server/tps/TPSSubsystem.java
parent2b5f9e1630bae2e755093447b08c2236ce8db158 (diff)
downloadpki-0b779ffe4d29474b4f75370e4da9d7723d9bfec5.tar.gz
pki-0b779ffe4d29474b4f75370e4da9d7723d9bfec5.tar.xz
pki-0b779ffe4d29474b4f75370e4da9d7723d9bfec5.zip
Renamed token status TEMP_LOST to SUSPENDED.
The token status TEMP_LOST has been renamed to SUSPENDED such that it can be used more general contexts. To simplify the transition, the CLIs and the REST API will continue to accept TEMP_LOST but it will be converted internally into SUSPENDED and a deprecation warning will be generated. https://fedorahosted.org/pki/ticket/2286
Diffstat (limited to 'base/tps/src/org/dogtagpki/server/tps/TPSSubsystem.java')
-rw-r--r--base/tps/src/org/dogtagpki/server/tps/TPSSubsystem.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/base/tps/src/org/dogtagpki/server/tps/TPSSubsystem.java b/base/tps/src/org/dogtagpki/server/tps/TPSSubsystem.java
index 008f61333..b0ffb7570 100644
--- a/base/tps/src/org/dogtagpki/server/tps/TPSSubsystem.java
+++ b/base/tps/src/org/dogtagpki/server/tps/TPSSubsystem.java
@@ -145,7 +145,7 @@ public class TPSSubsystem implements IAuthority, ISubsystem {
/**
* Return the allowed next states for a given token based on TPS configuration.
*
- * If the current state is TEMP_LOST, token will be allowed transition to either
+ * If the current state is SUSPENDED, token will be allowed transition to either
* UNINITIALIZED or ACTIVE depending on whether the token has certificates.
*
* @param tokenRecord
@@ -156,7 +156,7 @@ public class TPSSubsystem implements IAuthority, ISubsystem {
TokenStatus currentState = tokenRecord.getTokenStatus();
Collection<TokenStatus> nextStates = allowedTransitions.get(currentState);
- if (currentState == TokenStatus.TEMP_LOST) {
+ if (currentState == TokenStatus.SUSPENDED) {
Collection<TokenStatus> ns = new LinkedHashSet<TokenStatus>();