comparison app/src/main/java/ch/ethz/ssh2/transport/KexParameters.java @ 438:d29cce60f393

migrate from Eclipse to Android Studio
author Carl Byington <carl@five-ten-sg.com>
date Thu, 03 Dec 2015 11:23:55 -0800
parents src/ch/ethz/ssh2/transport/KexParameters.java@071eccdff8ea
children
comparison
equal deleted inserted replaced
437:208b31032318 438:d29cce60f393
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 public byte[] cookie;
15 public String[] kex_algorithms;
16 public String[] server_host_key_algorithms;
17 public String[] encryption_algorithms_client_to_server;
18 public String[] encryption_algorithms_server_to_client;
19 public String[] mac_algorithms_client_to_server;
20 public String[] mac_algorithms_server_to_client;
21 public String[] compression_algorithms_client_to_server;
22 public String[] compression_algorithms_server_to_client;
23 public String[] languages_client_to_server;
24 public String[] languages_server_to_client;
25 public boolean first_kex_packet_follows;
26 public int reserved_field1;
27
28 @Override
29 public String toString() {
30 final StringBuilder sb = new StringBuilder("KexParameters{");
31 sb.append("cookie=").append(Arrays.toString(cookie));
32 sb.append(", kex_algorithms=").append(Arrays.toString(kex_algorithms));
33 sb.append(", server_host_key_algorithms=").append(Arrays.toString(server_host_key_algorithms));
34 sb.append(", encryption_algorithms_client_to_server=").append(Arrays.toString(encryption_algorithms_client_to_server));
35 sb.append(", encryption_algorithms_server_to_client=").append(Arrays.toString(encryption_algorithms_server_to_client));
36 sb.append(", mac_algorithms_client_to_server=").append(Arrays.toString(mac_algorithms_client_to_server));
37 sb.append(", mac_algorithms_server_to_client=").append(Arrays.toString(mac_algorithms_server_to_client));
38 sb.append(", compression_algorithms_client_to_server=").append(Arrays.toString(compression_algorithms_client_to_server));
39 sb.append(", compression_algorithms_server_to_client=").append(Arrays.toString(compression_algorithms_server_to_client));
40 sb.append(", languages_client_to_server=").append(Arrays.toString(languages_client_to_server));
41 sb.append(", languages_server_to_client=").append(Arrays.toString(languages_server_to_client));
42 sb.append(", first_kex_packet_follows=").append(first_kex_packet_follows);
43 sb.append(", reserved_field1=").append(reserved_field1);
44 sb.append('}');
45 return sb.toString();
46 }
47 }