|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.schmizz.sshj.transport.kex.AbstractDHG
public abstract class AbstractDHG
Base class for DHG key exchange algorithms. Implementations will only have to configure the required data on the
DH class in the
| Constructor Summary | |
|---|---|
AbstractDHG()
|
|
| Method Summary | |
|---|---|
byte[] |
getH()
|
Digest |
getHash()
The message digest used by this key exchange algorithm. |
PublicKey |
getHostKey()
|
BigInteger |
getK()
|
void |
init(Transport trans,
String V_S,
String V_C,
byte[] I_S,
byte[] I_C)
Initialize the key exchange algorithm. |
protected abstract void |
initDH(DH dh)
|
boolean |
next(Message msg,
SSHPacket packet)
Process the next packet |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractDHG()
| Method Detail |
|---|
public byte[] getH()
getH in interface KeyExchangepublic BigInteger getK()
getK in interface KeyExchangepublic Digest getHash()
KeyExchange
getHash in interface KeyExchangepublic PublicKey getHostKey()
getHostKey in interface KeyExchange
public void init(Transport trans,
String V_S,
String V_C,
byte[] I_S,
byte[] I_C)
throws GeneralSecurityException,
TransportException
KeyExchange
init in interface KeyExchangetrans - the transportV_S - the server identification stringV_C - the client identification stringI_S - the server key init packetI_C - the client key init packet
GeneralSecurityException
TransportException - if there is an error sending a packet
public boolean next(Message msg,
SSHPacket packet)
throws GeneralSecurityException,
TransportException
KeyExchange
next in interface KeyExchangemsg - message identifierpacket - the packet
GeneralSecurityException
TransportException - if there is an error sending a packet
protected abstract void initDH(DH dh)
throws GeneralSecurityException
GeneralSecurityException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||