summaryrefslogtreecommitdiffstats
path: root/base/common/src/com/netscape/certsrv/account/AccountClient.java
diff options
context:
space:
mode:
Diffstat (limited to 'base/common/src/com/netscape/certsrv/account/AccountClient.java')
-rw-r--r--base/common/src/com/netscape/certsrv/account/AccountClient.java15
1 files changed, 7 insertions, 8 deletions
diff --git a/base/common/src/com/netscape/certsrv/account/AccountClient.java b/base/common/src/com/netscape/certsrv/account/AccountClient.java
index e60112229..36adcf57a 100644
--- a/base/common/src/com/netscape/certsrv/account/AccountClient.java
+++ b/base/common/src/com/netscape/certsrv/account/AccountClient.java
@@ -21,27 +21,26 @@ import java.net.URISyntaxException;
import com.netscape.certsrv.client.ClientConfig;
import com.netscape.certsrv.client.PKIClient;
-import com.netscape.certsrv.client.PKIConnection;
/**
* @author Endi S. Dewata
*/
-public class AccountClient extends PKIClient {
+public class AccountClient {
+ public PKIClient client;
public AccountResource resource;
- public AccountClient(PKIConnection connection) throws URISyntaxException {
- super(connection);
- init();
+ public AccountClient(ClientConfig config) throws URISyntaxException {
+ this(new PKIClient(config));
}
- public AccountClient(ClientConfig config) throws URISyntaxException {
- super(config);
+ public AccountClient(PKIClient client) throws URISyntaxException {
+ this.client = client;
init();
}
public void init() throws URISyntaxException {
- resource = createProxy(AccountResource.class);
+ resource = client.createProxy(AccountResource.class);
}
public void login() {