Secure iNet Factory

com.jscape.inet.ssh.transport.kex.messages
Class SshMsgKexDhReply

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

public class SshMsgKexDhReply
extends Message

Diffie-Hellman key exchange reply message: SSH_MSG_KEXDH_REPLY.

Version:
1.0
Author:
Alex Usun

Field Summary
static int TYPE
          Message type code.
 
Constructor Summary
SshMsgKexDhReply(byte[] serverHostKey, java.math.BigInteger f, byte[] signature)
           
 
Method Summary
 java.math.BigInteger getF()
           
 byte[] getServerHostKey()
           
 byte[] getSignature()
           
static SshMsgKexDhReply readFrom(java.io.InputStream in)
           
 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

SshMsgKexDhReply

public SshMsgKexDhReply(byte[] serverHostKey,
                        java.math.BigInteger f,
                        byte[] signature)
Parameters:
serverHostKey -
f -
signature -
Method Detail

readFrom

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

getServerHostKey

public byte[] getServerHostKey()
Returns:
byte array

getF

public java.math.BigInteger getF()
Returns:
BigInteger instance

getSignature

public byte[] getSignature()
Returns:
byte array

writeTo

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

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