view src/ch/ethz/ssh2/server/ServerConnectionState.java @ 273:91a31873c42a ganymed

start conversion from trilead to ganymed
author Carl Byington <carl@five-ten-sg.com>
date Fri, 18 Jul 2014 11:21:46 -0700
parents
children d7e088fa2123
line wrap: on
line source

/*
 * Copyright (c) 2006-2013 Christian Plattner. All rights reserved.
 * Please refer to the LICENSE.txt for licensing details.
 */
package ch.ethz.ssh2.server;

import java.net.Socket;
import java.security.SecureRandom;

import ch.ethz.ssh2.ServerAuthenticationCallback;
import ch.ethz.ssh2.ServerConnection;
import ch.ethz.ssh2.ServerConnectionCallback;
import ch.ethz.ssh2.auth.ServerAuthenticationManager;
import ch.ethz.ssh2.channel.ChannelManager;
import ch.ethz.ssh2.crypto.CryptoWishList;
import ch.ethz.ssh2.signature.DSAPrivateKey;
import ch.ethz.ssh2.signature.RSAPrivateKey;
import ch.ethz.ssh2.transport.ClientServerHello;
import ch.ethz.ssh2.transport.ServerTransportManager;

public class ServerConnectionState
{
	public ServerConnection conn;
	
	public SecureRandom generator = new SecureRandom();
	
	public String softwareversion;
	
	//public String auth_banner = null;
	public ServerConnectionCallback cb_conn;
	public ServerAuthenticationCallback cb_auth;
	
	/* Settings for the next key exchange */
	public CryptoWishList next_cryptoWishList = CryptoWishList.forServer();
	public DSAPrivateKey next_dsa_key;
	public RSAPrivateKey next_rsa_key;
	
	public Socket s;
	
	public ClientServerHello csh;
	public ServerTransportManager tm;
	public ServerAuthenticationManager am;
	public ChannelManager cm;
	
	public boolean flag_auth_serviceRequested = false;
	public boolean flag_auth_completed = false;

	public ServerConnectionState(ServerConnection conn)
	{
		this.conn = conn;
	}
}