From 5e39d36196f06ebaa8dcf943ec4c19bcbb9c25b0 Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Sat, 21 Jan 2017 00:58:28 +0100 Subject: 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 --- base/tps/src/org/dogtagpki/server/tps/rest/TPSInstallerService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'base/tps/src') 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() + ":"; } -- cgit