summaryrefslogtreecommitdiffstats
path: root/pki/base/common/src/com/netscape/certsrv/profile
diff options
context:
space:
mode:
Diffstat (limited to 'pki/base/common/src/com/netscape/certsrv/profile')
-rw-r--r--pki/base/common/src/com/netscape/certsrv/profile/CertInfoProfile.java4
-rw-r--r--pki/base/common/src/com/netscape/certsrv/profile/IPolicyDefault.java2
-rw-r--r--pki/base/common/src/com/netscape/certsrv/profile/IProfile.java11
-rw-r--r--pki/base/common/src/com/netscape/certsrv/profile/IProfileAuthenticator.java2
-rw-r--r--pki/base/common/src/com/netscape/certsrv/profile/IProfileInput.java2
-rw-r--r--pki/base/common/src/com/netscape/certsrv/profile/IProfileOutput.java2
-rw-r--r--pki/base/common/src/com/netscape/certsrv/profile/IProfileSubsystem.java2
7 files changed, 13 insertions, 12 deletions
diff --git a/pki/base/common/src/com/netscape/certsrv/profile/CertInfoProfile.java b/pki/base/common/src/com/netscape/certsrv/profile/CertInfoProfile.java
index fae38c69..75f134c2 100644
--- a/pki/base/common/src/com/netscape/certsrv/profile/CertInfoProfile.java
+++ b/pki/base/common/src/com/netscape/certsrv/profile/CertInfoProfile.java
@@ -28,7 +28,7 @@ import com.netscape.certsrv.base.IConfigStore;
public class CertInfoProfile
{
- private Vector mDefaults = new Vector();
+ private Vector<ICertInfoPolicyDefault> mDefaults = new Vector<ICertInfoPolicyDefault>();
private String mName = null;
private String mID = null;
private String mDescription = null;
@@ -96,7 +96,7 @@ public class CertInfoProfile
public void populate(X509CertInfo info)
{
- Enumeration e1 = mDefaults.elements();
+ Enumeration<ICertInfoPolicyDefault> e1 = mDefaults.elements();
while (e1.hasMoreElements()) {
ICertInfoPolicyDefault def =
(ICertInfoPolicyDefault)e1.nextElement();
diff --git a/pki/base/common/src/com/netscape/certsrv/profile/IPolicyDefault.java b/pki/base/common/src/com/netscape/certsrv/profile/IPolicyDefault.java
index 01805492..092b10fd 100644
--- a/pki/base/common/src/com/netscape/certsrv/profile/IPolicyDefault.java
+++ b/pki/base/common/src/com/netscape/certsrv/profile/IPolicyDefault.java
@@ -109,7 +109,7 @@ public interface IPolicyDefault extends IConfigTemplate {
* @return a list of property names. The values are
* of type java.lang.String
*/
- public Enumeration getValueNames();
+ public Enumeration<String> getValueNames();
/**
* Retrieves the descriptor of the given property
diff --git a/pki/base/common/src/com/netscape/certsrv/profile/IProfile.java b/pki/base/common/src/com/netscape/certsrv/profile/IProfile.java
index c006db67..cc6975cd 100644
--- a/pki/base/common/src/com/netscape/certsrv/profile/IProfile.java
+++ b/pki/base/common/src/com/netscape/certsrv/profile/IProfile.java
@@ -26,6 +26,7 @@ import com.netscape.certsrv.base.IConfigStore;
import com.netscape.certsrv.common.NameValuePairs;
import com.netscape.certsrv.request.IRequest;
import com.netscape.certsrv.request.IRequestQueue;
+import com.netscape.cms.profile.common.ProfilePolicy;
/**
* This interface represents a profile. A profile contains
@@ -137,7 +138,7 @@ public interface IProfile {
*
* @return input policy id list
*/
- public Enumeration getProfileInputIds();
+ public Enumeration<String> getProfileInputIds();
/**
* Retrieves input policy by id.
@@ -152,7 +153,7 @@ public interface IProfile {
*
* @return output policy id list
*/
- public Enumeration getProfileOutputIds();
+ public Enumeration<String> getProfileOutputIds();
/**
* Retrieves output policy by id.
@@ -243,7 +244,7 @@ public interface IProfile {
*
* @return a list of policy set id
*/
- public Enumeration getProfilePolicySetIds();
+ public Enumeration<String> getProfilePolicySetIds();
/**
* Creates a profile policy.
@@ -325,7 +326,7 @@ public interface IProfile {
* @param setId set id
* @return a list of policy id
*/
- public Enumeration getProfilePolicyIds(String setId);
+ public Enumeration<String> getProfilePolicyIds(String setId);
/**
* Retrieves a default set id for the given request.
@@ -343,7 +344,7 @@ public interface IProfile {
* @param setId set id
* @return a list of policies
*/
- public Enumeration getProfilePolicies(String setId);
+ public Enumeration<ProfilePolicy> getProfilePolicies(String setId);
/**
* Creates one or more requests. Normally, only one request will
diff --git a/pki/base/common/src/com/netscape/certsrv/profile/IProfileAuthenticator.java b/pki/base/common/src/com/netscape/certsrv/profile/IProfileAuthenticator.java
index 195078f7..476002e2 100644
--- a/pki/base/common/src/com/netscape/certsrv/profile/IProfileAuthenticator.java
+++ b/pki/base/common/src/com/netscape/certsrv/profile/IProfileAuthenticator.java
@@ -89,7 +89,7 @@ public interface IProfileAuthenticator extends IAuthManager {
*
* @return a list of property names
*/
- public Enumeration getValueNames();
+ public Enumeration<String> getValueNames();
/**
* Checks if the value of the given property should be
diff --git a/pki/base/common/src/com/netscape/certsrv/profile/IProfileInput.java b/pki/base/common/src/com/netscape/certsrv/profile/IProfileInput.java
index 6d861579..35453e7d 100644
--- a/pki/base/common/src/com/netscape/certsrv/profile/IProfileInput.java
+++ b/pki/base/common/src/com/netscape/certsrv/profile/IProfileInput.java
@@ -83,7 +83,7 @@ public interface IProfileInput extends IConfigTemplate {
*
* @return a list of property names
*/
- public Enumeration getValueNames();
+ public Enumeration<String> getValueNames();
/**
* Retrieves the descriptor of the given value
diff --git a/pki/base/common/src/com/netscape/certsrv/profile/IProfileOutput.java b/pki/base/common/src/com/netscape/certsrv/profile/IProfileOutput.java
index b4654f40..6dbfea51 100644
--- a/pki/base/common/src/com/netscape/certsrv/profile/IProfileOutput.java
+++ b/pki/base/common/src/com/netscape/certsrv/profile/IProfileOutput.java
@@ -83,7 +83,7 @@ public interface IProfileOutput extends IConfigTemplate {
*
* @return a list of property names
*/
- public Enumeration getValueNames();
+ public Enumeration<String> getValueNames();
/**
* Retrieves the descriptor of the given value
diff --git a/pki/base/common/src/com/netscape/certsrv/profile/IProfileSubsystem.java b/pki/base/common/src/com/netscape/certsrv/profile/IProfileSubsystem.java
index 795a19c0..6f2fef37 100644
--- a/pki/base/common/src/com/netscape/certsrv/profile/IProfileSubsystem.java
+++ b/pki/base/common/src/com/netscape/certsrv/profile/IProfileSubsystem.java
@@ -124,7 +124,7 @@ public interface IProfileSubsystem extends ISubsystem {
*
* @return a list of profile ids
*/
- public Enumeration getProfileIds();
+ public Enumeration<String> getProfileIds();
/**
* Checks if owner id should be enforced during profile approval.