Package com.sshtools.server
Class AgentForwardingChannel
java.lang.Object
com.sshtools.synergy.ssh.ChannelNG<SshServerContext>
com.sshtools.server.AgentForwardingChannel
- All Implemented Interfaces:
com.sshtools.common.ssh.Channel
,Closeable
,AutoCloseable
public class AgentForwardingChannel
extends com.sshtools.synergy.ssh.ChannelNG<SshServerContext>
implements Closeable
-
Nested Class Summary
Nested classes/interfaces inherited from class com.sshtools.synergy.ssh.ChannelNG
com.sshtools.synergy.ssh.ChannelNG.ChannelInputStream
-
Field Summary
FieldsFields inherited from class com.sshtools.synergy.ssh.ChannelNG
cache, con, connection, localWindow, remoteWindow
-
Constructor Summary
ConstructorsConstructorDescriptionAgentForwardingChannel
(String type, com.sshtools.common.ssh.SessionChannelServer session) AgentForwardingChannel
(String type, com.sshtools.common.ssh.SessionChannelServer session, com.sshtools.common.ssh.ChannelEventListener listener) -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
protected byte[]
boolean
isActive()
protected void
onAgentConnected
(com.sshtools.common.ssh.SshConnection con, Object agent) protected void
protected void
protected void
onChannelData
(ByteBuffer data) protected void
protected void
protected void
protected void
onChannelRequest
(String type, boolean wantreply, byte[] requestdata) protected void
onExtendedData
(ByteBuffer data, int type) protected void
protected void
protected byte[]
openChannel
(byte[] requestdata) Methods inherited from class com.sshtools.synergy.ssh.ChannelNG
addEventListener, canClose, clearIdleState, close, close, close, createCache, disposeCache, evaluateWindowSpace, getChannelType, getCloseFuture, getConnection, getConnectionProtocol, getContext, getInputStream, getLastActivity, getLocalId, getLocalPacket, getLocalWindow, getMaxiumRemotePacketSize, getMaxiumRemoteWindowSize, getOpenFuture, getOutputStream, getRemoteId, getRemotePacket, getRemoteWindow, getSessionIdentifier, getTimeout, haltIncomingData, isAutoConsume, isClosed, isClosing, isConnected, isIncomingDataHalted, isLocalEOF, isOpen, isRemoteEOF, log, log, log, log, logMessage, 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
-
Field Details
-
SSH_AGENT_CLIENT
- See Also:
-
-
Constructor Details
-
AgentForwardingChannel
public AgentForwardingChannel(String type, com.sshtools.common.ssh.SessionChannelServer session) throws IOException - Throws:
IOException
-
AgentForwardingChannel
public AgentForwardingChannel(String type, com.sshtools.common.ssh.SessionChannelServer session, com.sshtools.common.ssh.ChannelEventListener listener) throws IOException - Throws:
IOException
-
-
Method Details
-
onChannelFree
protected void onChannelFree()- Specified by:
onChannelFree
in classcom.sshtools.synergy.ssh.ChannelNG<SshServerContext>
-
createChannel
- Specified by:
createChannel
in classcom.sshtools.synergy.ssh.ChannelNG<SshServerContext>
- Throws:
IOException
-
openChannel
protected byte[] openChannel(byte[] requestdata) throws com.sshtools.common.nio.WriteOperationRequest, com.sshtools.common.ssh.ChannelOpenException - Specified by:
openChannel
in classcom.sshtools.synergy.ssh.ChannelNG<SshServerContext>
- Throws:
com.sshtools.common.nio.WriteOperationRequest
com.sshtools.common.ssh.ChannelOpenException
-
isActive
public boolean isActive() -
onChannelOpenConfirmation
protected void onChannelOpenConfirmation()- Specified by:
onChannelOpenConfirmation
in classcom.sshtools.synergy.ssh.ChannelNG<SshServerContext>
-
onAgentConnected
-
onChannelClosed
protected void onChannelClosed()- Specified by:
onChannelClosed
in classcom.sshtools.synergy.ssh.ChannelNG<SshServerContext>
-
onChannelOpen
protected void onChannelOpen()- Specified by:
onChannelOpen
in classcom.sshtools.synergy.ssh.ChannelNG<SshServerContext>
-
onChannelClosing
protected void onChannelClosing()- Specified by:
onChannelClosing
in classcom.sshtools.synergy.ssh.ChannelNG<SshServerContext>
-
onChannelRequest
- Specified by:
onChannelRequest
in classcom.sshtools.synergy.ssh.ChannelNG<SshServerContext>
-
onRemoteEOF
protected void onRemoteEOF()- Specified by:
onRemoteEOF
in classcom.sshtools.synergy.ssh.ChannelNG<SshServerContext>
-
onLocalEOF
protected void onLocalEOF()- Specified by:
onLocalEOF
in classcom.sshtools.synergy.ssh.ChannelNG<SshServerContext>
-
onChannelData
- Overrides:
onChannelData
in classcom.sshtools.synergy.ssh.ChannelNG<SshServerContext>
-
onExtendedData
- Overrides:
onExtendedData
in classcom.sshtools.synergy.ssh.ChannelNG<SshServerContext>
-
checkWindowSpace
protected boolean checkWindowSpace()- Overrides:
checkWindowSpace
in classcom.sshtools.synergy.ssh.ChannelNG<SshServerContext>
-