Package com.sshtools.j2ssh.agent
Class AgentSocketChannel
java.lang.Object
com.sshtools.j2ssh.connection.Channel
com.sshtools.j2ssh.connection.SocketChannel
com.sshtools.j2ssh.agent.AgentSocketChannel
- Version:
- $Revision: 1.11 $
- Author:
- $author$
-
Field Summary
FieldsFields inherited from class com.sshtools.j2ssh.connection.SocketChannel
socket
Fields inherited from class com.sshtools.j2ssh.connection.Channel
connection, localChannelId, localPacketSize, localWindow, remoteChannelId, remotePacketSize, remoteWindow, state
-
Constructor Summary
ConstructorsConstructorDescriptionAgentSocketChannel
(boolean isForwarding) Creates a new AgentSocketChannel object. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
byte[]
protected int
protected int
protected int
protected void
protected void
onChannelRequest
(String requestType, boolean wantReply, byte[] requestData) Methods inherited from class com.sshtools.j2ssh.connection.SocketChannel
bindSocket, onChannelClose, onChannelData, onChannelEOF, onChannelExtData
Methods inherited from class com.sshtools.j2ssh.connection.Channel
addEventListener, close, finalizeClose, getLocalChannelId, getLocalPacketSize, getLocalWindow, getName, getRemoteChannelId, getRemotePacketSize, getRemoteWindow, getState, init, init, isClosed, isLocalEOF, isOpen, isRemoteEOF, open, processChannelData, processChannelData, remoteClose, sendChannelData, sendChannelExtData, setLocalEOF, setName, setRemoteEOF
-
Field Details
-
AGENT_FORWARDING_CHANNEL
- See Also:
-
-
Constructor Details
-
AgentSocketChannel
public AgentSocketChannel(boolean isForwarding) Creates a new AgentSocketChannel object.- Parameters:
isForwarding
-
-
-
Method Details
-
getChannelType
- Specified by:
getChannelType
in classChannel
- Returns:
-
onChannelRequest
protected void onChannelRequest(String requestType, boolean wantReply, byte[] requestData) throws IOException - Specified by:
onChannelRequest
in classChannel
- Throws:
IOException
-
getMaximumPacketSize
protected int getMaximumPacketSize()- Specified by:
getMaximumPacketSize
in classChannel
- Returns:
-
getChannelOpenData
public byte[] getChannelOpenData()- Specified by:
getChannelOpenData
in classChannel
- Returns:
-
getMinimumWindowSpace
protected int getMinimumWindowSpace()- Specified by:
getMinimumWindowSpace
in classChannel
- Returns:
-
onChannelOpen
- Overrides:
onChannelOpen
in classSocketChannel
- Throws:
InvalidChannelException
- DOCUMENT ME!InvalidChannelException
-
getMaximumWindowSpace
protected int getMaximumWindowSpace()- Specified by:
getMaximumWindowSpace
in classChannel
- Returns:
-
getChannelConfirmationData
public byte[] getChannelConfirmationData()- Specified by:
getChannelConfirmationData
in classChannel
- Returns:
-