Package org.apache.sshd.client.kex
Class AbstractDHClientKeyExchange
- java.lang.Object
-
- org.apache.sshd.common.util.logging.AbstractLoggingBean
-
- org.apache.sshd.common.kex.dh.AbstractDHKeyExchange
-
- org.apache.sshd.client.kex.AbstractDHClientKeyExchange
-
- All Implemented Interfaces:
ClientSessionHolder
,KeyExchange
,NamedResource
,SessionContextHolder
,SessionHolder<Session>
- Direct Known Subclasses:
DHGClient
,DHGEXClient
public abstract class AbstractDHClientKeyExchange extends AbstractDHKeyExchange implements ClientSessionHolder
-
-
Field Summary
Fields Modifier and Type Field Description protected java.security.PublicKey
serverKey
-
Fields inherited from class org.apache.sshd.common.kex.dh.AbstractDHKeyExchange
e, f, h, hash, i_c, i_s, k, v_c, v_s
-
Fields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
log
-
Fields inherited from interface org.apache.sshd.common.kex.KeyExchange
GROUP_KEX_OPCODES_MAP, SIMPLE_KEX_OPCODES_MAP
-
Fields inherited from interface org.apache.sshd.common.NamedResource
BY_NAME_COMPARATOR, NAME_EXTRACTOR
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractDHClientKeyExchange(Session session)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClientSession
getClientSession()
java.security.PublicKey
getServerKey()
Retrieves the server's key-
Methods inherited from class org.apache.sshd.common.kex.dh.AbstractDHKeyExchange
getH, getHash, getK, getSession, init, toString
-
Methods inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
getSimplifiedLogger
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.apache.sshd.common.kex.KeyExchange
next
-
Methods inherited from interface org.apache.sshd.common.NamedResource
getName
-
Methods inherited from interface org.apache.sshd.common.session.SessionHolder
getSessionContext
-
-
-
-
Constructor Detail
-
AbstractDHClientKeyExchange
protected AbstractDHClientKeyExchange(Session session)
-
-
Method Detail
-
getClientSession
public final ClientSession getClientSession()
- Specified by:
getClientSession
in interfaceClientSessionHolder
- Returns:
- The underlying
ClientSession
used
-
getServerKey
public java.security.PublicKey getServerKey()
Description copied from interface:KeyExchange
Retrieves the server's key- Specified by:
getServerKey
in interfaceKeyExchange
- Returns:
- The server's
PublicKey
-
-