fix: 修复 Ssh AuthInfo 未加载 keyPassword 的问题.

该问题原因是忘记写了.
This commit is contained in:
LamGC 2021-08-20 00:46:38 +08:00
parent 8bd55ca2e4
commit 7ac17c6ed7
Signed by: LamGC
GPG Key ID: 6C5AE2A913941E1D

View File

@ -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);