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
-
public class AgentSocketChannel extends SocketChannel
- Version:
- $Revision: 1.11 $
- Author:
- $author$
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
AGENT_FORWARDING_CHANNEL
-
Fields 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
Constructors Constructor Description AgentSocketChannel(boolean isForwarding)
Creates a new AgentSocketChannel object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getChannelConfirmationData()
byte[]
getChannelOpenData()
java.lang.String
getChannelType()
protected int
getMaximumPacketSize()
protected int
getMaximumWindowSpace()
protected int
getMinimumWindowSpace()
protected void
onChannelOpen()
protected void
onChannelRequest(java.lang.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 Detail
-
AGENT_FORWARDING_CHANNEL
public static final java.lang.String AGENT_FORWARDING_CHANNEL
- See Also:
- Constant Field Values
-
-
Method Detail
-
getChannelType
public java.lang.String getChannelType()
- Specified by:
getChannelType
in classChannel
- Returns:
-
onChannelRequest
protected void onChannelRequest(java.lang.String requestType, boolean wantReply, byte[] requestData) throws java.io.IOException
- Specified by:
onChannelRequest
in classChannel
- Throws:
java.io.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
protected void onChannelOpen() throws InvalidChannelException
- 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:
-
-