summaryrefslogtreecommitdiffstats
path: root/base/common/src/com/netscape/certsrv/cert
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2015-07-06 18:03:08 -0400
committerEndi S. Dewata <edewata@redhat.com>2015-07-09 19:19:09 -0400
commit2b4b943fee003115a03f287340ef6bdfd47e8486 (patch)
tree01e86cd69c974a64e4aca1bcf36349c8e7f38b00 /base/common/src/com/netscape/certsrv/cert
parentac5447a8e0bac5112882be700a17a9274e322adc (diff)
downloadpki-2b4b943fee003115a03f287340ef6bdfd47e8486.tar.gz
pki-2b4b943fee003115a03f287340ef6bdfd47e8486.tar.xz
pki-2b4b943fee003115a03f287340ef6bdfd47e8486.zip
Fixed user-cert-add --serial with remote CA.
The user-cert-add command has been modified to ask the user for the CA server URI if the CA is not available locally. A new SubsystemClient.exists() method has been added to check whether a subsystem is deployed on the target instance. The SubsystemCLI has been modified to call logout() only if the operation is executed successfully. The certificate approval callback class has been refactored out of PKIConnection into a separate class to clean up circular dependency with PKIClient. https://fedorahosted.org/pki/ticket/1448
Diffstat (limited to 'base/common/src/com/netscape/certsrv/cert')
-rw-r--r--base/common/src/com/netscape/certsrv/cert/CertClient.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/base/common/src/com/netscape/certsrv/cert/CertClient.java b/base/common/src/com/netscape/certsrv/cert/CertClient.java
index 86e5e1537..42b04b702 100644
--- a/base/common/src/com/netscape/certsrv/cert/CertClient.java
+++ b/base/common/src/com/netscape/certsrv/cert/CertClient.java
@@ -23,6 +23,7 @@ import javax.ws.rs.core.Response;
import com.netscape.certsrv.client.Client;
import com.netscape.certsrv.client.PKIClient;
+import com.netscape.certsrv.client.SubsystemClient;
import com.netscape.certsrv.dbs.certdb.CertId;
import com.netscape.certsrv.profile.ProfileDataInfos;
import com.netscape.certsrv.request.RequestId;
@@ -35,6 +36,10 @@ public class CertClient extends Client {
public CertResource certClient;
public CertRequestResource certRequestClient;
+ public CertClient(SubsystemClient subsystemClient) throws URISyntaxException {
+ this(subsystemClient.client, subsystemClient.getName());
+ }
+
public CertClient(PKIClient client, String subsystem) throws URISyntaxException {
super(client, subsystem, "cert");
init();