com.sshtools.j2ssh.transport.kex

Class SshMsgKexDhReply


public class SshMsgKexDhReply
extends SshMessage

Version:
$Revision: 1.17 $
Author:
$author$

Field Summary

protected static int
SSH_MSG_KEXDH_REPLY

Constructor Summary

SshMsgKexDhReply()
Creates a new SshMsgKexDhReply object.
SshMsgKexDhReply(byte[] hostKey, BigInteger f, byte[] signature)
Creates a new SshMsgKexDhReply object.

Method Summary

protected void
constructByteArray(ByteArrayWriter baw)
protected void
constructMessage(ByteArrayReader bar)
BigInteger
getF()
byte[]
getHostKey()
String
getMessageName()
byte[]
getSignature()

Methods inherited from class com.sshtools.j2ssh.transport.SshMessage

constructByteArray, constructMessage, fromByteArray, getMessageId, getMessageId, getMessageName, toByteArray

Field Details

SSH_MSG_KEXDH_REPLY

protected static final int SSH_MSG_KEXDH_REPLY
Field Value:
31

Constructor Details

SshMsgKexDhReply

public SshMsgKexDhReply()
Creates a new SshMsgKexDhReply object.

SshMsgKexDhReply

public SshMsgKexDhReply(byte[] hostKey,
                        BigInteger f,
                        byte[] signature)
Creates a new SshMsgKexDhReply object.
Parameters:
hostKey -
f -
signature -

Method Details

constructByteArray

protected void constructByteArray(ByteArrayWriter baw)
            throws InvalidMessageException
Overrides:
constructByteArray in interface SshMessage
Parameters:
baw -

constructMessage

protected void constructMessage(ByteArrayReader bar)
            throws InvalidMessageException
Overrides:
constructMessage in interface SshMessage
Parameters:
bar -

getF

public BigInteger getF()
Returns:

getHostKey

public byte[] getHostKey()
Returns:

getMessageName

public String getMessageName()
Overrides:
getMessageName in interface SshMessage
Returns:

getSignature

public byte[] getSignature()
Returns:

Copyright © 2002-2003 Lee David Painter & Contributors. All Rights Reserved.