public class AgentForwardingChannel extends com.sshtools.synergy.ssh.ChannelNG<SshServerContext> implements java.io.Closeable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
SSH_AGENT_CLIENT |
Constructor and Description |
---|
AgentForwardingChannel(java.lang.String type,
com.sshtools.common.ssh.SessionChannelServer session) |
AgentForwardingChannel(java.lang.String type,
com.sshtools.common.ssh.SessionChannelServer session,
com.sshtools.common.ssh.ChannelEventListener listener) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkWindowSpace() |
protected byte[] |
createChannel() |
boolean |
isActive() |
protected void |
onAgentConnected(com.sshtools.common.ssh.SshConnection con,
java.lang.Object agent) |
protected void |
onChannelClosed() |
protected void |
onChannelClosing() |
protected void |
onChannelData(java.nio.ByteBuffer data) |
protected void |
onChannelFree() |
protected void |
onChannelOpen() |
protected void |
onChannelOpenConfirmation() |
protected void |
onChannelRequest(java.lang.String type,
boolean wantreply,
byte[] requestdata) |
protected void |
onExtendedData(java.nio.ByteBuffer data,
int type) |
protected void |
onLocalEOF() |
protected void |
onRemoteEOF() |
protected byte[] |
openChannel(byte[] requestdata) |
addEventListener, canClose, clearIdleState, close, close, createCache, evaluateWindowSpace, getChannelType, getCloseFuture, getConnection, getConnectionProtocol, getContext, getInputStream, getLastActivity, getLocalId, getLocalPacket, getLocalWindow, getMaxiumRemotePacketSize, getMaxiumRemoteWindowSize, getOpenFuture, getOutputStream, getRemoteId, getRemotePacket, getRemoteWindow, getSessionIdentifier, getTimeout, haltIncomingData, isClosed, isClosing, isConnected, isIncomingDataHalted, isLocalEOF, isOpen, isRemoteEOF, log, log, log, logMessage, onChannelError, onChannelOpenFailure, onRemoteClose, onWindowAdjust, processChannelRequestResponse, registerExtendedDataType, resetIdleState, resumeIncomingData, sendChannelDataAndBlock, sendChannelDataAndBlock, sendChannelDataAndBlock, sendChannelDataAndBlock, sendChannelDataAndBlock, sendChannelDataAndBlock, sendChannelRequest, sendChannelRequest, sendData, sendEOF, sendExtendedData, sendExtendedData, sendRequestResponse, sendWindowAdjust, sendWindowAdjust, setTimeout
public static final java.lang.String SSH_AGENT_CLIENT
public AgentForwardingChannel(java.lang.String type, com.sshtools.common.ssh.SessionChannelServer session) throws java.io.IOException
java.io.IOException
public AgentForwardingChannel(java.lang.String type, com.sshtools.common.ssh.SessionChannelServer session, com.sshtools.common.ssh.ChannelEventListener listener) throws java.io.IOException
java.io.IOException
protected void onChannelFree()
onChannelFree
in class com.sshtools.synergy.ssh.ChannelNG<SshServerContext>
protected byte[] createChannel() throws java.io.IOException
createChannel
in class com.sshtools.synergy.ssh.ChannelNG<SshServerContext>
java.io.IOException
protected byte[] openChannel(byte[] requestdata) throws com.sshtools.common.nio.WriteOperationRequest, com.sshtools.common.ssh.ChannelOpenException
openChannel
in class com.sshtools.synergy.ssh.ChannelNG<SshServerContext>
com.sshtools.common.nio.WriteOperationRequest
com.sshtools.common.ssh.ChannelOpenException
public boolean isActive()
protected void onChannelOpenConfirmation()
onChannelOpenConfirmation
in class com.sshtools.synergy.ssh.ChannelNG<SshServerContext>
protected void onAgentConnected(com.sshtools.common.ssh.SshConnection con, java.lang.Object agent)
protected void onChannelClosed()
onChannelClosed
in class com.sshtools.synergy.ssh.ChannelNG<SshServerContext>
protected void onChannelOpen()
onChannelOpen
in class com.sshtools.synergy.ssh.ChannelNG<SshServerContext>
protected void onChannelClosing()
onChannelClosing
in class com.sshtools.synergy.ssh.ChannelNG<SshServerContext>
protected void onChannelRequest(java.lang.String type, boolean wantreply, byte[] requestdata)
onChannelRequest
in class com.sshtools.synergy.ssh.ChannelNG<SshServerContext>
protected void onRemoteEOF()
onRemoteEOF
in class com.sshtools.synergy.ssh.ChannelNG<SshServerContext>
protected void onLocalEOF()
onLocalEOF
in class com.sshtools.synergy.ssh.ChannelNG<SshServerContext>
protected void onChannelData(java.nio.ByteBuffer data)
onChannelData
in class com.sshtools.synergy.ssh.ChannelNG<SshServerContext>
protected void onExtendedData(java.nio.ByteBuffer data, int type)
onExtendedData
in class com.sshtools.synergy.ssh.ChannelNG<SshServerContext>
protected boolean checkWindowSpace()
checkWindowSpace
in class com.sshtools.synergy.ssh.ChannelNG<SshServerContext>
Copyright © 2022. All rights reserved.