Top Description Inners Fields Constructors Methods
org.apache.sshd.agent.local

public Class ChannelAgentForwarding

extends AbstractServerChannel
Class Inheritance
Imports
java.io.IOException, .OutputStream, java.util.Collections, .Objects, org.apache.sshd.agent.SshAgent, .SshAgentFactory, org.apache.sshd.agent.common.AbstractAgentClient, org.apache.sshd.client.future.DefaultOpenFuture, .OpenFuture, org.apache.sshd.common.Closeable, .FactoryManager, .SshConstants, org.apache.sshd.common.channel.ChannelOutputStream, org.apache.sshd.common.session.Session, org.apache.sshd.common.util.ExceptionUtils, .ValidateUtils, org.apache.sshd.common.util.buffer.Buffer, .ByteArrayBuffer, org.apache.sshd.common.util.threads.CloseableExecutorService, org.apache.sshd.server.channel.AbstractServerChannel

The client side channel that will receive requests forwards by the SSH server.

Nested and Inner Type Summary

Modifier and TypeClass and Description
protected class

Field Summary

Modifier and TypeField and Description
private SshAgent
private ChannelAgentForwarding.AgentClient
private OutputStream
Inherited from org.apache.sshd.server.channel.AbstractServerChannel:
exitStatusSent

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private void
protected OpenFuture
protected void
doWriteData(byte[] data, int off, long len)

Implements abstract org.apache.sshd.common.channel.AbstractChannel.doWriteData.

protected void
protected Closeable
public void
Inherited from org.apache.sshd.server.channel.AbstractServerChannel:
handleOpenFailurehandleOpenSuccessopensendExitStatus

Field Detail

agentback to summary
private SshAgent agent
clientback to summary
private ChannelAgentForwarding.AgentClient client
outback to summary
private OutputStream out

Constructor Detail

ChannelAgentForwardingback to summary
public ChannelAgentForwarding(CloseableExecutorService executor)

Method Detail

closeImmediately0back to summary
private void closeImmediately0()
doInitback to summary
protected OpenFuture doInit(Buffer buffer)

Overrides org.apache.sshd.server.channel.AbstractServerChannel.doInit.

Annotations
@Override
doWriteDataback to summary
protected void doWriteData(byte[] data, int off, long len) throws IOException

Implements abstract org.apache.sshd.common.channel.AbstractChannel.doWriteData.

Annotations
@Override
doWriteExtendedDataback to summary
protected void doWriteExtendedData(byte[] data, int off, long len) throws IOException

Implements abstract org.apache.sshd.common.channel.AbstractChannel.doWriteExtendedData.

Annotations
@Override
getInnerCloseableback to summary
protected Closeable getInnerCloseable()

Overrides org.apache.sshd.common.channel.AbstractChannel.getInnerCloseable.

Annotations
@Override
handleEofback to summary
public void handleEof() throws IOException

Overrides org.apache.sshd.common.channel.AbstractChannel.handleEof.

Implements org.apache.sshd.common.channel.Channel.handleEof.

Doc from org.apache.sshd.common.channel.Channel.handleEof.

Invoked when SSH_MSG_CHANNEL_EOF received

Annotations
@Override
Exceptions
IOException:
If failed to handle the message
org.apache.sshd.agent.local back to summary

protected Class ChannelAgentForwarding.AgentClient

extends AbstractAgentClient
Class Inheritance
Annotations
@SuppressWarnings:synthetic-access

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
protected void
Inherited from org.apache.sshd.agent.common.AbstractAgentClient:
messageReceivedprepareprocess

Constructor Detail

AgentClientback to summary
public AgentClient()

Method Detail

replyback to summary
protected void reply(Buffer buf) throws IOException

Implements abstract org.apache.sshd.agent.common.AbstractAgentClient.reply.

Annotations
@Override