Interface Channel.Forwarded
- All Superinterfaces:
AutoCloseable
,Channel
,Closeable
,ErrorNotifiable
,SSHPacketHandler
- All Known Implementing Classes:
AbstractForwardedChannel
,RemotePortForwarder.ForwardedTCPIPChannel
,X11Forwarder.X11Channel
- Enclosing interface:
Channel
Forwarded channels are those that are initiated by the server.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.schmizz.sshj.connection.channel.Channel
Channel.Direct, Channel.Forwarded
Nested classes/interfaces inherited from interface net.schmizz.sshj.common.ErrorNotifiable
ErrorNotifiable.Util
-
Method Summary
Modifier and TypeMethodDescriptionvoid
confirm()
ConfirmCHANNEL_OPEN
request.int
void
reject
(OpenFailException.Reason reason, String message) Indicate rejection to remote end.Methods inherited from interface net.schmizz.sshj.connection.channel.Channel
close, getAutoExpand, getID, getInputStream, getLocalMaxPacketSize, getLocalWinSize, getLoggerFactory, getOutputStream, getRecipient, getRemoteCharset, getRemoteMaxPacketSize, getRemoteWinSize, getType, isEOF, isOpen, join, join, setAutoExpand
Methods inherited from interface net.schmizz.sshj.common.ErrorNotifiable
notifyError
Methods inherited from interface net.schmizz.sshj.common.SSHPacketHandler
handle
-
Method Details
-
confirm
ConfirmCHANNEL_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
Indicate rejection to remote end.- Parameters:
reason
- indicatereason
for rejection of the requestmessage
- indicate a message for why the request is rejected- Throws:
TransportException
- error sending rejection packet
-