com.jscape.inet.ssh.transport.kex.messages
Class SshMsgKexDhReply
java.lang.Object
com.jscape.inet.ssh.transport.Message
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)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
TYPE
public static final int TYPE
- Message type code.
- See Also:
- Constant Field Values
SshMsgKexDhReply
public SshMsgKexDhReply(byte[] serverHostKey,
java.math.BigInteger f,
byte[] signature)
- Parameters:
serverHostKey
- f
- signature
-
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
Copyright © JSCAPE LLC. 1999-2011. All Rights Reserved