diff options
author | Adam Young <ayoung@redhat.com> | 2011-11-18 14:53:08 -0500 |
---|---|---|
committer | Adam Young <ayoung@redhat.com> | 2012-01-04 11:24:45 -0500 |
commit | 5155a9dc8d5b461123a13079252fc5d3fab8f908 (patch) | |
tree | d618d8679902474feca63e1b39e6250826b92461 /pki/base/common/src | |
parent | 9c3c8ee12bfc4b0bd3a6a57382f90d7c0ff8abbb (diff) | |
download | pki-5155a9dc8d5b461123a13079252fc5d3fab8f908.tar.gz pki-5155a9dc8d5b461123a13079252fc5d3fab8f908.tar.xz pki-5155a9dc8d5b461123a13079252fc5d3fab8f908.zip |
Typesafety for certsrv.kra
Diffstat (limited to 'pki/base/common/src')
3 files changed, 9 insertions, 9 deletions
diff --git a/pki/base/common/src/com/netscape/certsrv/kra/IKeyRecoveryAuthority.java b/pki/base/common/src/com/netscape/certsrv/kra/IKeyRecoveryAuthority.java index b268073e0..7be3f165f 100644 --- a/pki/base/common/src/com/netscape/certsrv/kra/IKeyRecoveryAuthority.java +++ b/pki/base/common/src/com/netscape/certsrv/kra/IKeyRecoveryAuthority.java @@ -164,7 +164,7 @@ public interface IKeyRecoveryAuthority extends ISubsystem { * * @return list of auto recovery identifiers */ - public Enumeration getAutoRecoveryIDs(); + public Enumeration<String> getAutoRecoveryIDs(); /** * Returns the storage key unit that manages the @@ -259,7 +259,7 @@ public interface IKeyRecoveryAuthority extends ISubsystem { * @param id request id * @return volatile requests */ - public Hashtable createVolatileRequest(RequestId id); + public Hashtable<String, Object> createVolatileRequest(RequestId id); /** * Retrieves the request object. @@ -267,7 +267,7 @@ public interface IKeyRecoveryAuthority extends ISubsystem { * @param id request id * @return volatile requests */ - public Hashtable getVolatileRequest(RequestId id); + public Hashtable<String, Object> getVolatileRequest(RequestId id); /** * Destroys the request object. @@ -276,7 +276,7 @@ public interface IKeyRecoveryAuthority extends ISubsystem { */ public void destroyVolatileRequest(RequestId id); - public Vector getAppAgents( + public Vector<Credential> getAppAgents( String recoveryID) throws EBaseException; /** diff --git a/pki/base/common/src/com/netscape/certsrv/kra/IKeyService.java b/pki/base/common/src/com/netscape/certsrv/kra/IKeyService.java index 5785aeb06..5ed17453c 100644 --- a/pki/base/common/src/com/netscape/certsrv/kra/IKeyService.java +++ b/pki/base/common/src/com/netscape/certsrv/kra/IKeyService.java @@ -133,7 +133,7 @@ public interface IKeyService { * @return recovery parameters * @exception EBaseException failed to create */ - public Hashtable createRecoveryParams(String recoveryID) + public Hashtable<String, Object> createRecoveryParams(String recoveryID) throws EBaseException; /** @@ -152,7 +152,7 @@ public interface IKeyService { * @return recovery parameters * @exception EBaseException failed to retrieve */ - public Hashtable getRecoveryParams(String recoveryID) + public Hashtable<String, Object> getRecoveryParams(String recoveryID) throws EBaseException; /** diff --git a/pki/base/common/src/com/netscape/certsrv/kra/ProofOfArchival.java b/pki/base/common/src/com/netscape/certsrv/kra/ProofOfArchival.java index a2742809e..ca5753967 100644 --- a/pki/base/common/src/com/netscape/certsrv/kra/ProofOfArchival.java +++ b/pki/base/common/src/com/netscape/certsrv/kra/ProofOfArchival.java @@ -94,7 +94,7 @@ public class ProofOfArchival implements IDBObj, IProofOfArchival, Serializable { protected String mIssuer = null; protected Date mDateOfArchival = null; - protected static Vector mNames = new Vector(); + protected static Vector<String> mNames = new Vector<String>(); static { mNames.addElement(ATTR_VERSION); mNames.addElement(ATTR_SERIALNO); @@ -195,7 +195,7 @@ public class ProofOfArchival implements IDBObj, IProofOfArchival, Serializable { * * @return a list of names */ - public Enumeration getElements() { + public Enumeration<String> getElements() { return mNames.elements(); } @@ -204,7 +204,7 @@ public class ProofOfArchival implements IDBObj, IProofOfArchival, Serializable { * * @return a list of serializable attribute names */ - public Enumeration getSerializableAttrNames() { + public Enumeration<String> getSerializableAttrNames() { return mNames.elements(); } |