public class DHGClient extends AbstractDHClientKeyExchange
DHG class in the getDH() method.| Modifier and Type | Field and Description |
|---|---|
protected AbstractDH |
dh |
protected DHFactory |
factory |
serverKeye, f, h, hash, i_c, i_s, k, session, v_c, v_slog| Modifier | Constructor and Description |
|---|---|
protected |
DHGClient(DHFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
protected AbstractDH |
getDH() |
void |
init(AbstractSession s,
byte[] v_s,
byte[] v_c,
byte[] i_s,
byte[] i_c)
Initialize the key exchange algorithm.
|
static KeyExchangeFactory |
newFactory(DHFactory delegate) |
boolean |
next(Buffer buffer)
Process the next packet
|
getServerKeygetH, getHash, getK, getSessionprotected final DHFactory factory
protected AbstractDH dh
protected DHGClient(DHFactory factory)
public static final KeyExchangeFactory newFactory(DHFactory delegate)
public void init(AbstractSession s, byte[] v_s, byte[] v_c, byte[] i_s, byte[] i_c) throws Exception
KeyExchangeinit in interface KeyExchangeinit in class AbstractDHClientKeyExchanges - 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 packetException - if an error occursprotected AbstractDH getDH() throws Exception
Exceptionpublic boolean next(Buffer buffer) throws Exception
KeyExchangebuffer - the packetException - if an error occursCopyright © 2008–2015 The Apache Software Foundation. All rights reserved.