diff options
Diffstat (limited to 'base/java-tools/src/com/netscape/cmstools/key/KeyRequestFindCLI.java')
-rw-r--r-- | base/java-tools/src/com/netscape/cmstools/key/KeyRequestFindCLI.java | 7 |
1 files changed, 6 insertions, 1 deletions
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 92c98f042..de061d630 100644 --- a/base/java-tools/src/com/netscape/cmstools/key/KeyRequestFindCLI.java +++ b/base/java-tools/src/com/netscape/cmstools/key/KeyRequestFindCLI.java @@ -77,6 +77,10 @@ public class KeyRequestFindCLI extends CLI { option = new Option(null, "pageSize", true, "Page size"); option.setArgName("page size"); options.addOption(option); + + option = new Option(null, "realm", true, "Authorization Realm"); + option.setArgName("realm"); + options.addOption(option); } public void execute(String[] args) { @@ -109,6 +113,7 @@ public class KeyRequestFindCLI extends CLI { String status = cmd.getOptionValue("status"); String type = cmd.getOptionValue("type"); String clientKeyID = cmd.getOptionValue("client"); + String realm = cmd.getOptionValue("realm"); String s = cmd.getOptionValue("start"); RequestId start = s == null ? null : new RequestId(s); @@ -123,7 +128,7 @@ public class KeyRequestFindCLI extends CLI { Integer maxTime = s == null ? null : Integer.valueOf(s); KeyRequestInfoCollection keys = keyCLI.keyClient.listRequests( - status, type, clientKeyID, start, pageSize, maxResults, maxTime); + status, type, clientKeyID, start, pageSize, maxResults, maxTime, realm); MainCLI.printMessage(keys.getTotal() + " entries matched"); if (keys.getTotal() == 0) return; |