annotate src/ch/ethz/ssh2/server/ServerConnectionState.java @ 422:651aff5a46c7

synchronize font size listeners; log get/set field values
author Carl Byington <carl@five-ten-sg.com>
date Thu, 30 Oct 2014 16:27:31 -0700
parents b40bc65fa09a
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
273
91a31873c42a start conversion from trilead to ganymed
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
1 /*
91a31873c42a start conversion from trilead to ganymed
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
2 * Copyright (c) 2006-2013 Christian Plattner. All rights reserved.
91a31873c42a start conversion from trilead to ganymed
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
3 * Please refer to the LICENSE.txt for licensing details.
91a31873c42a start conversion from trilead to ganymed
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
4 */
91a31873c42a start conversion from trilead to ganymed
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
5 package ch.ethz.ssh2.server;
91a31873c42a start conversion from trilead to ganymed
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
6
91a31873c42a start conversion from trilead to ganymed
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
7 import java.net.Socket;
91a31873c42a start conversion from trilead to ganymed
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
8
91a31873c42a start conversion from trilead to ganymed
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
9 import ch.ethz.ssh2.ServerAuthenticationCallback;
91a31873c42a start conversion from trilead to ganymed
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
10 import ch.ethz.ssh2.ServerConnection;
91a31873c42a start conversion from trilead to ganymed
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
11 import ch.ethz.ssh2.ServerConnectionCallback;
91a31873c42a start conversion from trilead to ganymed
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
12 import ch.ethz.ssh2.auth.ServerAuthenticationManager;
91a31873c42a start conversion from trilead to ganymed
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
13 import ch.ethz.ssh2.channel.ChannelManager;
91a31873c42a start conversion from trilead to ganymed
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
14 import ch.ethz.ssh2.crypto.CryptoWishList;
344
b40bc65fa09a compensate for SecureRandom bug on older devices
Carl Byington <carl@five-ten-sg.com>
parents: 307
diff changeset
15 import ch.ethz.ssh2.crypto.SecureRandomFix;
281
b4ca341c318d start conversion from trilead to ganymed
Carl Byington <carl@five-ten-sg.com>
parents: 278
diff changeset
16 import java.security.KeyPair;
b4ca341c318d start conversion from trilead to ganymed
Carl Byington <carl@five-ten-sg.com>
parents: 278
diff changeset
17 import java.security.PrivateKey;
b4ca341c318d start conversion from trilead to ganymed
Carl Byington <carl@five-ten-sg.com>
parents: 278
diff changeset
18 import java.security.interfaces.DSAPrivateKey;
b4ca341c318d start conversion from trilead to ganymed
Carl Byington <carl@five-ten-sg.com>
parents: 278
diff changeset
19 import java.security.interfaces.ECPrivateKey;
278
d7e088fa2123 start conversion from trilead to ganymed
Carl Byington <carl@five-ten-sg.com>
parents: 273
diff changeset
20 import java.security.interfaces.RSAPrivateKey;
273
91a31873c42a start conversion from trilead to ganymed
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
21 import ch.ethz.ssh2.transport.ClientServerHello;
91a31873c42a start conversion from trilead to ganymed
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
22 import ch.ethz.ssh2.transport.ServerTransportManager;
91a31873c42a start conversion from trilead to ganymed
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
23
307
071eccdff8ea fix java formatting
Carl Byington <carl@five-ten-sg.com>
parents: 286
diff changeset
24 public class ServerConnectionState {
071eccdff8ea fix java formatting
Carl Byington <carl@five-ten-sg.com>
parents: 286
diff changeset
25 public ServerConnection conn;
281
b4ca341c318d start conversion from trilead to ganymed
Carl Byington <carl@five-ten-sg.com>
parents: 278
diff changeset
26
344
b40bc65fa09a compensate for SecureRandom bug on older devices
Carl Byington <carl@five-ten-sg.com>
parents: 307
diff changeset
27 public SecureRandomFix generator = new SecureRandomFix();
281
b4ca341c318d start conversion from trilead to ganymed
Carl Byington <carl@five-ten-sg.com>
parents: 278
diff changeset
28
307
071eccdff8ea fix java formatting
Carl Byington <carl@five-ten-sg.com>
parents: 286
diff changeset
29 public String softwareversion;
281
b4ca341c318d start conversion from trilead to ganymed
Carl Byington <carl@five-ten-sg.com>
parents: 278
diff changeset
30
307
071eccdff8ea fix java formatting
Carl Byington <carl@five-ten-sg.com>
parents: 286
diff changeset
31 //public String auth_banner = null;
071eccdff8ea fix java formatting
Carl Byington <carl@five-ten-sg.com>
parents: 286
diff changeset
32 public ServerConnectionCallback cb_conn;
071eccdff8ea fix java formatting
Carl Byington <carl@five-ten-sg.com>
parents: 286
diff changeset
33 public ServerAuthenticationCallback cb_auth;
281
b4ca341c318d start conversion from trilead to ganymed
Carl Byington <carl@five-ten-sg.com>
parents: 278
diff changeset
34
307
071eccdff8ea fix java formatting
Carl Byington <carl@five-ten-sg.com>
parents: 286
diff changeset
35 /* Settings for the next key exchange */
071eccdff8ea fix java formatting
Carl Byington <carl@five-ten-sg.com>
parents: 286
diff changeset
36 public CryptoWishList next_cryptoWishList = CryptoWishList.forServer();
071eccdff8ea fix java formatting
Carl Byington <carl@five-ten-sg.com>
parents: 286
diff changeset
37 public KeyPair next_dsa_key;
071eccdff8ea fix java formatting
Carl Byington <carl@five-ten-sg.com>
parents: 286
diff changeset
38 public KeyPair next_ec_key;
071eccdff8ea fix java formatting
Carl Byington <carl@five-ten-sg.com>
parents: 286
diff changeset
39 public KeyPair next_rsa_key;
281
b4ca341c318d start conversion from trilead to ganymed
Carl Byington <carl@five-ten-sg.com>
parents: 278
diff changeset
40
307
071eccdff8ea fix java formatting
Carl Byington <carl@five-ten-sg.com>
parents: 286
diff changeset
41 public Socket s;
281
b4ca341c318d start conversion from trilead to ganymed
Carl Byington <carl@five-ten-sg.com>
parents: 278
diff changeset
42
307
071eccdff8ea fix java formatting
Carl Byington <carl@five-ten-sg.com>
parents: 286
diff changeset
43 public ClientServerHello csh;
071eccdff8ea fix java formatting
Carl Byington <carl@five-ten-sg.com>
parents: 286
diff changeset
44 public ServerTransportManager tm;
071eccdff8ea fix java formatting
Carl Byington <carl@five-ten-sg.com>
parents: 286
diff changeset
45 public ServerAuthenticationManager am;
071eccdff8ea fix java formatting
Carl Byington <carl@five-ten-sg.com>
parents: 286
diff changeset
46 public ChannelManager cm;
281
b4ca341c318d start conversion from trilead to ganymed
Carl Byington <carl@five-ten-sg.com>
parents: 278
diff changeset
47
307
071eccdff8ea fix java formatting
Carl Byington <carl@five-ten-sg.com>
parents: 286
diff changeset
48 public boolean flag_auth_serviceRequested = false;
071eccdff8ea fix java formatting
Carl Byington <carl@five-ten-sg.com>
parents: 286
diff changeset
49 public boolean flag_auth_completed = false;
273
91a31873c42a start conversion from trilead to ganymed
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
50
307
071eccdff8ea fix java formatting
Carl Byington <carl@five-ten-sg.com>
parents: 286
diff changeset
51 public ServerConnectionState(ServerConnection conn) {
071eccdff8ea fix java formatting
Carl Byington <carl@five-ten-sg.com>
parents: 286
diff changeset
52 this.conn = conn;
071eccdff8ea fix java formatting
Carl Byington <carl@five-ten-sg.com>
parents: 286
diff changeset
53 }
273
91a31873c42a start conversion from trilead to ganymed
Carl Byington <carl@five-ten-sg.com>
parents:
diff changeset
54 }