public class DHGClient extends AbstractDHClientKeyExchange
DHG
class in the getDH()
method.Modifier and Type | Field and Description |
---|---|
protected AbstractDH |
dh |
protected DHFactory |
factory |
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 |
DHGClient(DHFactory factory,
Session session) |
Modifier and Type | Method and Description |
---|---|
protected AbstractDH |
getDH() |
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
|
protected void |
verifyCertificate(Session session,
OpenSshCertificate openSshKey) |
getClientSession
getE, getEValue, getF, getFValue, getH, getHash, getK, getSession, setE, setF, toString, updateE, updateE, updateF, updateF, validateEValue, validateFValue
debug, debug, debug, debug, debug, error, error, error, error, error, getSimplifiedLogger, info, info, warn, warn, warn, warn, warn, warn, warn, warn
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getGroupKexOpcodeName, getSimpleKexOpcodeName, isValidDHValue
findByName, findFirstMatchByName, getNameList, getNames, ofName, removeByName, safeCompareByName
getSessionContext
protected final DHFactory factory
protected AbstractDH dh
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
KeyExchange
init
in interface KeyExchange
init
in class AbstractDHKeyExchange
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 occursprotected AbstractDH getDH() throws Exception
Exception
public boolean next(int cmd, Buffer buffer) throws Exception
KeyExchange
cmd
- the commandbuffer
- the packet contents positioned after the commandException
- if an error occursprotected void verifyCertificate(Session session, OpenSshCertificate openSshKey) throws Exception
Exception
Copyright © 2008–2024 The Apache Software Foundation. All rights reserved.