From 5b7ce994b8698dca62c23e653b7a1cfeebf959e4 Mon Sep 17 00:00:00 2001 From: Ade Lee Date: Thu, 23 Mar 2017 00:20:32 -0400 Subject: Refactor code that creates PKIArchiveOptions objects * Refactor code in CryptoUtil to parametrize the algorithms used. * Moved WrappingParams to utils jar to allow correct compilation. * Removed code that created a PKIArchiveOptions structure from CRMFPopClient and replaced with calls to CryptoUtil methods. Note that the algorithms have been left as DES3. They will be changed to AES in the next patch. * Converted code in AuthorityKeyExportCLI to use the new methods in CryptoUtil. * Removed DRMTest this code is no longer maintained or used. Change-Id: I8f625f0310877dca68f6a01285b6ff4e27e7f34a --- .../cms/src/com/netscape/cms/servlet/csadmin/ConfigurationUtils.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'base/server/cms/src/com') diff --git a/base/server/cms/src/com/netscape/cms/servlet/csadmin/ConfigurationUtils.java b/base/server/cms/src/com/netscape/cms/servlet/csadmin/ConfigurationUtils.java index ed2423ff1..ee1984bc9 100644 --- a/base/server/cms/src/com/netscape/cms/servlet/csadmin/ConfigurationUtils.java +++ b/base/server/cms/src/com/netscape/cms/servlet/csadmin/ConfigurationUtils.java @@ -2446,8 +2446,7 @@ public class ConfigurationUtils { } public static void createRSAKeyPair(String token, int keysize, IConfigStore config, String ct) - throws NoSuchAlgorithmException, NoSuchTokenException, TokenException, - CryptoManager.NotInitializedException, EPropertyNotFound, EBaseException { + throws Exception { /* generate key pair */ KeyPair pair = null; do { -- cgit