public class DHGEXClient extends AbstractDHClientKeyExchange
| Modifier and Type | Field and Description |
|---|---|
protected AbstractDH |
dh |
protected byte |
expected |
protected DHFactory |
factory |
protected byte[] |
g |
protected int |
max |
protected int |
min |
protected byte[] |
p |
protected int |
prf |
static String |
PROP_DHGEX_CLIENT_MAX_KEY |
static String |
PROP_DHGEX_CLIENT_MIN_KEY |
static String |
PROP_DHGEX_CLIENT_PRF_KEY |
serverKeye, f, h, hash, i_c, i_s, k, v_c, v_slogGROUP_KEX_OPCODES_MAP, SIMPLE_KEX_OPCODES_MAPBY_NAME_COMPARATOR, NAME_EXTRACTOR| Modifier | Constructor and Description |
|---|---|
protected |
DHGEXClient(DHFactory factory,
Session session) |
| Modifier and Type | Method and Description |
|---|---|
protected AbstractDH |
getDH(BigInteger p,
BigInteger g) |
String |
getName() |
void |
init(byte[] v_s,
byte[] v_c,
byte[] i_s,
byte[] i_c)
Initialize the key exchange algorithm.
|
static KeyExchangeFactory |
newFactory(DHFactory delegate) |
boolean |
next(int cmd,
Buffer buffer)
Process the next packet
|
getClientSession, getServerKeygetH, getHash, getK, getSession, toStringgetSimplifiedLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetGroupKexOpcodeName, getSimpleKexOpcodeNamefindByName, getNameList, getNames, ofName, removeByNamegetSessionContextpublic static final String PROP_DHGEX_CLIENT_MIN_KEY
public static final String PROP_DHGEX_CLIENT_MAX_KEY
public static final String PROP_DHGEX_CLIENT_PRF_KEY
protected final DHFactory factory
protected byte expected
protected int min
protected int prf
protected int max
protected AbstractDH dh
protected byte[] p
protected byte[] g
public final String getName()
public static KeyExchangeFactory newFactory(DHFactory delegate)
public void init(byte[] v_s,
byte[] v_c,
byte[] i_s,
byte[] i_c)
throws Exception
KeyExchangeinit in interface KeyExchangeinit in class AbstractDHKeyExchangev_s - the server identification stringv_c - the client identification stringi_s - the server key initialization packeti_c - the client key initialization packetException - if an error occurspublic boolean next(int cmd,
Buffer buffer)
throws Exception
KeyExchangecmd - the commandbuffer - the packet contents positioned after the commandException - if an error occursprotected AbstractDH getDH(BigInteger p, BigInteger g) throws Exception
ExceptionCopyright © 2008–2020 The Apache Software Foundation. All rights reserved.