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 --- .../common/src/com/netscape/certsrv/system/ConfigurationRequest.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'base/common/src/com') diff --git a/base/common/src/com/netscape/certsrv/system/ConfigurationRequest.java b/base/common/src/com/netscape/certsrv/system/ConfigurationRequest.java index cd9d3c8ba..2ac1f5a15 100644 --- a/base/common/src/com/netscape/certsrv/system/ConfigurationRequest.java +++ b/base/common/src/com/netscape/certsrv/system/ConfigurationRequest.java @@ -28,6 +28,8 @@ import javax.xml.bind.annotation.XmlRootElement; import javax.xml.bind.annotation.adapters.XmlAdapter; import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; +import com.netscape.cmsutil.crypto.CryptoUtil; + /** * @author alee * @@ -37,7 +39,6 @@ import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; public class ConfigurationRequest { //defaults - public static final String TOKEN_DEFAULT = "Internal Key Storage Token"; public static final String NEW_DOMAIN = "newdomain"; public static final String EXISTING_DOMAIN = "existingdomain"; public static final String NEW_SUBDOMAIN = "newsubdomain"; @@ -45,7 +46,7 @@ public class ConfigurationRequest { @XmlElement protected String pin; - @XmlElement(defaultValue=TOKEN_DEFAULT) + @XmlElement(defaultValue=CryptoUtil.INTERNAL_TOKEN_FULL_NAME) protected String token; @XmlElement -- cgit