summaryrefslogtreecommitdiffstats
path: root/base/common/src/com/netscape/certsrv/client/PKIClient.java
blob: 482ed9fde5b7f2be841fe4f1278a50d9e3518f6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package com.netscape.certsrv.client;

import java.net.URISyntaxException;

import org.jboss.resteasy.client.ClientResponse;


public class PKIClient {

    PKIConnection connection;

    public PKIClient(PKIConnection connection) {
        this.connection = connection;
    }

    public PKIClient(ClientConfig config) {
        this(new PKIConnection(config));
    }

    public <T> T createProxy(Class<T> clazz) throws URISyntaxException {
        return connection.createProxy(clazz);
    }

    public <T> T getEntity(ClientResponse<T> response) {
        return connection.getEntity(response);
    }
}