public interface KeyExchange extends NamedResource
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
|
PublicKey |
getServerKey()
Retrieves the server's key
|
static String |
getSimpleKexOpcodeName(int cmd) |
void |
init(Session session,
byte[] v_s,
byte[] v_c,
byte[] i_s,
byte[] i_c)
Initialize the key exchange algorithm.
|
boolean |
next(int cmd,
Buffer buffer)
Process the next packet
|
findByName, getName, getNameList, getNames, ofName, removeByName
static final NavigableMap<Integer,String> GROUP_KEX_OPCODES_MAP
static final NavigableMap<Integer,String> SIMPLE_KEX_OPCODES_MAP
void init(Session session, byte[] v_s, byte[] v_c, byte[] i_s, byte[] i_c) throws Exception
session
- the session using this algorithmv_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)
Copyright © 2008–2022 The Apache Software Foundation. All rights reserved.