Top Fields Constructors Methods
org.apache.sshd.common.global

public abstract Class AbstractOpenSshHostKeysHandler

extends AbstractConnectionServiceRequestHandler
Class Inheritance
Known Direct Subclasses
org.apache.sshd.server.global.OpenSshHostKeysHandler, org.apache.sshd.client.global.OpenSshHostKeysHandler
Imports
java.security.PublicKey, java.util.Collection, .LinkedList, .Objects, org.apache.sshd.common.SshException, org.apache.sshd.common.config.keys.KeyUtils, org.apache.sshd.common.session.ConnectionService, .Session, org.apache.sshd.common.session.helpers.AbstractConnectionServiceRequestHandler, org.apache.sshd.common.util.ValidateUtils, org.apache.sshd.common.util.buffer.Buffer, org.apache.sshd.common.util.buffer.keys.BufferPublicKeyParser

Author
Apache MINA SSHD Project

Field Summary

Modifier and TypeField and Description
private boolean
private final BufferPublicKeyParser<? extends PublicKey>
private final String

Constructor Summary

AccessConstructor and Description
protected
protected

Method Summary

Modifier and TypeMethod and Description
public BufferPublicKeyParser<? extends PublicKey>
public final String
protected abstract RequestHandler.Result
handleHostKeys(Session session, Collection<? extends PublicKey> keys, boolean wantReply, Buffer buffer)

protected boolean
public RequestHandler.Result
process(ConnectionService
The input parameter
connectionService
,
String
The request string
request
,
boolean
Whether a reply is requested
wantReply
,
Buffer
The Buffer with request specific data
buffer
)

Overrides org.apache.sshd.common.session.helpers.AbstractConnectionServiceRequestHandler.process.

Implements org.apache.sshd.common.session.ConnectionServiceRequestHandler.process.

Process an SSH request.

protected void
setIgnoreInvalidKeys(boolean ignore)

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Field Detail

ignoreInvalidKeysback to summary
private boolean ignoreInvalidKeys
parserback to summary
private final BufferPublicKeyParser<? extends PublicKey> parser
requestback to summary
private final String request

Constructor Detail

AbstractOpenSshHostKeysHandlerback to summary
protected AbstractOpenSshHostKeysHandler(String request)
AbstractOpenSshHostKeysHandlerback to summary
protected AbstractOpenSshHostKeysHandler(String request, BufferPublicKeyParser<? extends PublicKey> parser)

Method Detail

getPublicKeysParserback to summary
public BufferPublicKeyParser<? extends PublicKey> getPublicKeysParser()
getRequestNameback to summary
public final String getRequestName()
handleHostKeysback to summary
protected abstract RequestHandler.Result handleHostKeys(Session session, Collection<? extends PublicKey> keys, boolean wantReply, Buffer buffer) throws Exception
isIgnoreInvalidKeysback to summary
protected boolean isIgnoreInvalidKeys()
processback to summary
public RequestHandler.Result process(ConnectionService connectionService, String request, boolean wantReply, Buffer buffer) throws Exception

Overrides org.apache.sshd.common.session.helpers.AbstractConnectionServiceRequestHandler.process.

Implements org.apache.sshd.common.session.ConnectionServiceRequestHandler.process.

Doc from org.apache.sshd.common.channel.RequestHandler.process.

Process an SSH request. If an exception is thrown, the ConnectionService will send a failure message if needed and the request will be considered handled.

Parameters
connectionService:ConnectionService

The input parameter

request:String

The request string

wantReply:boolean

Whether a reply is requested

buffer:Buffer

The Buffer with request specific data

Returns:RequestHandler.Result

The Result

Annotations
@Override
Exceptions
Exception:
If failed to handle the request - Note: in order to signal an unsupported request the Result#Unsupported value should be returned
setIgnoreInvalidKeysback to summary
protected void setIgnoreInvalidKeys(boolean ignore)
toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Returns:String

a string representation of the object

Annotations
@Override