From 1c9e4e6d0d30e937fd0137ba88c30251c653798f Mon Sep 17 00:00:00 2001 From: jhh Date: Mon, 21 Oct 2019 09:08:11 -0500 Subject: Add CryptoCoder interface This is to allow multiple supporting implementations. Issue-ID: POLICY-1945 Signed-off-by: jhh Change-Id: I42491e5671f561fe320f034bf8ffe03848dff43f Signed-off-by: jhh --- .../java/org/onap/policy/common/utils/security/CryptoUtilsTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'utils/src/test/java/org/onap/policy/common/utils/security/CryptoUtilsTest.java') diff --git a/utils/src/test/java/org/onap/policy/common/utils/security/CryptoUtilsTest.java b/utils/src/test/java/org/onap/policy/common/utils/security/CryptoUtilsTest.java index a9924152..ce9435d8 100644 --- a/utils/src/test/java/org/onap/policy/common/utils/security/CryptoUtilsTest.java +++ b/utils/src/test/java/org/onap/policy/common/utils/security/CryptoUtilsTest.java @@ -44,7 +44,7 @@ public class CryptoUtilsTest { @Test public void testEncrypt() throws GeneralSecurityException { logger.info("testEncrypt:"); - CryptoUtils cryptoUtils = new CryptoUtils(SECRET_KEY); + CryptoCoder cryptoUtils = new CryptoUtils(SECRET_KEY); String encryptedValue = cryptoUtils.encrypt(PASS); logger.info(ENCRYPTED_MSG, PASS, encryptedValue); assertTrue(encryptedValue.startsWith("enc:")); @@ -57,7 +57,7 @@ public class CryptoUtilsTest { @Test public void testDecrypt() throws GeneralSecurityException { logger.info("testDecrypt:"); - CryptoUtils cryptoUtils = new CryptoUtils(SECRET_KEY); + CryptoCoder cryptoUtils = new CryptoUtils(SECRET_KEY); String decryptedValue = cryptoUtils.decrypt(ENCRYPTED_PASS); logger.info(DECRYPTED_MSG, ENCRYPTED_PASS, decryptedValue); assertEquals(PASS, decryptedValue); -- cgit 1.2.3-korg