diff --git a/app/src/main/java/app/trigger/ssh/SshTools.java b/app/src/main/java/app/trigger/ssh/SshTools.java index a4ac757c..ce5d2db6 100644 --- a/app/src/main/java/app/trigger/ssh/SshTools.java +++ b/app/src/main/java/app/trigger/ssh/SshTools.java @@ -69,10 +69,6 @@ public static KeyPairBean deserializeKeyPair_3_2_3(String str) { } try { - //JSch jsch = new JSch(); - //KeyPair keypair = KeyPair.load(jsch, str.getBytes(), null); - //keypair.setPublicKeyComment(null); - //return keypair; return parsePrivateKeyPEM(str); } catch (Exception e) { Log.e(TAG, "deserialize error: " + e.toString()); @@ -96,11 +92,6 @@ public static KeyPairBean deserializeKeyPair_1_9_1(String str) { KeyPairData obj = (KeyPairData) ios.readObject(); return parsePrivateKeyPEM(new String(obj.prvkey)); - - // KeyParData to KeyPair - //JSch jsch = new JSch(); - //KeyPair keypair = KeyPair.load(jsch, obj.prvkey, obj.pubkey); - //return keypair; } catch (Exception e) { Log.e(TAG, "deserialize error: " + e.toString()); }