summaryrefslogtreecommitdiffstats
path: root/base/common
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2014-09-09 15:02:47 -0400
committerEndi S. Dewata <edewata@redhat.com>2014-09-19 15:28:17 -0400
commit8bb918883ad8c1287d4085317e9330e18ec214b2 (patch)
tree3d8475ffd348e7adbc4c3e4249bd0768927dcf41 /base/common
parentab97c5a333cb0a86fc4a6983f39f1607d37577c7 (diff)
downloadpki-8bb918883ad8c1287d4085317e9330e18ec214b2.tar.gz
pki-8bb918883ad8c1287d4085317e9330e18ec214b2.tar.xz
pki-8bb918883ad8c1287d4085317e9330e18ec214b2.zip
Added option to import client cert from CA.
A new option has been added to the client-cert-import command to import a certificate from CA by specifying the serial number. The client-cert-import has also been modified to get the nickname of the certificate to import from the CLI argument. For backward compatibility, if no argument is specified the CLI will try to get the nickname from the authentication option (-n). Ticket #1152
Diffstat (limited to 'base/common')
-rw-r--r--base/common/src/com/netscape/certsrv/client/ClientConfig.java13
1 files changed, 13 insertions, 0 deletions
diff --git a/base/common/src/com/netscape/certsrv/client/ClientConfig.java b/base/common/src/com/netscape/certsrv/client/ClientConfig.java
index da4e3d780..f59f7320e 100644
--- a/base/common/src/com/netscape/certsrv/client/ClientConfig.java
+++ b/base/common/src/com/netscape/certsrv/client/ClientConfig.java
@@ -57,6 +57,19 @@ public class ClientConfig {
String password;
String messageFormat;
+ public ClientConfig() {
+ }
+
+ public ClientConfig(ClientConfig config) {
+ serverURI = config.serverURI;
+ certDatabase = config.certDatabase;
+ certNickname = config.certNickname;
+ certPassword = config.certPassword;
+ username = config.username;
+ password = config.password;
+ messageFormat = config.messageFormat;
+ }
+
@XmlElement(name="ServerURI")
public URI getServerURI() {
return serverURI;