Secure iNet Factory

com.jscape.inet.ssh.transport
Class TransportConfiguration

java.lang.Object
  extended by com.jscape.inet.ssh.transport.TransportConfiguration

public class TransportConfiguration
extends java.lang.Object

The SSH protocol transport level configuration.

Author:
Alex Usun

Constructor Summary
TransportConfiguration()
          Constructor loading default algorithm factory.
 
Method Summary
 boolean checkMac()
          Checks if the SSH messages MAC verification is turned on.
 void checkMac(boolean checkMac)
          Setups the SSH messages MAC verification.
 boolean checkServerKeySignature()
           
 void checkServerKeySignature(boolean checkServerKeySignature)
           
 SshLogger createLogger()
           
 ProtocolVersion createProtocolVersion()
           
 AlgorithmFactory getAlgorithmFactory()
           
 java.lang.String getBanner()
           
 java.lang.String getComments()
           
 HostKeyVerifier getHostKeyVerifier()
          Returns current host key verifier.
 java.util.Map getKeys()
           
 Logger.Level getLoggerLevel()
           
 java.io.PrintStream getLoggerStream()
           
 java.lang.String getProtocolVersion()
           
 java.lang.String getSoftVersion()
           
 void setAlgorithmFactory(AlgorithmFactory algFactory)
           
 void setBanner(java.lang.String banner)
           
 void setComments(java.lang.String comments)
           
 void setHostKeyVerifier(HostKeyVerifier hostKeyVerifier)
          Setups host key verifier.
 void setLoggerLevel(Logger.Level loggerLevel)
           
 void setLoggerStream(java.io.PrintStream loggerStream)
           
 void setProtocolVersion(java.lang.String protocolVersion)
           
 void setSoftVersion(java.lang.String softVersion)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransportConfiguration

public TransportConfiguration()
Constructor loading default algorithm factory.

Method Detail

getLoggerLevel

public Logger.Level getLoggerLevel()
Returns:
logger level

setLoggerLevel

public void setLoggerLevel(Logger.Level loggerLevel)
Parameters:
loggerLevel -

getLoggerStream

public java.io.PrintStream getLoggerStream()
Returns:
print stream

setLoggerStream

public void setLoggerStream(java.io.PrintStream loggerStream)
Parameters:
loggerStream -

createLogger

public SshLogger createLogger()
Returns:
ssh logger

checkMac

public boolean checkMac()
Checks if the SSH messages MAC verification is turned on. By default this feature is enabled.

Returns:
true if the MAC verification is turned on; false otherwise

checkMac

public void checkMac(boolean checkMac)
Setups the SSH messages MAC verification.

Parameters:
checkMac - if true the MAC verification will be turned on

checkServerKeySignature

public boolean checkServerKeySignature()
Returns:
check server key signature

checkServerKeySignature

public void checkServerKeySignature(boolean checkServerKeySignature)
Parameters:
checkServerKeySignature -

getBanner

public java.lang.String getBanner()
Returns:
String

setBanner

public void setBanner(java.lang.String banner)
Parameters:
banner -

getProtocolVersion

public java.lang.String getProtocolVersion()
Returns:
String

setProtocolVersion

public void setProtocolVersion(java.lang.String protocolVersion)
Parameters:
protocolVersion -

getSoftVersion

public java.lang.String getSoftVersion()
Returns:
String

setSoftVersion

public void setSoftVersion(java.lang.String softVersion)
Parameters:
softVersion -

getComments

public java.lang.String getComments()
Returns:
String

setComments

public void setComments(java.lang.String comments)
Parameters:
comments -

createProtocolVersion

public ProtocolVersion createProtocolVersion()
Returns:
protocol version

getKeys

public java.util.Map getKeys()
Returns:
Map

getAlgorithmFactory

public AlgorithmFactory getAlgorithmFactory()
Returns:
AlgorithmFactory

setAlgorithmFactory

public void setAlgorithmFactory(AlgorithmFactory algFactory)
Parameters:
algFactory -

getHostKeyVerifier

public HostKeyVerifier getHostKeyVerifier()
Returns current host key verifier.

Returns:
current host key verifier

setHostKeyVerifier

public void setHostKeyVerifier(HostKeyVerifier hostKeyVerifier)
Setups host key verifier.

Parameters:
hostKeyVerifier - new host key verifier

Secure iNet Factory

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