From 7893dac9736701f4e6bd518328e24c0fa5e83ef3 Mon Sep 17 00:00:00 2001 From: "Endi S. Dewata" Date: Fri, 15 Nov 2013 15:19:43 -0500 Subject: Fixed problem with key-find. The key-find command did not return any results due to recent changes. The method name in KeyDataInfos has been fixed such that XML mapping would work properly. --- base/common/src/com/netscape/certsrv/key/KeyDataInfos.java | 2 +- base/common/src/com/netscape/certsrv/kra/KRAClient.java | 2 +- base/java-tools/src/com/netscape/cmstools/key/KeyFindCLI.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'base') diff --git a/base/common/src/com/netscape/certsrv/key/KeyDataInfos.java b/base/common/src/com/netscape/certsrv/key/KeyDataInfos.java index eab8ae97c..8f02348a5 100644 --- a/base/common/src/com/netscape/certsrv/key/KeyDataInfos.java +++ b/base/common/src/com/netscape/certsrv/key/KeyDataInfos.java @@ -28,7 +28,7 @@ import com.netscape.certsrv.base.DataCollection; public class KeyDataInfos extends DataCollection { @XmlElementRef - public Collection getKeyInfos() { + public Collection getEntries() { return super.getEntries(); } } diff --git a/base/common/src/com/netscape/certsrv/kra/KRAClient.java b/base/common/src/com/netscape/certsrv/kra/KRAClient.java index ebccd664d..21f1a957d 100644 --- a/base/common/src/com/netscape/certsrv/kra/KRAClient.java +++ b/base/common/src/com/netscape/certsrv/kra/KRAClient.java @@ -83,7 +83,7 @@ public class KRAClient extends SubsystemClient { public KeyDataInfo getKeyData(String clientId, String status) { KeyDataInfos infos = keyClient.listKeys(clientId, status, null, null, null, null); - Collection list = infos.getKeyInfos(); + Collection list = infos.getEntries(); Iterator iter = list.iterator(); while (iter.hasNext()) { 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 25fe6af3c..c5c54e7f9 100644 --- a/base/java-tools/src/com/netscape/cmstools/key/KeyFindCLI.java +++ b/base/java-tools/src/com/netscape/cmstools/key/KeyFindCLI.java @@ -99,7 +99,7 @@ public class KeyFindCLI extends CLI { KeyDataInfos keys = keyCLI.keyClient.findKeys(clientID, status, maxResults, maxTime, start, size); - Collection entries = keys.getKeyInfos(); + Collection entries = keys.getEntries(); MainCLI.printMessage(entries.size() + " key(s) matched"); -- cgit