수정
This commit is contained in:
@@ -2,6 +2,7 @@ package com.eactive.eai.transformer.function.crypto;
|
|||||||
|
|
||||||
import java.util.Stack;
|
import java.util.Stack;
|
||||||
|
|
||||||
|
import com.eactive.eai.common.context.ElinkTransactionContext;
|
||||||
import org.nfunk.jep.ParseException;
|
import org.nfunk.jep.ParseException;
|
||||||
import org.nfunk.jep.function.PostfixMathCommand;
|
import org.nfunk.jep.function.PostfixMathCommand;
|
||||||
|
|
||||||
@@ -22,8 +23,12 @@ public class SeedKJDecrypt extends PostfixMathCommand {
|
|||||||
|
|
||||||
public void run(Stack inStack) throws ParseException {
|
public void run(Stack inStack) throws ParseException {
|
||||||
checkStack(inStack);
|
checkStack(inStack);
|
||||||
|
|
||||||
// USER FUNCTION에서 Parameter 에서 가져옴
|
//샘플
|
||||||
|
String seedSalt = ElinkTransactionContext.getSeedSalt();
|
||||||
|
System.out.println("seedSalt = " + seedSalt);
|
||||||
|
|
||||||
|
// USER FUNCTION에서 Parameter 에서 가져옴
|
||||||
Object param2 = inStack.pop();
|
Object param2 = inStack.pop();
|
||||||
String param2Str = String.valueOf(param2); // null 안전 처리
|
String param2Str = String.valueOf(param2); // null 안전 처리
|
||||||
String decryptKey = StringUtils.leftPad(param2Str, 16, '0');
|
String decryptKey = StringUtils.leftPad(param2Str, 16, '0');
|
||||||
@@ -61,3 +66,4 @@ public class SeedKJDecrypt extends PostfixMathCommand {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -61,4 +61,4 @@ public class SeedKJEncrypt extends PostfixMathCommand {
|
|||||||
throw new ParseException(e.getMessage(), e);
|
throw new ParseException(e.getMessage(), e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user