comparison app/src/main/java/ch/ethz/ssh2/server/ServerConnectionState.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/server/ServerConnectionState.java@b40bc65fa09a
children
comparison
equal deleted inserted replaced
437:208b31032318 438:d29cce60f393
1 /*
2 * Copyright (c) 2006-2013 Christian Plattner. All rights reserved.
3 * Please refer to the LICENSE.txt for licensing details.
4 */
5 package ch.ethz.ssh2.server;
6
7 import java.net.Socket;
8
9 import ch.ethz.ssh2.ServerAuthenticationCallback;
10 import ch.ethz.ssh2.ServerConnection;
11 import ch.ethz.ssh2.ServerConnectionCallback;
12 import ch.ethz.ssh2.auth.ServerAuthenticationManager;
13 import ch.ethz.ssh2.channel.ChannelManager;
14 import ch.ethz.ssh2.crypto.CryptoWishList;
15 import ch.ethz.ssh2.crypto.SecureRandomFix;
16 import java.security.KeyPair;
17 import java.security.PrivateKey;
18 import java.security.interfaces.DSAPrivateKey;
19 import java.security.interfaces.ECPrivateKey;
20 import java.security.interfaces.RSAPrivateKey;
21 import ch.ethz.ssh2.transport.ClientServerHello;
22 import ch.ethz.ssh2.transport.ServerTransportManager;
23
24 public class ServerConnectionState {
25 public ServerConnection conn;
26
27 public SecureRandomFix generator = new SecureRandomFix();
28
29 public String softwareversion;
30
31 //public String auth_banner = null;
32 public ServerConnectionCallback cb_conn;
33 public ServerAuthenticationCallback cb_auth;
34
35 /* Settings for the next key exchange */
36 public CryptoWishList next_cryptoWishList = CryptoWishList.forServer();
37 public KeyPair next_dsa_key;
38 public KeyPair next_ec_key;
39 public KeyPair next_rsa_key;
40
41 public Socket s;
42
43 public ClientServerHello csh;
44 public ServerTransportManager tm;
45 public ServerAuthenticationManager am;
46 public ChannelManager cm;
47
48 public boolean flag_auth_serviceRequested = false;
49 public boolean flag_auth_completed = false;
50
51 public ServerConnectionState(ServerConnection conn) {
52 this.conn = conn;
53 }
54 }