Mercurial > 510Connectbot
comparison 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 |
comparison
equal
deleted
inserted
replaced
282:c3019725b123 | 283:3855f58ffd2b |
---|---|
198 return false; | 198 return false; |
199 } | 199 } |
200 throw new PacketTypeException(type); | 200 throw new PacketTypeException(type); |
201 } | 201 } |
202 | 202 |
203 public boolean authenticatePublicKey(String user, KeyPair pair, String password, SecureRandom rnd) | 203 public boolean authenticatePublicKey(String user, char[] PEMPrivateKey, String password, SecureRandom rnd) |
204 throws IOException { | |
205 KeyPair pair = PEMDecoder.decode(PEMPrivateKey, password); | |
206 return authenticatePublicKey(user, pair, rnd); | |
207 } | |
208 | |
209 public boolean authenticatePublicKey(String user, KeyPair pair, SecureRandom rnd) | |
204 throws IOException { | 210 throws IOException { |
205 PrivateKey key = pair.getPrivate(); | 211 PrivateKey key = pair.getPrivate(); |
206 try { | 212 try { |
207 initialize(user); | 213 initialize(user); |
208 | 214 |