public class DHGServer extends AbstractDHServerKeyExchange
| Modifier and Type | Field and Description |
|---|---|
protected AbstractDH |
dh |
protected DHFactory |
factory |
sessione, f, h, hash, i_c, i_s, k, v_c, v_slog| Modifier | Constructor and Description |
|---|---|
protected |
DHGServer(DHFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
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 factory) |
boolean |
next(Buffer buffer)
Process the next packet
|
getServerKeygetH, getHash, getK, getSessionprotected final DHFactory factory
protected AbstractDH dh
protected DHGServer(DHFactory factory)
public static KeyExchangeFactory newFactory(DHFactory factory)
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 AbstractDHServerKeyExchanges - 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 occurspublic boolean next(Buffer buffer) throws Exception
KeyExchangebuffer - the packetException - if an error occursCopyright © 2008–2015 The Apache Software Foundation. All rights reserved.