net.sf.commons.ssh.j2ssh
Class J2sshConnectionFactory

java.lang.Object
  extended by net.sf.commons.ssh.ConnectionFactory
      extended by net.sf.commons.ssh.j2ssh.J2sshConnectionFactory

public class J2sshConnectionFactory
extends ConnectionFactory

Since:
1.0
Author:
Sergey Vidyuk (svidyuk at gmail dot com)

Field Summary
 
Fields inherited from class net.sf.commons.ssh.ConnectionFactory
log
 
Constructor Summary
J2sshConnectionFactory()
          Creates new instance of J2sshConnectionFactory
 
Method Summary
 long getKexTransferLimit()
          The key exchange transfer limit in kilobytes Once this amount of data has been transfered the transport protocol will initiate a key re-exchange.
protected  java.util.Set getSupportedFeaturesImpl()
          Creates Set of String — the set of supported features codes.
 Connection openConnection(java.lang.String host, int port, AuthenticationOptions authOptions)
          Creates new SSH connection using the specified connection settings
 void setKexTransferLimit(long kexTransferLimit)
          The key exchange transfer limit in kilobytes Once this amount of data has been transfered the transport protocol will initiate a key re-exchange.
 
Methods inherited from class net.sf.commons.ssh.ConnectionFactory
getKexTimeout, getPort, getSoTimeout, getSupportedFeatures, isFeatureSupported, isSendIgnore, newInstance, openConnection, setKexTimeout, setPort, setSendIgnore, setSoTimeout
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

J2sshConnectionFactory

public J2sshConnectionFactory()
Creates new instance of J2sshConnectionFactory

Method Detail

getKexTransferLimit

public long getKexTransferLimit()
The key exchange transfer limit in kilobytes Once this amount of data has been transfered the transport protocol will initiate a key re-exchange. The default value is one Gb of data with the minimum value of 10 kilobytes.

Returns:
the key exchange transfer limit in kilobytes
Since:
1.0

getSupportedFeaturesImpl

protected java.util.Set getSupportedFeaturesImpl()
Description copied from class: ConnectionFactory
Creates Set of String — the set of supported features codes.

Specified by:
getSupportedFeaturesImpl in class ConnectionFactory
Returns:
Set of String — the set of supported features codes.
See Also:
ConnectionFactory.isFeatureSupported(String), Features

openConnection

public Connection openConnection(java.lang.String host,
                                 int port,
                                 AuthenticationOptions authOptions)
                          throws java.io.IOException
Description copied from class: ConnectionFactory
Creates new SSH connection using the specified connection settings

Specified by:
openConnection in class ConnectionFactory
Parameters:
host - host to connect
port - port to connect
authOptions - Authentication Options (should be supported by connection factory)
Returns:
new SSH connection
Throws:
java.io.IOException - if I/O exception occurs

setKexTransferLimit

public void setKexTransferLimit(long kexTransferLimit)
The key exchange transfer limit in kilobytes Once this amount of data has been transfered the transport protocol will initiate a key re-exchange. The default value is one Gb of data with the minimum value of 10 kilobytes.

Parameters:
kexTransferLimit - the key exchange transfer limit in kilobytes
Since:
1.0


Copyright © 2009. All Rights Reserved.