Package org.apache.sshd.client.global
Class OpenSshHostKeysHandler
- java.lang.Object
-
- org.apache.sshd.common.util.logging.AbstractLoggingBean
-
- org.apache.sshd.common.session.helpers.AbstractConnectionServiceRequestHandler
-
- org.apache.sshd.common.global.AbstractOpenSshHostKeysHandler
-
- org.apache.sshd.client.global.OpenSshHostKeysHandler
-
- All Implemented Interfaces:
RequestHandler<ConnectionService>
,ConnectionServiceRequestHandler
public class OpenSshHostKeysHandler extends AbstractOpenSshHostKeysHandler
A handler for the "[email protected]" request - for now, only reads the presented host key. One can override thehandleHostKeys(Session, Collection, boolean, Buffer)
methods in order to do something with the keys- Author:
- Apache MINA SSHD Project
- See Also:
- OpenSSH protocol - section 2.5
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.sshd.common.channel.RequestHandler
RequestHandler.Result
-
-
Field Summary
Fields Modifier and Type Field Description static OpenSshHostKeysHandler
INSTANCE
static String
REQUEST
-
Fields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
log
-
Fields inherited from interface org.apache.sshd.common.session.ConnectionServiceRequestHandler
SVC2HNDLR
-
-
Constructor Summary
Constructors Constructor Description OpenSshHostKeysHandler()
OpenSshHostKeysHandler(BufferPublicKeyParser<? extends PublicKey> parser)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected RequestHandler.Result
handleHostKeys(Session session, Collection<? extends PublicKey> keys, boolean wantReply, Buffer buffer)
-
Methods inherited from class org.apache.sshd.common.global.AbstractOpenSshHostKeysHandler
getPublicKeysParser, getRequestName, process, toString
-
-
-
-
Field Detail
-
REQUEST
public static final String REQUEST
- See Also:
- Constant Field Values
-
INSTANCE
public static final OpenSshHostKeysHandler INSTANCE
-
-
Constructor Detail
-
OpenSshHostKeysHandler
public OpenSshHostKeysHandler()
-
OpenSshHostKeysHandler
public OpenSshHostKeysHandler(BufferPublicKeyParser<? extends PublicKey> parser)
-
-
Method Detail
-
handleHostKeys
protected RequestHandler.Result handleHostKeys(Session session, Collection<? extends PublicKey> keys, boolean wantReply, Buffer buffer) throws Exception
- Specified by:
handleHostKeys
in classAbstractOpenSshHostKeysHandler
- Throws:
Exception
-
-