From 7ac17c6ed77c7271fd1b77aef538118f926010f5 Mon Sep 17 00:00:00 2001 From: LamGC Date: Fri, 20 Aug 2021 00:46:38 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20Ssh=20AuthInfo=20?= =?UTF-8?q?=E6=9C=AA=E5=8A=A0=E8=BD=BD=20keyPassword=20=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 该问题原因是忘记写了. --- .../oracle/sentry/oci/compute/ssh/SshAuthInfoSerializer.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/net/lamgc/oracle/sentry/oci/compute/ssh/SshAuthInfoSerializer.java b/src/main/java/net/lamgc/oracle/sentry/oci/compute/ssh/SshAuthInfoSerializer.java index 14f59d5..0509b2a 100644 --- a/src/main/java/net/lamgc/oracle/sentry/oci/compute/ssh/SshAuthInfoSerializer.java +++ b/src/main/java/net/lamgc/oracle/sentry/oci/compute/ssh/SshAuthInfoSerializer.java @@ -49,6 +49,7 @@ public final class SshAuthInfoSerializer implements JsonSerializer, 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);