public interface ChannelFactory
The SSH2 protocol supports many different channel types including sesisons, port forwarding and x11 forwarding; most channels are requested by the client and created by the server however it is possible for the server to request any type of channel from the client, this interface defines the contract for supporting a standard and custom channel creation.
Modifier and Type | Method and Description |
---|---|
Ssh2Channel |
createChannel(String channeltype,
byte[] requestdata)
Create an instance of an SSH channel.
|
String[] |
supportedChannelTypes()
Return the supported channel types.
|
String[] supportedChannelTypes()
Ssh2Channel createChannel(String channeltype, byte[] requestdata) throws SshException, ChannelOpenException
Create an instance of an SSH channel. The new instance should be returned, if for any reason the channel cannot be created either because the channel is not supported or there are not enough resources an exception is thrown.
channeltype
- requestdata
- ChannelOpenException
SshException
Copyright © 2024. All rights reserved.