mirror of
https://github.com/LamGC/Oracle-Sentry.git
synced 2025-04-29 22:27:34 +00:00
fix: 修复 Ssh AuthInfo 未加载 keyPassword 的问题.
该问题原因是忘记写了.
This commit is contained in:
parent
8bd55ca2e4
commit
7ac17c6ed7
@ -49,6 +49,7 @@ public final class SshAuthInfoSerializer implements JsonSerializer<SshAuthInfo>,
|
||||
String privateKeyPath = getFieldToStringOrFail(infoObject, "privateKeyPath");
|
||||
File privateKeyFile = new File(privateKeyPath);
|
||||
publicKeyInfo.setPrivateKeyPath(privateKeyFile);
|
||||
publicKeyInfo.setKeyPassword(getFieldToStringOrFail(infoObject, "keyPassword"));
|
||||
info = publicKeyInfo;
|
||||
} else {
|
||||
throw new JsonParseException("Unsupported authentication type: " + authType);
|
||||
|
Loading…
Reference in New Issue
Block a user