From d66adcc04b43ac01a28c59c2649ee88685ed1849 Mon Sep 17 00:00:00 2001 From: Endi Sukma Dewata Date: Mon, 13 Aug 2012 01:31:40 -0500 Subject: Fixed REST common class dependency. The ConfigurationResponse previously has a method that uses a class that exists on the server only, creating a dependency issue since the ConfigurationResponse will be used by the client as well. The method now has been moved into a separate factory class. Ticket #259 --- .../netscape/certsrv/system/ConfigurationResponse.java | 17 ----------------- 1 file changed, 17 deletions(-) (limited to 'base/common/src/com/netscape/certsrv/system') diff --git a/base/common/src/com/netscape/certsrv/system/ConfigurationResponse.java b/base/common/src/com/netscape/certsrv/system/ConfigurationResponse.java index 489970c9c..6d3275a51 100644 --- a/base/common/src/com/netscape/certsrv/system/ConfigurationResponse.java +++ b/base/common/src/com/netscape/certsrv/system/ConfigurationResponse.java @@ -20,8 +20,6 @@ package com.netscape.certsrv.system; import java.security.cert.CertificateEncodingException; import java.util.ArrayList; import java.util.Collection; -import java.util.Enumeration; -import java.util.Vector; import javax.xml.bind.annotation.XmlAccessType; import javax.xml.bind.annotation.XmlAccessorType; @@ -32,7 +30,6 @@ import javax.xml.bind.annotation.XmlRootElement; import netscape.security.x509.X509CertImpl; import com.netscape.certsrv.apps.CMS; -import com.netscape.cms.servlet.csadmin.Cert; /** * @author alee @@ -56,20 +53,6 @@ public class ConfigurationResponse { adminCert = new SystemCertData(); } - public void setSystemCerts(Vector certs) { - systemCerts.clear(); - Enumeration e = certs.elements(); - while (e.hasMoreElements()) { - Cert cert = e.nextElement(); - SystemCertData cdata = new SystemCertData(); - cdata.setCert(cert.getCert()); - cdata.setRequest(cert.getRequest()); - cdata.setTag(cert.getCertTag()); - cdata.setCertChain(cert.getCertChain()); - systemCerts.add(cdata); - } - } - /** * @return the systemCerts */ -- cgit