summaryrefslogtreecommitdiffstats
path: root/base/common/src/com/netscape/certsrv/cert/CertClient.java
diff options
context:
space:
mode:
Diffstat (limited to 'base/common/src/com/netscape/certsrv/cert/CertClient.java')
-rw-r--r--base/common/src/com/netscape/certsrv/cert/CertClient.java17
1 files changed, 8 insertions, 9 deletions
diff --git a/base/common/src/com/netscape/certsrv/cert/CertClient.java b/base/common/src/com/netscape/certsrv/cert/CertClient.java
index 215153fd1..42c78eb2c 100644
--- a/base/common/src/com/netscape/certsrv/cert/CertClient.java
+++ b/base/common/src/com/netscape/certsrv/cert/CertClient.java
@@ -21,31 +21,30 @@ import java.net.URISyntaxException;
import com.netscape.certsrv.client.ClientConfig;
import com.netscape.certsrv.client.PKIClient;
-import com.netscape.certsrv.client.PKIConnection;
import com.netscape.certsrv.dbs.certdb.CertId;
import com.netscape.certsrv.request.RequestId;
/**
* @author Endi S. Dewata
*/
-public class CertClient extends PKIClient {
+public class CertClient {
+ public PKIClient client;
public CertResource certClient;
public CertRequestResource certRequestResource;
- public CertClient(PKIConnection connection) throws URISyntaxException {
- super(connection);
- init();
+ public CertClient(ClientConfig config) throws URISyntaxException {
+ this(new PKIClient(config));
}
- public CertClient(ClientConfig config) throws URISyntaxException {
- super(config);
+ public CertClient(PKIClient client) throws URISyntaxException {
+ this.client = client;
init();
}
public void init() throws URISyntaxException {
- certClient = createProxy(CertResource.class);
- certRequestResource = createProxy(CertRequestResource.class);
+ certClient = client.createProxy(CertResource.class);
+ certRequestResource = client.createProxy(CertRequestResource.class);
}
public CertData getCert(CertId id) {