summaryrefslogtreecommitdiffstats
path: root/base/tps
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2017-01-21 00:58:28 +0100
committerEndi S. Dewata <edewata@redhat.com>2017-01-21 03:26:55 +0100
commit5e39d36196f06ebaa8dcf943ec4c19bcbb9c25b0 (patch)
tree78a2af00949483088ca2c86a689cec9ce406d53d /base/tps
parent6ba7d68c7474e5000c6fbdc4d6cd97d0b291033b (diff)
downloadpki-5e39d36196f06ebaa8dcf943ec4c19bcbb9c25b0.tar.gz
pki-5e39d36196f06ebaa8dcf943ec4c19bcbb9c25b0.tar.xz
pki-5e39d36196f06ebaa8dcf943ec4c19bcbb9c25b0.zip
Refactored ConfigurationRequest.TOKEN_DEFAULT.
The ConfigurationRequest.TOKEN_DEFAULT has been replaced with CryptoUtil.INTERNAL_TOKEN_FULL_NAME since they are identical. https://fedorahosted.org/pki/ticket/2556
Diffstat (limited to 'base/tps')
-rw-r--r--base/tps/src/org/dogtagpki/server/tps/rest/TPSInstallerService.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/base/tps/src/org/dogtagpki/server/tps/rest/TPSInstallerService.java b/base/tps/src/org/dogtagpki/server/tps/rest/TPSInstallerService.java
index 8fd24c8d8..7a2228879 100644
--- a/base/tps/src/org/dogtagpki/server/tps/rest/TPSInstallerService.java
+++ b/base/tps/src/org/dogtagpki/server/tps/rest/TPSInstallerService.java
@@ -31,6 +31,7 @@ import com.netscape.certsrv.base.PKIException;
import com.netscape.certsrv.system.ConfigurationRequest;
import com.netscape.certsrv.system.SystemCertData;
import com.netscape.cms.servlet.csadmin.ConfigurationUtils;
+import com.netscape.cmsutil.crypto.CryptoUtil;
/**
* @author alee
@@ -50,7 +51,7 @@ public class TPSInstallerService extends SystemConfigService {
// get token prefix, if applicable
String tokPrefix = "";
- if (!request.getToken().equals(ConfigurationRequest.TOKEN_DEFAULT) &&
+ if (!request.getToken().equals(CryptoUtil.INTERNAL_TOKEN_FULL_NAME) &&
!request.getToken().equals("internal")) {
tokPrefix = request.getToken() + ":";
}