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

    Fields
    Modifier and Type
    Field
    Description
    static final String
     

    Fields inherited from class com.sshtools.synergy.ssh.ChannelNG

    cache, con, connection, localWindow, remoteWindow
  • Constructor Summary

    Constructors
    Constructor
    Description
    AgentForwardingChannel(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 Type
    Method
    Description
    protected boolean
     
    protected byte[]
     
    boolean
     
    protected void
    onAgentConnected(com.sshtools.common.ssh.SshConnection con, Object agent)
     
    protected void
     
    protected void
     
    protected void
     
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface java.io.Closeable

    close
  • Field Details

  • 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 class com.sshtools.synergy.ssh.ChannelNG<SshServerContext>
    • createChannel

      protected byte[] createChannel() throws IOException
      Specified by:
      createChannel in class com.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 class com.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 class com.sshtools.synergy.ssh.ChannelNG<SshServerContext>
    • onAgentConnected

      protected void onAgentConnected(com.sshtools.common.ssh.SshConnection con, Object agent)
    • onChannelClosed

      protected void onChannelClosed()
      Specified by:
      onChannelClosed in class com.sshtools.synergy.ssh.ChannelNG<SshServerContext>
    • onChannelOpen

      protected void onChannelOpen()
      Specified by:
      onChannelOpen in class com.sshtools.synergy.ssh.ChannelNG<SshServerContext>
    • onChannelClosing

      protected void onChannelClosing()
      Specified by:
      onChannelClosing in class com.sshtools.synergy.ssh.ChannelNG<SshServerContext>
    • onChannelRequest

      protected void onChannelRequest(String type, boolean wantreply, byte[] requestdata)
      Specified by:
      onChannelRequest in class com.sshtools.synergy.ssh.ChannelNG<SshServerContext>
    • onRemoteEOF

      protected void onRemoteEOF()
      Specified by:
      onRemoteEOF in class com.sshtools.synergy.ssh.ChannelNG<SshServerContext>
    • onLocalEOF

      protected void onLocalEOF()
      Specified by:
      onLocalEOF in class com.sshtools.synergy.ssh.ChannelNG<SshServerContext>
    • onChannelData

      protected void onChannelData(ByteBuffer data)
      Overrides:
      onChannelData in class com.sshtools.synergy.ssh.ChannelNG<SshServerContext>
    • onExtendedData

      protected void onExtendedData(ByteBuffer data, int type)
      Overrides:
      onExtendedData in class com.sshtools.synergy.ssh.ChannelNG<SshServerContext>
    • checkWindowSpace

      protected boolean checkWindowSpace()
      Overrides:
      checkWindowSpace in class com.sshtools.synergy.ssh.ChannelNG<SshServerContext>