From 24294c097dd0dd9f7de0202443a8c8e34807bb2f Mon Sep 17 00:00:00 2001 From: Abhishek Koneru Date: Wed, 26 Feb 2014 13:15:57 -0500 Subject: Changes to KeyClient on the java side. The KeyClient class on the java side is modified to have a similar design as the KeyClient class on the python side. --- base/java-tools/src/com/netscape/cmstools/cli/MainCLI.java | 2 +- base/java-tools/src/com/netscape/cmstools/key/KeyFindCLI.java | 2 +- base/java-tools/src/com/netscape/cmstools/key/KeyRequestFindCLI.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'base/java-tools/src') diff --git a/base/java-tools/src/com/netscape/cmstools/cli/MainCLI.java b/base/java-tools/src/com/netscape/cmstools/cli/MainCLI.java index 54524d3c9..4e9d0c8ab 100644 --- a/base/java-tools/src/com/netscape/cmstools/cli/MainCLI.java +++ b/base/java-tools/src/com/netscape/cmstools/cli/MainCLI.java @@ -287,7 +287,7 @@ public class MainCLI extends CLI { } - client = new PKIClient(config); + client = new PKIClient(config, null); client.setVerbose(verbose); PKIConnection connection = client.getConnection(); diff --git a/base/java-tools/src/com/netscape/cmstools/key/KeyFindCLI.java b/base/java-tools/src/com/netscape/cmstools/key/KeyFindCLI.java index ce095a22e..53e9bccc9 100644 --- a/base/java-tools/src/com/netscape/cmstools/key/KeyFindCLI.java +++ b/base/java-tools/src/com/netscape/cmstools/key/KeyFindCLI.java @@ -97,7 +97,7 @@ public class KeyFindCLI extends CLI { s = cmd.getOptionValue("size"); Integer size = s == null ? null : Integer.valueOf(s); - KeyInfoCollection keys = keyCLI.keyClient.findKeys(clientKeyID, status, maxResults, maxTime, start, size); + KeyInfoCollection keys = keyCLI.keyClient.listKeys(clientKeyID, status, maxResults, maxTime, start, size); Collection entries = keys.getEntries(); diff --git a/base/java-tools/src/com/netscape/cmstools/key/KeyRequestFindCLI.java b/base/java-tools/src/com/netscape/cmstools/key/KeyRequestFindCLI.java index d1385b0a5..bc4efb411 100644 --- a/base/java-tools/src/com/netscape/cmstools/key/KeyRequestFindCLI.java +++ b/base/java-tools/src/com/netscape/cmstools/key/KeyRequestFindCLI.java @@ -103,7 +103,7 @@ public class KeyRequestFindCLI extends CLI { s = cmd.getOptionValue("maxTime"); Integer maxTime = s == null ? null : Integer.valueOf(s); - KeyRequestInfoCollection keys = keyCLI.keyClient.findRequests( + KeyRequestInfoCollection keys = keyCLI.keyClient.listRequests( status, type, clientKeyID, start, pageSize, maxResults, maxTime); MainCLI.printMessage(keys.getTotal() + " entries matched"); -- cgit