273
|
1 /*
|
|
2 * Copyright (c) 2006-2011 Christian Plattner. All rights reserved.
|
|
3 * Please refer to the LICENSE.txt for licensing details.
|
|
4 */
|
|
5 package ch.ethz.ssh2.transport;
|
|
6
|
|
7 /**
|
|
8 * @author Christian Plattner
|
|
9 * @version $Id: NegotiatedParameters.java 159 2014-05-01 14:12:34Z dkocher@sudo.ch $
|
|
10 */
|
307
|
11 public class NegotiatedParameters {
|
|
12 public boolean guessOK;
|
|
13 public String kex_algo;
|
|
14 public String server_host_key_algo;
|
|
15 public String enc_algo_client_to_server;
|
|
16 public String enc_algo_server_to_client;
|
|
17 public String mac_algo_client_to_server;
|
|
18 public String mac_algo_server_to_client;
|
|
19 public String comp_algo_client_to_server;
|
|
20 public String comp_algo_server_to_client;
|
|
21 public String lang_client_to_server;
|
|
22 public String lang_server_to_client;
|
273
|
23
|
|
24 @Override
|
|
25 public String toString() {
|
|
26 final StringBuilder sb = new StringBuilder("NegotiatedParameters{");
|
|
27 sb.append("guessOK=").append(guessOK);
|
|
28 sb.append(", kex_algo='").append(kex_algo).append('\'');
|
|
29 sb.append(", server_host_key_algo='").append(server_host_key_algo).append('\'');
|
|
30 sb.append(", enc_algo_client_to_server='").append(enc_algo_client_to_server).append('\'');
|
|
31 sb.append(", enc_algo_server_to_client='").append(enc_algo_server_to_client).append('\'');
|
|
32 sb.append(", mac_algo_client_to_server='").append(mac_algo_client_to_server).append('\'');
|
|
33 sb.append(", mac_algo_server_to_client='").append(mac_algo_server_to_client).append('\'');
|
|
34 sb.append(", comp_algo_client_to_server='").append(comp_algo_client_to_server).append('\'');
|
|
35 sb.append(", comp_algo_server_to_client='").append(comp_algo_server_to_client).append('\'');
|
|
36 sb.append(", lang_client_to_server='").append(lang_client_to_server).append('\'');
|
|
37 sb.append(", lang_server_to_client='").append(lang_server_to_client).append('\'');
|
|
38 sb.append('}');
|
|
39 return sb.toString();
|
|
40 }
|
|
41 }
|