public interface KeyExchange extends NamedResource, SessionHolder<Session>
| Modifier and Type | Field and Description |
|---|---|
static NavigableMap<Integer,String> |
GROUP_KEX_OPCODES_MAP |
static NavigableMap<Integer,String> |
SIMPLE_KEX_OPCODES_MAP |
BY_NAME_COMPARATOR, NAME_EXTRACTOR| Modifier and Type | Method and Description |
|---|---|
static String |
getGroupKexOpcodeName(int cmd) |
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
|
static String |
getSimpleKexOpcodeName(int cmd) |
void |
init(byte[] v_s,
byte[] v_c,
byte[] i_s,
byte[] i_c)
Initialize the key exchange algorithm.
|
static boolean |
isValidDHValue(BigInteger value,
BigInteger p) |
boolean |
next(int cmd,
Buffer buffer)
Process the next packet
|
findByName, findFirstMatchByName, getName, getNameList, getNames, ofName, removeByName, safeCompareByNamegetSession, getSessionContextstatic final NavigableMap<Integer,String> GROUP_KEX_OPCODES_MAP
static final NavigableMap<Integer,String> SIMPLE_KEX_OPCODES_MAP
void init(byte[] v_s,
byte[] v_c,
byte[] i_s,
byte[] i_c)
throws Exception
v_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 occursboolean next(int cmd,
Buffer buffer)
throws Exception
cmd - the commandbuffer - the packet contents positioned after the commandException - if an error occursDigest getHash()
byte[] getH()
h parameterh parameterbyte[] getK()
k parameterstatic String getGroupKexOpcodeName(int cmd)
static String getSimpleKexOpcodeName(int cmd)
static boolean isValidDHValue(BigInteger value, BigInteger p)
Copyright © 2008–2021 The Apache Software Foundation. All rights reserved.