Secure iNet Factory

com.jscape.inet.ssh
Class SshConfiguration

java.lang.Object
  extended by com.jscape.inet.ssh.SshConfiguration

public class SshConfiguration
extends java.lang.Object

Version:
1.0
Author:
Alex Usun

Constructor Summary
SshConfiguration()
          Default constructor.
SshConfiguration(TransportConfiguration transportConfig)
          Initialize SshConfiguration with a configured instance of TransportConfiguration.
 
Method Summary
 ConnectionClient createConnectionClient(ConnectionParameters parameters, User user)
          Creates a new client instance.
 Logger createLogger()
          Creates a new logger.
 AuthenticationRequest getAuthenticationRequest()
           
 ConnectionConfiguration getConnectionConfiguration()
          Returns the current connection configuration.
 Logger.Level getLoggerLevel()
          Returns the current SSH stack logger level.
 java.io.PrintStream getLoggerStream()
          Returns the current SSH stack logger stream.
 TransportConfiguration getTransportConfiguration()
          Returns the current transport configuration.
 void setAuthenticationRequest(AuthenticationRequest authenticationRequest)
           
 void setConnectionConfiguration(ConnectionConfiguration connectConfig)
          Setups the current connection configuration.
 void setLoggerLevel(Logger.Level loggerLevel)
          Setups the SSH stack logger level.
 void setLoggerStream(java.io.PrintStream loggerStream)
          Setups the SSH stack logger stream.
 void setTransportConfiguration(TransportConfiguration transportConfig)
          Setups the current transport configuration.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SshConfiguration

public SshConfiguration()
Default constructor.


SshConfiguration

public SshConfiguration(TransportConfiguration transportConfig)
Initialize SshConfiguration with a configured instance of TransportConfiguration.

Parameters:
transportConfig -
Method Detail

getLoggerLevel

public Logger.Level getLoggerLevel()
Returns the current SSH stack logger level.

Returns:
the current logger level.

setLoggerLevel

public void setLoggerLevel(Logger.Level loggerLevel)
Setups the SSH stack logger level.

Parameters:
loggerLevel - the logger level

getLoggerStream

public java.io.PrintStream getLoggerStream()
Returns the current SSH stack logger stream.

Returns:
the current logger stream.

setLoggerStream

public void setLoggerStream(java.io.PrintStream loggerStream)
Setups the SSH stack logger stream.

Parameters:
loggerStream - the logger stream

createLogger

public Logger createLogger()
Creates a new logger.

Returns:
a new logger

getTransportConfiguration

public TransportConfiguration getTransportConfiguration()
Returns the current transport configuration.

Returns:
the current transport configuration

setTransportConfiguration

public void setTransportConfiguration(TransportConfiguration transportConfig)
Setups the current transport configuration.

Parameters:
transportConfig - the current transport configuration

getConnectionConfiguration

public ConnectionConfiguration getConnectionConfiguration()
Returns the current connection configuration.

Returns:
the current connection configuration

setConnectionConfiguration

public void setConnectionConfiguration(ConnectionConfiguration connectConfig)
Setups the current connection configuration.

Parameters:
connectConfig - the current connection configuration

getAuthenticationRequest

public AuthenticationRequest getAuthenticationRequest()

setAuthenticationRequest

public void setAuthenticationRequest(AuthenticationRequest authenticationRequest)

createConnectionClient

public ConnectionClient createConnectionClient(ConnectionParameters parameters,
                                               User user)
                                        throws java.io.IOException
Creates a new client instance.

Parameters:
parameters - the connection parameters
user - the user parameters
Returns:
the opened SSH connection
Throws:
java.io.IOException - if an I/O error occurs

Secure iNet Factory

Copyright © JSCAPE LLC. 1999-2011. All Rights Reserved