public abstract class AbstractDHClientKeyExchange extends AbstractDHKeyExchange implements ClientSessionHolder
Modifier and Type | Field and Description |
---|---|
protected PublicKey |
serverKey |
e, f, h, hash, i_c, i_s, k, v_c, v_s
log
GROUP_KEX_OPCODES_MAP, SIMPLE_KEX_OPCODES_MAP
BY_NAME_COMPARATOR, NAME_EXTRACTOR
Modifier | Constructor and Description |
---|---|
protected |
AbstractDHClientKeyExchange() |
Modifier and Type | Method and Description |
---|---|
ClientSession |
getClientSession() |
PublicKey |
getServerKey()
Retrieves the server's key
|
void |
init(Session s,
byte[] v_s,
byte[] v_c,
byte[] i_s,
byte[] i_c)
Initialize the key exchange algorithm.
|
getH, getHash, getK, getSession, toString
getSimplifiedLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getGroupKexOpcodeName, getSimpleKexOpcodeName, next
findByName, getName, getNameList, getNames, ofName, removeByName
protected PublicKey serverKey
public final ClientSession getClientSession()
getClientSession
in interface ClientSessionHolder
ClientSession
usedpublic void init(Session s, byte[] v_s, byte[] v_c, byte[] i_s, byte[] i_c) throws Exception
KeyExchange
init
in interface KeyExchange
init
in class AbstractDHKeyExchange
s
- 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 occurspublic PublicKey getServerKey()
KeyExchange
getServerKey
in interface KeyExchange
PublicKey
Copyright © 2008–2022 The Apache Software Foundation. All rights reserved.