Mercurial > 510Connectbot
comparison src/ch/ethz/ssh2/transport/KexParameters.java @ 273:91a31873c42a ganymed
start conversion from trilead to ganymed
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Fri, 18 Jul 2014 11:21:46 -0700 |
parents | |
children | 071eccdff8ea |
comparison
equal
deleted
inserted
replaced
272:ce2f4e397703 | 273:91a31873c42a |
---|---|
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 import java.util.Arrays; | |
8 | |
9 /** | |
10 * @author Christian Plattner | |
11 * @version $Id: KexParameters.java 159 2014-05-01 14:12:34Z dkocher@sudo.ch $ | |
12 */ | |
13 public class KexParameters | |
14 { | |
15 public byte[] cookie; | |
16 public String[] kex_algorithms; | |
17 public String[] server_host_key_algorithms; | |
18 public String[] encryption_algorithms_client_to_server; | |
19 public String[] encryption_algorithms_server_to_client; | |
20 public String[] mac_algorithms_client_to_server; | |
21 public String[] mac_algorithms_server_to_client; | |
22 public String[] compression_algorithms_client_to_server; | |
23 public String[] compression_algorithms_server_to_client; | |
24 public String[] languages_client_to_server; | |
25 public String[] languages_server_to_client; | |
26 public boolean first_kex_packet_follows; | |
27 public int reserved_field1; | |
28 | |
29 @Override | |
30 public String toString() { | |
31 final StringBuilder sb = new StringBuilder("KexParameters{"); | |
32 sb.append("cookie=").append(Arrays.toString(cookie)); | |
33 sb.append(", kex_algorithms=").append(Arrays.toString(kex_algorithms)); | |
34 sb.append(", server_host_key_algorithms=").append(Arrays.toString(server_host_key_algorithms)); | |
35 sb.append(", encryption_algorithms_client_to_server=").append(Arrays.toString(encryption_algorithms_client_to_server)); | |
36 sb.append(", encryption_algorithms_server_to_client=").append(Arrays.toString(encryption_algorithms_server_to_client)); | |
37 sb.append(", mac_algorithms_client_to_server=").append(Arrays.toString(mac_algorithms_client_to_server)); | |
38 sb.append(", mac_algorithms_server_to_client=").append(Arrays.toString(mac_algorithms_server_to_client)); | |
39 sb.append(", compression_algorithms_client_to_server=").append(Arrays.toString(compression_algorithms_client_to_server)); | |
40 sb.append(", compression_algorithms_server_to_client=").append(Arrays.toString(compression_algorithms_server_to_client)); | |
41 sb.append(", languages_client_to_server=").append(Arrays.toString(languages_client_to_server)); | |
42 sb.append(", languages_server_to_client=").append(Arrays.toString(languages_server_to_client)); | |
43 sb.append(", first_kex_packet_follows=").append(first_kex_packet_follows); | |
44 sb.append(", reserved_field1=").append(reserved_field1); | |
45 sb.append('}'); | |
46 return sb.toString(); | |
47 } | |
48 } |