KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > ch > ethz > ssh2 > ConnectionInfo


1
2 package ch.ethz.ssh2;
3
4 /**
5  * In most cases you probably do not need the information contained in here.
6  *
7  * @author Christian Plattner, plattner@inf.ethz.ch
8  * @version $Id: ConnectionInfo.java,v 1.3 2005/08/24 17:54:10 cplattne Exp $
9  */

10 public class ConnectionInfo
11 {
12     /**
13      * The used key exchange (KEX) algorithm in the latest key exchange.
14      */

15     public String JavaDoc keyExchangeAlgorithm;
16
17     /**
18      * The currently used crypto algorithm for packets from to the client to the
19      * server.
20      */

21     public String JavaDoc clientToServerCryptoAlgorithm;
22     /**
23      * The currently used crypto algorithm for packets from to the server to the
24      * client.
25      */

26     public String JavaDoc serverToClientCryptoAlgorithm;
27
28     /**
29      * The currently used MAC algorithm for packets from to the client to the
30      * server.
31      */

32     public String JavaDoc clientToServerMACAlgorithm;
33     /**
34      * The currently used MAC algorithm for packets from to the server to the
35      * client.
36      */

37     public String JavaDoc serverToClientMACAlgorithm;
38
39     /**
40      * The type of the server host key (currently either "ssh-dss" or
41      * "ssh-rsa").
42      */

43     public String JavaDoc serverHostKeyAlgorithm;
44     /**
45      * The server host key that was sent during the latest key exchange.
46      */

47     public byte[] serverHostKey;
48
49     /**
50      * Number of kex exchanges performed on this connection so far.
51      */

52     public int keyExchangeCounter = 0;
53 }
54
Popular Tags