Class DHGClient
- All Implemented Interfaces:
ClientSessionHolder, KeyExchange, NamedResource, SessionContextHolder, SessionHolder<Session>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AbstractDHprotected final DHFactoryprivate KeyEncapsulationMethod.ClientFields inherited from class AbstractLoggingBean
logFields inherited from interface KeyExchange
GROUP_KEX_OPCODES_MAP, SIMPLE_KEX_OPCODES_MAPFields inherited from interface NamedResource
BY_NAME_COMPARATOR, NAME_EXTRACTOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected AbstractDHgetDH()final StringgetName()voidinit(byte[] v_s, byte[] v_c, byte[] i_s, byte[] i_c) Initialize the key exchange algorithm.static KeyExchangeFactorynewFactory(DHFactory delegate) booleanProcess the next packetprotected voidverifyCertificate(Session session, OpenSshCertificate openSshKey) Methods inherited from class AbstractDHClientKeyExchange
getClientSessionMethods inherited from class AbstractDHKeyExchange
getE, getEValue, getF, getFValue, getH, getHash, getK, getSession, normalize, setE, setF, toString, updateE, updateE, updateF, updateF, validateEValue, validateFValueMethods inherited from class AbstractLoggingBean
debug, debug, debug, debug, debug, error, error, error, error, error, getSimplifiedLogger, info, info, warn, warn, warn, warn, warn, warn, warn, warnMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface SessionHolder
getSessionContext
-
Field Details
-
factory
-
dh
-
kemClient
-
-
Constructor Details
-
DHGClient
-
-
Method Details
-
getName
- Returns:
- The resource name
-
newFactory
-
init
Description copied from interface:KeyExchangeInitialize the key exchange algorithm.- Specified by:
initin interfaceKeyExchange- Overrides:
initin classAbstractDHKeyExchange- Parameters:
v_s- the server identification stringv_c- the client identification stringi_s- the server key initialization packeti_c- the client key initialization packet- Throws:
Exception- if an error occurs
-
getDH
- Throws:
Exception
-
next
Description copied from interface:KeyExchangeProcess the next packet- Parameters:
cmd- the commandbuffer- the packet contents positioned after the command- Returns:
- a boolean indicating if the processing is complete or if more packets are to be received
- Throws:
Exception- if an error occurs
-
verifyCertificate
- Throws:
Exception
-