public abstract class AbstractDHG extends AbstractDH implements KeyExchange
DH class in thedhdigest, H, hostKey, trans| Constructor and Description |
|---|
AbstractDHG(net.schmizz.sshj.transport.kex.DHBase dhBase,
Digest digest) |
| Modifier and Type | Method and Description |
|---|---|
void |
init(Transport trans,
java.lang.String V_S,
java.lang.String V_C,
byte[] I_S,
byte[] I_C)
Initialize the key exchange algorithm.
|
protected abstract void |
initDH(net.schmizz.sshj.transport.kex.DHBase dh) |
boolean |
next(Message msg,
SSHPacket packet)
Process the next packet
|
getKgetH, getHash, getHostKey, initializedBufferclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetH, getHash, getHostKey, getKpublic AbstractDHG(net.schmizz.sshj.transport.kex.DHBase dhBase,
Digest digest)
public void init(Transport trans, java.lang.String V_S, java.lang.String V_C, byte[] I_S, byte[] I_C) throws java.security.GeneralSecurityException, TransportException
KeyExchangeinit in interface KeyExchangeinit in class KeyExchangeBasetrans - the transportV_S - the server identification stringV_C - the client identification stringI_S - the server key init packetI_C - the client key init packetjava.security.GeneralSecurityExceptionTransportException - if there is an error sending a packetpublic boolean next(Message msg, SSHPacket packet) throws java.security.GeneralSecurityException, TransportException
KeyExchangenext in interface KeyExchangemsg - message identifierpacket - the packetjava.security.GeneralSecurityExceptionTransportException - if there is an error sending a packetprotected abstract void initDH(net.schmizz.sshj.transport.kex.DHBase dh)
throws java.security.GeneralSecurityException
java.security.GeneralSecurityException