comparison src/ch/ethz/ssh2/auth/AuthenticationManager.java @ 320:5afb8c1a54b9 ganymed

add ecdsa key support everywhere
author Carl Byington <carl@five-ten-sg.com>
date Thu, 31 Jul 2014 08:36:33 -0700
parents 071eccdff8ea
children 90537ba71897
comparison
equal deleted inserted replaced
319:776a220dbcc6 320:5afb8c1a54b9
307 } 307 }
308 308
309 throw new PacketTypeException(type); 309 throw new PacketTypeException(type);
310 } 310 }
311 catch (IOException e) { 311 catch (IOException e) {
312 tm.close(e); 312 tm.close(e, false);
313 throw e; 313 throw e;
314 } 314 }
315 } 315 }
316 316
317 public boolean authenticateNone(String user) throws IOException { 317 public boolean authenticateNone(String user) throws IOException {
318 try { 318 try {
319 initialize(user); 319 initialize(user);
320 return authenticated; 320 return authenticated;
321 } 321 }
322 catch (IOException e) { 322 catch (IOException e) {
323 tm.close(e); 323 tm.close(e, false);
324 throw e; 324 throw e;
325 } 325 }
326 } 326 }
327 327
328 public boolean authenticatePassword(String user, String pass) throws IOException { 328 public boolean authenticatePassword(String user, String pass) throws IOException {
352 } 352 }
353 353
354 throw new PacketTypeException(type); 354 throw new PacketTypeException(type);
355 } 355 }
356 catch (IOException e) { 356 catch (IOException e) {
357 tm.close(e); 357 tm.close(e, false);
358 throw e; 358 throw e;
359 } 359 }
360 } 360 }
361 361
362 public boolean authenticateInteractive(String user, String[] submethods, InteractiveCallback cb) throws IOException { 362 public boolean authenticateInteractive(String user, String[] submethods, InteractiveCallback cb) throws IOException {
407 407
408 throw new PacketTypeException(type); 408 throw new PacketTypeException(type);
409 } 409 }
410 } 410 }
411 catch (IOException e) { 411 catch (IOException e) {
412 tm.close(e); 412 tm.close(e, false);
413 throw e; 413 throw e;
414 } 414 }
415 } 415 }
416 416
417 public void handleFailure(final IOException failure) { 417 public void handleFailure(final IOException failure) {