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
socketFields 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 intprotected intprotected intprotected voidprotected voidonChannelRequest(String requestType, boolean wantReply, byte[] requestData) Methods inherited from class com.sshtools.j2ssh.connection.SocketChannel
bindSocket, onChannelClose, onChannelData, onChannelEOF, onChannelExtDataMethods 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:
getChannelTypein classChannel- Returns:
-
onChannelRequest
protected void onChannelRequest(String requestType, boolean wantReply, byte[] requestData) throws IOException - Specified by:
onChannelRequestin classChannel- Parameters:
requestType-wantReply-requestData-- Throws:
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
- 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:
-