|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.sshd.client.kex.AbstractDHGClient
public abstract class AbstractDHGClient
Base class for DHG key exchange algorithms.
Implementations will only have to configure the required data on the
DH class in the initDH(org.apache.sshd.common.kex.DH) method.
| Constructor Summary | |
|---|---|
AbstractDHGClient()
|
|
| Method Summary | |
|---|---|
byte[] |
getH()
Retrieves the computed H parameter |
Digest |
getHash()
The message digest used by this key exchange algorithm. |
byte[] |
getK()
Retrieves the computed K parameter |
java.security.PublicKey |
getServerKey()
Retrieves the server's key |
void |
init(AbstractSession s,
byte[] V_S,
byte[] V_C,
byte[] I_S,
byte[] I_C)
Initialize the key exchange algorithm. |
protected abstract void |
initDH(DH dh)
|
boolean |
next(Buffer buffer)
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 AbstractDHGClient()
| Method Detail |
|---|
public void init(AbstractSession s,
byte[] V_S,
byte[] V_C,
byte[] I_S,
byte[] I_C)
throws java.lang.Exception
KeyExchange
init in interface KeyExchanges - the session using this algorithmV_S - the server identification stringV_C - the client identification stringI_S - the server key init packetI_C - the client key init packet
java.lang.Exception - if an error occursprotected abstract void initDH(DH dh)
public boolean next(Buffer buffer)
throws java.lang.Exception
KeyExchange
next in interface KeyExchangebuffer - the packet
java.lang.Exception - if an error occurspublic Digest getHash()
KeyExchange
getHash in interface KeyExchangepublic byte[] getH()
KeyExchange
getH in interface KeyExchangepublic byte[] getK()
KeyExchange
getK in interface KeyExchangepublic java.security.PublicKey getServerKey()
KeyExchange
getServerKey in interface KeyExchange
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||