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.StringAGENT_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.StringgetChannelType()protected intgetMaximumPacketSize()protected intgetMaximumWindowSpace()protected intgetMinimumWindowSpace()protected voidonChannelOpen()protected voidonChannelRequest(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:
getChannelTypein classChannel- Returns:
-
onChannelRequest
protected void onChannelRequest(java.lang.String requestType, boolean wantReply, byte[] requestData) throws java.io.IOException- Specified by:
onChannelRequestin classChannel- Throws:
java.io.IOException
-
getMaximumPacketSize
protected int getMaximumPacketSize()
- Specified by:
getMaximumPacketSizein classChannel- Returns:
-
getChannelOpenData
public byte[] getChannelOpenData()
- Specified by:
getChannelOpenDatain classChannel- Returns:
-
getMinimumWindowSpace
protected int getMinimumWindowSpace()
- Specified by:
getMinimumWindowSpacein classChannel- Returns:
-
onChannelOpen
protected void onChannelOpen() throws InvalidChannelException- Overrides:
onChannelOpenin classSocketChannel- Throws:
InvalidChannelException- DOCUMENT ME!InvalidChannelException
-
getMaximumWindowSpace
protected int getMaximumWindowSpace()
- Specified by:
getMaximumWindowSpacein classChannel- Returns:
-
getChannelConfirmationData
public byte[] getChannelConfirmationData()
- Specified by:
getChannelConfirmationDatain classChannel- Returns:
-
-