Secure iNet Factory

com.jscape.inet.ssh.transport.messages
Class SshMsgKexInit

java.lang.Object
  extended by com.jscape.inet.ssh.transport.Message
      extended by com.jscape.inet.ssh.transport.messages.SshMsgKexInit
All Implemented Interfaces:
TransportDispatchable

public class SshMsgKexInit
extends Message
implements TransportDispatchable

Algorithm negotiation message: SSH_MSG_KEXINIT.

Version:
1.0
Author:
Alex Usun

Field Summary
static int TYPE
          Message type code.
 
Constructor Summary
SshMsgKexInit()
          Creates a new message instance.
SshMsgKexInit(byte[] serialized)
           
 
Method Summary
 boolean accept(TransportMessageDispatcher dispatcher)
          Calls an appropriate dispatcher method.
 SshNameList getClientServerCompressionAlgorithms()
           
 SshNameList getClientServerEncryptionAlgorithms()
           
 SshNameList getClientServerLnguages()
           
 SshNameList getClientServerMacAlgorithms()
           
 byte[] getCookie()
          Returns the message cookie.
 SshBoolean getFirstKexPacketFollows()
           
 SshNameList getKexAlgorithms()
           
 long getReserved()
           
 SshNameList getServerClientCompressionAlgorithms()
           
 SshNameList getServerClientEncryptionAlgorithms()
           
 SshNameList getServerClientLanguages()
           
 SshNameList getServerClientMacAlgorithms()
           
 SshNameList getServerHostKeyAlgorithms()
           
static SshMsgKexInit readFrom(java.io.InputStream in)
           
 void setClientServerCompressionAlgorithms(SshNameList clientServerCompressionAlgorithms)
           
 void setClientServerEncryptionAlgorithms(SshNameList clientServerEncryptionAlgorithms)
           
 void setClientServerLnguages(SshNameList clientServerLnguages)
           
 void setClientServerMacAlgorithms(SshNameList clientServerMacAlgorithms)
           
 void setCookie(byte[] cookie)
          Set
 void setFirstKexPacketFollows(SshBoolean firstKexPacketFollows)
           
 void setKexAlgorithms(SshNameList kexAlgorithms)
           
 void setReserved(long reserved)
           
 void setServerClientCompressionAlgorithms(SshNameList serverClientCompressionAlgorithms)
           
 void setServerClientEncryptionAlgorithms(SshNameList serverClientEncryptionAlgorithms)
           
 void setServerClientLanguages(SshNameList serverClientLanguages)
           
 void setServerClientMacAlgorithms(SshNameList serverClientMacAlgorithms)
           
 void setServerHostKeyAlgorithms(SshNameList serverHostKeyAlgorithms)
           
 java.lang.String toString()
          Returns the string representation of this message.
 void writeTo(java.io.OutputStream out)
           
 
Methods inherited from class com.jscape.inet.ssh.transport.Message
getId, getType, readFrom, readFrom, setId, writeTo
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TYPE

public static final int TYPE
Message type code.

See Also:
Constant Field Values
Constructor Detail

SshMsgKexInit

public SshMsgKexInit()
Creates a new message instance.


SshMsgKexInit

public SshMsgKexInit(byte[] serialized)
              throws java.io.IOException
Throws:
java.io.IOException
Method Detail

readFrom

public static SshMsgKexInit readFrom(java.io.InputStream in)
                              throws java.io.IOException
Parameters:
in -
Returns:
SshMsgKexInit instance
Throws:
java.io.IOException

getCookie

public byte[] getCookie()
Returns the message cookie.

Returns:
the message cookie

setCookie

public void setCookie(byte[] cookie)
Set

Parameters:
cookie -

getKexAlgorithms

public SshNameList getKexAlgorithms()
Returns:
kex algorithms

setKexAlgorithms

public void setKexAlgorithms(SshNameList kexAlgorithms)
Parameters:
kexAlgorithms -

getServerHostKeyAlgorithms

public SshNameList getServerHostKeyAlgorithms()
Returns:
server host key algorithms

setServerHostKeyAlgorithms

public void setServerHostKeyAlgorithms(SshNameList serverHostKeyAlgorithms)
Parameters:
serverHostKeyAlgorithms -

getClientServerEncryptionAlgorithms

public SshNameList getClientServerEncryptionAlgorithms()
Returns:
SshNameList instance

setClientServerEncryptionAlgorithms

public void setClientServerEncryptionAlgorithms(SshNameList clientServerEncryptionAlgorithms)
Parameters:
clientServerEncryptionAlgorithms -

getServerClientEncryptionAlgorithms

public SshNameList getServerClientEncryptionAlgorithms()
Returns:
SshNameList instance

setServerClientEncryptionAlgorithms

public void setServerClientEncryptionAlgorithms(SshNameList serverClientEncryptionAlgorithms)
Parameters:
serverClientEncryptionAlgorithms -

getClientServerMacAlgorithms

public SshNameList getClientServerMacAlgorithms()
Returns:
SshNameList instance

setClientServerMacAlgorithms

public void setClientServerMacAlgorithms(SshNameList clientServerMacAlgorithms)
Parameters:
clientServerMacAlgorithms -

getServerClientMacAlgorithms

public SshNameList getServerClientMacAlgorithms()
Returns:
SshNameList instance

setServerClientMacAlgorithms

public void setServerClientMacAlgorithms(SshNameList serverClientMacAlgorithms)
Parameters:
serverClientMacAlgorithms -

getClientServerCompressionAlgorithms

public SshNameList getClientServerCompressionAlgorithms()
Returns:
SshNameList instance

setClientServerCompressionAlgorithms

public void setClientServerCompressionAlgorithms(SshNameList clientServerCompressionAlgorithms)
Parameters:
clientServerCompressionAlgorithms -

getServerClientCompressionAlgorithms

public SshNameList getServerClientCompressionAlgorithms()
Returns:
SshNameList instance

setServerClientCompressionAlgorithms

public void setServerClientCompressionAlgorithms(SshNameList serverClientCompressionAlgorithms)
Parameters:
serverClientCompressionAlgorithms -

getClientServerLnguages

public SshNameList getClientServerLnguages()
Returns:
SshNameList instance

setClientServerLnguages

public void setClientServerLnguages(SshNameList clientServerLnguages)
Parameters:
clientServerLnguages -

getServerClientLanguages

public SshNameList getServerClientLanguages()
Returns:
SshNameList instance

setServerClientLanguages

public void setServerClientLanguages(SshNameList serverClientLanguages)
Parameters:
serverClientLanguages -

getFirstKexPacketFollows

public SshBoolean getFirstKexPacketFollows()
Returns:
SshBoolean instance

setFirstKexPacketFollows

public void setFirstKexPacketFollows(SshBoolean firstKexPacketFollows)
Parameters:
firstKexPacketFollows -

getReserved

public long getReserved()
Returns:
reserved long value

setReserved

public void setReserved(long reserved)
Parameters:
reserved -

writeTo

public void writeTo(java.io.OutputStream out)
             throws java.io.IOException
Overrides:
writeTo in class Message
Parameters:
out -
Throws:
java.io.IOException

accept

public boolean accept(TransportMessageDispatcher dispatcher)
Calls an appropriate dispatcher method.

Specified by:
accept in interface TransportDispatchable
Parameters:
dispatcher - the message dispatcher
Returns:
true if dispatcher can dispatch this message; false otherwise

toString

public java.lang.String toString()
Returns the string representation of this message.

Overrides:
toString in class java.lang.Object
Returns:
the string representation of this message

Secure iNet Factory

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