diff options
Diffstat (limited to 'pki/base/common/src/com/netscape/certsrv')
3 files changed, 11 insertions, 11 deletions
diff --git a/pki/base/common/src/com/netscape/certsrv/authentication/AuthCredentials.java b/pki/base/common/src/com/netscape/certsrv/authentication/AuthCredentials.java index 1475683eb..5a0cdd3b8 100644 --- a/pki/base/common/src/com/netscape/certsrv/authentication/AuthCredentials.java +++ b/pki/base/common/src/com/netscape/certsrv/authentication/AuthCredentials.java @@ -61,7 +61,7 @@ public class AuthCredentials implements IAuthCredentials { * @return the authentication credential for the given name */ public Object get(String name) { - return ((Object) authCreds.get(name)); + return authCreds.get(name); } /** @@ -76,14 +76,14 @@ 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 */ - public Enumeration<Object> getElements() { - return (authCreds.elements()); + public Enumeration<String> getElements() { + return authCreds.keys(); } /** diff --git a/pki/base/common/src/com/netscape/certsrv/authorization/AuthzToken.java b/pki/base/common/src/com/netscape/certsrv/authorization/AuthzToken.java index b6e2d1446..262902e62 100644 --- a/pki/base/common/src/com/netscape/certsrv/authorization/AuthzToken.java +++ b/pki/base/common/src/com/netscape/certsrv/authorization/AuthzToken.java @@ -129,7 +129,7 @@ public class AuthzToken implements IAttrSet { * @return Enumeration of all attribute names in this AuthzToken. */ public Enumeration<String> getElements() { - return (mAttrs.keys()); + return mAttrs.keys(); } /** @@ -138,7 +138,7 @@ public class AuthzToken implements IAttrSet { * @return Enumeration of all attribute names in this AuthzToken. */ public Enumeration<Object> getVals() { - return (mAttrs.elements()); + return mAttrs.elements(); } /** @@ -149,7 +149,7 @@ public class AuthzToken implements IAttrSet { * this token. */ public String getAuthzManagerInstName() { - return ((String) mAttrs.get(TOKEN_AUTHZMGR_INST_NAME)); + return (String) mAttrs.get(TOKEN_AUTHZMGR_INST_NAME); } /** @@ -160,7 +160,7 @@ public class AuthzToken implements IAttrSet { * token. */ public String getAuthzManagerImplName() { - return ((String) mAttrs.get(TOKEN_AUTHZMGR_IMPL_NAME)); + return (String) mAttrs.get(TOKEN_AUTHZMGR_IMPL_NAME); } /** @@ -169,6 +169,6 @@ public class AuthzToken implements IAttrSet { * @return The time of authorization */ public Date getAuthzTime() { - return ((Date) mAttrs.get(TOKEN_AUTHZTIME)); + return (Date) mAttrs.get(TOKEN_AUTHZTIME); } } diff --git a/pki/base/common/src/com/netscape/certsrv/base/IAttrSet.java b/pki/base/common/src/com/netscape/certsrv/base/IAttrSet.java index f7567292e..e396b072a 100644 --- a/pki/base/common/src/com/netscape/certsrv/base/IAttrSet.java +++ b/pki/base/common/src/com/netscape/certsrv/base/IAttrSet.java @@ -66,5 +66,5 @@ public interface IAttrSet extends Serializable { * * @return an enumeration of the attribute names. */ - public Enumeration<?> getElements(); + public Enumeration<String> getElements(); } |