From ef8292d119ea7032a260accbb7616ecca941996d Mon Sep 17 00:00:00 2001 From: Denis Plotnikov Date: Mon, 30 Oct 2023 23:29:53 +0400 Subject: [PATCH] fix --- src/main/java/com/exactpro/th2/FixHandler.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/exactpro/th2/FixHandler.java b/src/main/java/com/exactpro/th2/FixHandler.java index eb5ab83..fc8e8d8 100644 --- a/src/main/java/com/exactpro/th2/FixHandler.java +++ b/src/main/java/com/exactpro/th2/FixHandler.java @@ -1299,11 +1299,11 @@ private Map transformProcessor( if(transformation.getEncryptKey() != null) { FixField encryptedPassword = findField(message, NEW_ENCRYPTED_PASSWORD_TAG); if(encryptedPassword != null) { - encryptedPassword.setValue(encrypt(transformation.getNewPassword(), transformation.getEncryptKey(), transformation.getPasswordEncryptAlgorithm(), transformation.getPasswordKeyEncryptAlgorithm())); + encryptedPassword.setValue(encrypt(transformation.getNewNewPassword(), transformation.getEncryptKey(), transformation.getPasswordEncryptAlgorithm(), transformation.getPasswordKeyEncryptAlgorithm())); } else { FixField defaultAppl = findField(message, DEFAULT_APPL_VER_ID_TAG); if(defaultAppl != null) { - defaultAppl.insertNext(NEW_ENCRYPTED_PASSWORD_TAG, encrypt(transformation.getNewPassword(), transformation.getEncryptKey(), transformation.getPasswordEncryptAlgorithm(), transformation.getPasswordKeyEncryptAlgorithm())); + defaultAppl.insertNext(NEW_ENCRYPTED_PASSWORD_TAG, encrypt(transformation.getNewNewPassword(), transformation.getEncryptKey(), transformation.getPasswordEncryptAlgorithm(), transformation.getPasswordKeyEncryptAlgorithm())); } } } else {