public static interface

Channel.Forwarded

implements Channel
net.schmizz.sshj.connection.channel.Channel.Forwarded
Known Indirect Subclasses

Class Overview

Forwarded channels are those that are initiated by the server.

Summary

Public Methods
abstract void confirm()
Confirm CHANNEL_OPEN request.
abstract String getOriginatorIP()
abstract int getOriginatorPort()
abstract void reject(OpenFailException.Reason reason, String message)
Indicate rejection to remote end.
[Expand]
Inherited Methods
From interface java.io.Closeable
From interface net.schmizz.sshj.common.ErrorNotifiable
From interface net.schmizz.sshj.common.SSHPacketHandler
From interface net.schmizz.sshj.connection.channel.Channel

Public Methods

public abstract void confirm ()

Confirm CHANNEL_OPEN request.

Throws
TransportException error sending confirmation packet

public abstract String getOriginatorIP ()

Returns
  • the IP of where the forwarded connection originates.

public abstract int getOriginatorPort ()

Returns
  • port from which the forwarded connection originates.

public abstract void reject (OpenFailException.Reason reason, String message)

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