Mercurial > 510Connectbot
diff src/ch/ethz/ssh2/auth/AuthenticationManager.java @ 283:3855f58ffd2b ganymed
start conversion from trilead to ganymed
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Fri, 18 Jul 2014 17:32:11 -0700 |
parents | c3019725b123 |
children | 4ec87de11e71 |
line wrap: on
line diff
--- a/src/ch/ethz/ssh2/auth/AuthenticationManager.java Fri Jul 18 17:19:41 2014 -0700 +++ b/src/ch/ethz/ssh2/auth/AuthenticationManager.java Fri Jul 18 17:32:11 2014 -0700 @@ -200,7 +200,13 @@ throw new PacketTypeException(type); } - public boolean authenticatePublicKey(String user, KeyPair pair, String password, SecureRandom rnd) + public boolean authenticatePublicKey(String user, char[] PEMPrivateKey, String password, SecureRandom rnd) + throws IOException { + KeyPair pair = PEMDecoder.decode(PEMPrivateKey, password); + return authenticatePublicKey(user, pair, rnd); + } + + public boolean authenticatePublicKey(String user, KeyPair pair, SecureRandom rnd) throws IOException { PrivateKey key = pair.getPrivate(); try {