aboutsummaryrefslogtreecommitdiffstats
path: root/music-core/src/main/java/org/onap/music/main/CipherUtil.java
diff options
context:
space:
mode:
authorIndrijeet kumar <indriku1@in.ibm.com>2020-04-28 08:27:20 +0530
committerIndrijeet Kumar <indriku1@in.ibm.com>2020-05-28 04:12:37 +0000
commitef85885428fc2d352e5171a98f6edc321dcdaaee (patch)
tree33595b3060b6c4a3e1ab5c769a952e30d79ebdf7 /music-core/src/main/java/org/onap/music/main/CipherUtil.java
parentd99c6d9edac3ac8b5e9ba7284fbc65f40f02b97d (diff)
lowered some code smells
lowered some code smells Issue-ID: PORTAL-869 Change-Id: I38a7c71f67b05bea076c6a0912712097da2093c7 Signed-off-by: Indrijeet Kumar <indriku1@in.ibm.com>
Diffstat (limited to 'music-core/src/main/java/org/onap/music/main/CipherUtil.java')
-rw-r--r--music-core/src/main/java/org/onap/music/main/CipherUtil.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/music-core/src/main/java/org/onap/music/main/CipherUtil.java b/music-core/src/main/java/org/onap/music/main/CipherUtil.java
index 3278dc12..9a8ff69d 100644
--- a/music-core/src/main/java/org/onap/music/main/CipherUtil.java
+++ b/music-core/src/main/java/org/onap/music/main/CipherUtil.java
@@ -168,7 +168,8 @@ public class CipherUtil {
*/
public static String encryptPKC(String value, String skey) {
Cipher cipher = null;
- byte[] iv = null, finalByte = null;
+ byte[] iv = null;
+ byte[] finalByte = null;
try {
cipher = Cipher.getInstance(ALGORYTHM_DETAILS, "SunJCE");