summaryrefslogtreecommitdiffstats
path: root/pki/base/common/src/com/netscape/cms/servlet/admin/AuthCredentials.java
diff options
context:
space:
mode:
authorEndi Sukma Dewata <edewata@redhat.com>2012-02-22 01:15:56 -0600
committerEndi Sukma Dewata <edewata@redhat.com>2012-03-13 10:53:47 -0500
commit2bd9e3b8555fddcb9f8d762988384fc1c78ef37c (patch)
treef0589a2a175eeced2e99d9b8b69c75ee0dcd8201 /pki/base/common/src/com/netscape/cms/servlet/admin/AuthCredentials.java
parentc24c8f080f987ed63034abcedf9320e962c4c415 (diff)
downloadpki-2bd9e3b8555fddcb9f8d762988384fc1c78ef37c.tar.gz
pki-2bd9e3b8555fddcb9f8d762988384fc1c78ef37c.tar.xz
pki-2bd9e3b8555fddcb9f8d762988384fc1c78ef37c.zip
Fixed IAttrSet.getElements() implementations.
This patch fixes incorrect implementation of getElement() in some subclasses of IAttrSet. The method is supposed return the attribute names as an enumeration of strings. Ticket #42
Diffstat (limited to 'pki/base/common/src/com/netscape/cms/servlet/admin/AuthCredentials.java')
-rw-r--r--pki/base/common/src/com/netscape/cms/servlet/admin/AuthCredentials.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/pki/base/common/src/com/netscape/cms/servlet/admin/AuthCredentials.java b/pki/base/common/src/com/netscape/cms/servlet/admin/AuthCredentials.java
index 9d4c4f00e..69cfd9aaf 100644
--- a/pki/base/common/src/com/netscape/cms/servlet/admin/AuthCredentials.java
+++ b/pki/base/common/src/com/netscape/cms/servlet/admin/AuthCredentials.java
@@ -83,15 +83,15 @@ public class AuthCredentials implements IAuthCredentials {
}
/**
- * returns an enumeration of the credentials in this credential
+ * returns an enumeration of the credential names in this credential
* set. Use the Enumeration methods on the returned object to
* fetch the elements sequentially.
*
- * @return an enumeration of the values in this credential set
+ * @return an enumeration of the names in this credential set
* @see java.util.Enumeration
*/
- public Enumeration<Object> getElements() {
- return authCreds.elements();
+ public Enumeration<String> getElements() {
+ return authCreds.keys();
}
// Inserted by bskim