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 Channel
Channel.Direct, Channel.ForwardedNested classes/interfaces inherited from interface ErrorNotifiable
ErrorNotifiable.Util -
Method Summary
Modifier and TypeMethodDescriptionvoidconfirm()ConfirmCHANNEL_OPENrequest.intvoidreject(OpenFailException.Reason reason, String message) Indicate rejection to remote end.Methods inherited from interface Channel
close, getAutoExpand, getID, getInputStream, getLocalMaxPacketSize, getLocalWinSize, getLoggerFactory, getOutputStream, getRecipient, getRemoteCharset, getRemoteMaxPacketSize, getRemoteWinSize, getType, isEOF, isOpen, join, join, setAutoExpandMethods inherited from interface ErrorNotifiable
notifyErrorMethods inherited from interface SSHPacketHandler
handle
-
Method Details
-
confirm
ConfirmCHANNEL_OPENrequest.- 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- indicatereasonfor rejection of the requestmessage- indicate a message for why the request is rejected- Throws:
TransportException- error sending rejection packet
-