com.sshtools.j2ssh.transport
Class SshMsgKexInit

java.lang.Object
  extended by com.sshtools.j2ssh.transport.SshMessage
      extended by com.sshtools.j2ssh.transport.SshMsgKexInit

public class SshMsgKexInit
extends SshMessage

Version:
$Revision: 1.1 $
Author:
$author$

Field Summary
private  byte[] cookie
           
private  boolean firstKexFollows
           
protected static int SSH_MSG_KEX_INIT
           
private  java.util.List supportedCompCS
           
private  java.util.List supportedCompSC
           
private  java.util.List supportedEncryptCS
           
private  java.util.List supportedEncryptSC
           
private  java.util.List supportedKex
           
private  java.util.List supportedLangCS
           
private  java.util.List supportedLangSC
           
private  java.util.List supportedMacCS
           
private  java.util.List supportedMacSC
           
private  java.util.List supportedPK
           
 
Constructor Summary
SshMsgKexInit()
          Creates a new SshMsgKexInit object.
SshMsgKexInit(SshConnectionProperties props)
          Creates a new SshMsgKexInit object.
 
Method Summary
protected  void constructByteArray(ByteArrayWriter baw)
           Message implementations should implement this method, writing the data as exected in the transport protocol message format.
protected  void constructMessage(ByteArrayReader bar)
           Message implementation should implement this method, reading the data as expected in the transport protocol message format.
 java.lang.String createDelimString(java.util.List list)
           
 java.lang.String getMessageName()
           Returns the name of the message implementation for debugging purposes.
 java.util.List getSupportedCSComp()
           
 java.util.List getSupportedCSEncryption()
           
 java.util.List getSupportedCSMac()
           
 java.util.List getSupportedKex()
           
 java.util.List getSupportedPublicKeys()
           
 java.util.List getSupportedSCComp()
           
 java.util.List getSupportedSCEncryption()
           
 java.util.List getSupportedSCMac()
           
private  java.util.List loadListFromString(java.lang.String str)
           
 void setSupportedPK(java.util.List pks)
           
private  java.util.List sortAlgorithmList(java.util.List list, java.lang.String pref)
           
 java.lang.String toString()
           
 
Methods inherited from class com.sshtools.j2ssh.transport.SshMessage
fromByteArray, getMessageId, getMessageId, toByteArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SSH_MSG_KEX_INIT

protected static final int SSH_MSG_KEX_INIT
See Also:
Constant Field Values

supportedCompCS

private java.util.List supportedCompCS

supportedCompSC

private java.util.List supportedCompSC

supportedEncryptCS

private java.util.List supportedEncryptCS

supportedEncryptSC

private java.util.List supportedEncryptSC

supportedKex

private java.util.List supportedKex

supportedLangCS

private java.util.List supportedLangCS

supportedLangSC

private java.util.List supportedLangSC

supportedMacCS

private java.util.List supportedMacCS

supportedMacSC

private java.util.List supportedMacSC

supportedPK

private java.util.List supportedPK

cookie

private byte[] cookie

firstKexFollows

private boolean firstKexFollows
Constructor Detail

SshMsgKexInit

public SshMsgKexInit()
Creates a new SshMsgKexInit object.


SshMsgKexInit

public SshMsgKexInit(SshConnectionProperties props)
Creates a new SshMsgKexInit object.

Parameters:
props -
Method Detail

getMessageName

public java.lang.String getMessageName()
Description copied from class: SshMessage

Returns the name of the message implementation for debugging purposes.

Specified by:
getMessageName in class SshMessage
Returns:

getSupportedCSComp

public java.util.List getSupportedCSComp()
Returns:

getSupportedCSEncryption

public java.util.List getSupportedCSEncryption()
Returns:

getSupportedCSMac

public java.util.List getSupportedCSMac()
Returns:

getSupportedKex

public java.util.List getSupportedKex()
Returns:

setSupportedPK

public void setSupportedPK(java.util.List pks)
Parameters:
pks -

getSupportedPublicKeys

public java.util.List getSupportedPublicKeys()
Returns:

getSupportedSCComp

public java.util.List getSupportedSCComp()
Returns:

getSupportedSCEncryption

public java.util.List getSupportedSCEncryption()
Returns:

getSupportedSCMac

public java.util.List getSupportedSCMac()
Returns:

createDelimString

public java.lang.String createDelimString(java.util.List list)
Parameters:
list -
Returns:

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:

constructByteArray

protected void constructByteArray(ByteArrayWriter baw)
                           throws InvalidMessageException
Description copied from class: SshMessage

Message implementations should implement this method, writing the data as exected in the transport protocol message format.

Specified by:
constructByteArray in class SshMessage
Parameters:
baw -
Throws:
InvalidMessageException

constructMessage

protected void constructMessage(ByteArrayReader bar)
                         throws InvalidMessageException
Description copied from class: SshMessage

Message implementation should implement this method, reading the data as expected in the transport protocol message format.

Specified by:
constructMessage in class SshMessage
Parameters:
bar -
Throws:
InvalidMessageException

loadListFromString

private java.util.List loadListFromString(java.lang.String str)

sortAlgorithmList

private java.util.List sortAlgorithmList(java.util.List list,
                                         java.lang.String pref)