01: package ch.ethz.ssh2;
02:
03: /**
04: * In most cases you probably do not need the information contained in here.
05: *
06: * @author Christian Plattner, plattner@inf.ethz.ch
07: * @version $Id: ConnectionInfo.java,v 1.3 2005/08/24 17:54:10 cplattne Exp $
08: */
09: public class ConnectionInfo {
10: /**
11: * The used key exchange (KEX) algorithm in the latest key exchange.
12: */
13: public String keyExchangeAlgorithm;
14:
15: /**
16: * The currently used crypto algorithm for packets from to the client to the
17: * server.
18: */
19: public String clientToServerCryptoAlgorithm;
20: /**
21: * The currently used crypto algorithm for packets from to the server to the
22: * client.
23: */
24: public String serverToClientCryptoAlgorithm;
25:
26: /**
27: * The currently used MAC algorithm for packets from to the client to the
28: * server.
29: */
30: public String clientToServerMACAlgorithm;
31: /**
32: * The currently used MAC algorithm for packets from to the server to the
33: * client.
34: */
35: public String serverToClientMACAlgorithm;
36:
37: /**
38: * The type of the server host key (currently either "ssh-dss" or
39: * "ssh-rsa").
40: */
41: public String serverHostKeyAlgorithm;
42: /**
43: * The server host key that was sent during the latest key exchange.
44: */
45: public byte[] serverHostKey;
46:
47: /**
48: * Number of kex exchanges performed on this connection so far.
49: */
50: public int keyExchangeCounter = 0;
51: }
|