Secure iNet Factory

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

java.lang.Object
  extended by com.jscape.inet.ssh.transport.Message
      extended by com.jscape.inet.ssh.transport.messages.SshMsgNewKeys

public class SshMsgNewKeys
extends Message

The new keys message: SSH_MSG_NEWKEYS. This message is sent with the old keys and algorithms. All messages sent after this message must use the new keys and algorithms. When this message is received, the new keys and algorithms must be taken into use for receiving. This message is the only valid message after key exchange, in addition to SSH_MSG_DEBUG, SSH_MSG_DISCONNECT and SSH_MSG_IGNORE messages. The purpose of this message is to ensure that a party is able to respond with a disconnect message that the other party can understand if something goes wrong with the key exchange.

Version:
1.0
Author:
Alex Usun

Field Summary
static int TYPE
          Message type code.
 
Constructor Summary
SshMsgNewKeys()
          Creates a new message instance.
 
Method Summary
static SshMsgNewKeys readFrom(java.io.InputStream in)
           
static Message readFrom(SshReader reader)
          Reads the message from the reader.
 java.lang.String toString()
          Returns the string representation of this message.
 
Methods inherited from class com.jscape.inet.ssh.transport.Message
getId, getType, readFrom, readFrom, setId, writeTo, 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

SshMsgNewKeys

public SshMsgNewKeys()
Creates a new message instance.

Method Detail

readFrom

public static SshMsgNewKeys readFrom(java.io.InputStream in)
Parameters:
in -
Returns:
SshMsgNewKeys instance

readFrom

public static Message readFrom(SshReader reader)
Reads the message from the reader.

Parameters:
reader - the SSH types reader
Returns:
the readed message

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