🐛 Fixing a bug. gateway config injection fail

This commit is contained in:
lbwNB 2020-10-04 16:52:19 +08:00
parent 4af0b1aa89
commit 235273fed1

View File

@ -53,7 +53,7 @@ public class PasswordDecoderFilter extends AbstractGatewayFilterFactory {
private static final String KEY_ALGORITHM = "AES"; private static final String KEY_ALGORITHM = "AES";
private GatewayConfigProperties configProperties; private final GatewayConfigProperties configProperties;
private static String decryptAES(String data, String pass) { private static String decryptAES(String data, String pass) {
AES aes = new AES(Mode.CBC, Padding.NoPadding, new SecretKeySpec(pass.getBytes(), KEY_ALGORITHM), AES aes = new AES(Mode.CBC, Padding.NoPadding, new SecretKeySpec(pass.getBytes(), KEY_ALGORITHM),