Interface Channel.Forwarded

All Superinterfaces:
AutoCloseable, Channel, Closeable, ErrorNotifiable, SSHPacketHandler
All Known Implementing Classes:
AbstractForwardedChannel, RemotePortForwarder.ForwardedTCPIPChannel, X11Forwarder.X11Channel
Enclosing interface:
Channel

public static interface Channel.Forwarded extends Channel
Forwarded channels are those that are initiated by the server.
  • Method Details

    • confirm

      void confirm() throws TransportException
      Confirm CHANNEL_OPEN request.
      Throws:
      TransportException - error sending confirmation packet
    • getOriginatorIP

      String getOriginatorIP()
      Returns:
      the IP of where the forwarded connection originates.
    • getOriginatorPort

      int getOriginatorPort()
      Returns:
      port from which the forwarded connection originates.
    • reject

      void reject(OpenFailException.Reason reason, String message) throws TransportException
      Indicate rejection to remote end.
      Parameters:
      reason - indicate reason for rejection of the request
      message - indicate a message for why the request is rejected
      Throws:
      TransportException - error sending rejection packet