|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sshtools.j2ssh.transport.TransportProtocolCommon
public abstract class TransportProtocolCommon
DOCUMENT ME!
Field Summary | |
---|---|
protected com.sshtools.j2ssh.transport.TransportProtocolAlgorithmSync |
algorithmsIn
DOCUMENT ME! |
protected com.sshtools.j2ssh.transport.TransportProtocolAlgorithmSync |
algorithmsOut
DOCUMENT ME! |
protected String |
clientIdent
DOCUMENT ME! |
protected com.sshtools.j2ssh.transport.SshMsgKexInit |
clientKexInit
DOCUMENT ME! |
protected Boolean |
completeOnNewKeys
DOCUMENT ME! |
static int |
EOL_CRLF
DOCUMENT ME! |
static int |
EOL_LF
DOCUMENT ME! |
protected byte[] |
hostKey
DOCUMENT ME! |
protected com.sshtools.j2ssh.transport.HostKeyVerification |
hosts
DOCUMENT ME! |
protected BigInteger |
k
DOCUMENT ME! |
protected Map |
kexs
DOCUMENT ME! |
protected static org.apache.commons.logging.Log |
log
DOCUMENT ME! |
protected com.sshtools.j2ssh.transport.SshMessageStore |
messageStore
DOCUMENT ME! |
protected com.sshtools.j2ssh.configuration.SshConnectionProperties |
properties
DOCUMENT ME! |
static String |
PROTOCOL_VERSION
DOCUMENT ME! |
protected String |
serverIdent
DOCUMENT ME! |
protected com.sshtools.j2ssh.transport.SshMsgKexInit |
serverKexInit
DOCUMENT ME! |
protected byte[] |
sessionIdentifier
DOCUMENT ME! |
protected byte[] |
signature
DOCUMENT ME! |
static String |
SOFTWARE_VERSION_COMMENTS
DOCUMENT ME! |
protected com.sshtools.j2ssh.transport.TransportProtocolInputStream |
sshIn
DOCUMENT ME! |
protected com.sshtools.j2ssh.transport.TransportProtocolOutputStream |
sshOut
DOCUMENT ME! |
protected com.sshtools.j2ssh.transport.TransportProtocolState |
state
DOCUMENT ME! |
Constructor Summary | |
---|---|
TransportProtocolCommon()
Creates a new TransportProtocolCommon object. |
Method Summary | |
---|---|
void |
addEventHandler(com.sshtools.j2ssh.transport.TransportProtocolEventHandler eventHandler)
DOCUMENT ME! |
void |
addMessageStore(com.sshtools.j2ssh.transport.SshMessageStore store)
DOCUMENT ME! |
protected void |
beginKeyExchange()
DOCUMENT ME! |
protected void |
completeKeyExchange()
DOCUMENT ME! |
protected com.sshtools.j2ssh.transport.SshMsgKexInit |
createLocalKexInit()
DOCUMENT ME! |
protected String |
determineAlgorithm(List clientAlgorithms,
List serverAlgorithms)
DOCUMENT ME! |
void |
disconnect(String description)
DOCUMENT ME! |
int |
getConnectionId()
DOCUMENT ME! |
protected abstract String |
getDecryptionAlgorithm()
DOCUMENT ME! |
protected abstract String |
getEncryptionAlgorithm()
DOCUMENT ME! |
protected List |
getEventHandlers()
DOCUMENT ME! |
long |
getIncomingByteCount()
DOCUMENT ME! |
protected abstract String |
getInputStreamCompAlgortihm()
DOCUMENT ME! |
protected abstract String |
getInputStreamMacAlgorithm()
DOCUMENT ME! |
protected String |
getKexAlgorithm()
DOCUMENT ME! |
abstract String |
getLocalId()
DOCUMENT ME! |
protected abstract com.sshtools.j2ssh.transport.SshMsgKexInit |
getLocalKexInit()
DOCUMENT ME! |
long |
getOutgoingByteCount()
|
protected abstract String |
getOutputStreamCompAlgorithm()
DOCUMENT ME! |
protected abstract String |
getOutputStreamMacAlgorithm()
DOCUMENT ME! |
com.sshtools.j2ssh.configuration.SshConnectionProperties |
getProperties()
DOCUMENT ME! |
int |
getRemoteEOL()
DOCUMENT ME! |
abstract String |
getRemoteId()
DOCUMENT ME! |
protected abstract com.sshtools.j2ssh.transport.SshMsgKexInit |
getRemoteKexInit()
DOCUMENT ME! |
byte[] |
getSessionIdentifier()
DOCUMENT ME! |
com.sshtools.j2ssh.transport.TransportProtocolState |
getState()
DOCUMENT ME! |
String |
getUnderlyingProviderDetail()
DOCUMENT ME! |
protected void |
onCorruptMac()
DOCUMENT ME! |
protected abstract void |
onDisconnect()
DOCUMENT ME! |
protected abstract void |
onMessageReceived(com.sshtools.j2ssh.transport.SshMessage msg)
DOCUMENT ME! |
protected abstract void |
onStartTransportProtocol()
DOCUMENT ME! |
protected abstract void |
performKeyExchange(com.sshtools.j2ssh.transport.kex.SshKeyExchange kex)
DOCUMENT ME! |
protected com.sshtools.j2ssh.transport.SshMessage |
processMessages()
DOCUMENT ME! |
com.sshtools.j2ssh.transport.SshMessage |
readMessage(int[] filter)
DOCUMENT ME! |
abstract void |
registerTransportMessages()
DOCUMENT ME! |
void |
removeMessageStore(com.sshtools.j2ssh.transport.SshMessageStore ms)
DOCUMENT ME! |
void |
run()
DOCUMENT ME! |
protected void |
sendDisconnect(int reason,
String description)
DOCUMENT ME! |
protected void |
sendDisconnect(int reason,
String description,
IOException error)
DOCUMENT ME! |
protected void |
sendKeyExchangeInit()
DOCUMENT ME! |
void |
sendMessage(com.sshtools.j2ssh.transport.SshMessage msg,
Object sender)
DOCUMENT ME! |
protected void |
sendNewKeys()
DOCUMENT ME! |
void |
setKexTimeout(long seconds)
DOCUMENT ME! |
void |
setKexTransferLimit(long kilobytes)
DOCUMENT ME! |
protected abstract void |
setLocalIdent()
DOCUMENT ME! |
protected abstract void |
setLocalKexInit(com.sshtools.j2ssh.transport.SshMsgKexInit msg)
DOCUMENT ME! |
protected abstract void |
setRemoteIdent(String ident)
DOCUMENT ME! |
protected abstract void |
setRemoteKexInit(com.sshtools.j2ssh.transport.SshMsgKexInit msg)
DOCUMENT ME! |
void |
setSendIgnore(boolean sendIgnore)
DOCUMENT ME! |
protected abstract void |
setupNewKeys(byte[] encryptCSKey,
byte[] encryptCSIV,
byte[] encryptSCKey,
byte[] encryptSCIV,
byte[] macCSKey,
byte[] macSCKey)
DOCUMENT ME! |
protected void |
startBinaryPacketProtocol()
DOCUMENT ME! |
void |
startTransportProtocol(com.sshtools.j2ssh.net.TransportProvider provider,
com.sshtools.j2ssh.configuration.SshConnectionProperties properties)
DOCUMENT ME! |
protected void |
stop()
DOCUMENT ME! |
void |
unregisterMessage(Integer messageId,
com.sshtools.j2ssh.transport.SshMessageStore store)
DOCUMENT ME! |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static org.apache.commons.logging.Log log
public static final int EOL_CRLF
public static final int EOL_LF
public static final String PROTOCOL_VERSION
public static String SOFTWARE_VERSION_COMMENTS
protected BigInteger k
protected Boolean completeOnNewKeys
protected com.sshtools.j2ssh.transport.HostKeyVerification hosts
protected Map kexs
protected com.sshtools.j2ssh.configuration.SshConnectionProperties properties
protected com.sshtools.j2ssh.transport.SshMessageStore messageStore
protected com.sshtools.j2ssh.transport.SshMsgKexInit clientKexInit
protected com.sshtools.j2ssh.transport.SshMsgKexInit serverKexInit
protected String clientIdent
protected String serverIdent
protected com.sshtools.j2ssh.transport.TransportProtocolAlgorithmSync algorithmsIn
protected com.sshtools.j2ssh.transport.TransportProtocolAlgorithmSync algorithmsOut
protected com.sshtools.j2ssh.transport.TransportProtocolState state
protected byte[] sessionIdentifier
protected byte[] hostKey
protected byte[] signature
protected com.sshtools.j2ssh.transport.TransportProtocolInputStream sshIn
protected com.sshtools.j2ssh.transport.TransportProtocolOutputStream sshOut
Constructor Detail |
---|
public TransportProtocolCommon()
Method Detail |
---|
public int getConnectionId()
getConnectionId
in interface com.sshtools.j2ssh.transport.TransportProtocol
public int getRemoteEOL()
public com.sshtools.j2ssh.transport.TransportProtocolState getState()
getState
in interface com.sshtools.j2ssh.transport.TransportProtocol
public com.sshtools.j2ssh.configuration.SshConnectionProperties getProperties()
protected abstract void onDisconnect()
public void disconnect(String description)
disconnect
in interface com.sshtools.j2ssh.transport.TransportProtocol
description
- DOCUMENT ME!public void setSendIgnore(boolean sendIgnore)
sendIgnore
- DOCUMENT ME!public void setKexTimeout(long seconds) throws com.sshtools.j2ssh.transport.TransportProtocolException
seconds
- DOCUMENT ME!
TransportProtocolException
- DOCUMENT ME!public void setKexTransferLimit(long kilobytes) throws com.sshtools.j2ssh.transport.TransportProtocolException
kilobytes
- DOCUMENT ME!
TransportProtocolException
- DOCUMENT ME!public long getOutgoingByteCount()
public long getIncomingByteCount()
public void addEventHandler(com.sshtools.j2ssh.transport.TransportProtocolEventHandler eventHandler)
eventHandler
- DOCUMENT ME!public abstract void registerTransportMessages() throws com.sshtools.j2ssh.transport.MessageAlreadyRegisteredException
MessageAlreadyRegisteredException
- DOCUMENT ME!public byte[] getSessionIdentifier()
getSessionIdentifier
in interface com.sshtools.j2ssh.transport.TransportProtocol
public void run()
run
in interface Runnable
public void sendMessage(com.sshtools.j2ssh.transport.SshMessage msg, Object sender) throws IOException
sendMessage
in interface com.sshtools.j2ssh.transport.TransportProtocol
msg
- DOCUMENT ME!sender
- DOCUMENT ME!
IOException
- DOCUMENT ME!
TransportProtocolException
- DOCUMENT ME!protected abstract void onStartTransportProtocol() throws IOException
IOException
- DOCUMENT ME!public void startTransportProtocol(com.sshtools.j2ssh.net.TransportProvider provider, com.sshtools.j2ssh.configuration.SshConnectionProperties properties) throws IOException
provider
- DOCUMENT ME!properties
- DOCUMENT ME!
IOException
- DOCUMENT ME!public String getUnderlyingProviderDetail()
getUnderlyingProviderDetail
in interface com.sshtools.j2ssh.transport.TransportProtocol
public void unregisterMessage(Integer messageId, com.sshtools.j2ssh.transport.SshMessageStore store) throws com.sshtools.j2ssh.transport.MessageNotRegisteredException
messageId
- DOCUMENT ME!store
- DOCUMENT ME!
MessageNotRegisteredException
- DOCUMENT ME!protected abstract String getDecryptionAlgorithm() throws com.sshtools.j2ssh.transport.AlgorithmNotAgreedException
AlgorithmNotAgreedException
- DOCUMENT ME!protected abstract String getEncryptionAlgorithm() throws com.sshtools.j2ssh.transport.AlgorithmNotAgreedException
AlgorithmNotAgreedException
- DOCUMENT ME!protected abstract String getInputStreamCompAlgortihm() throws com.sshtools.j2ssh.transport.AlgorithmNotAgreedException
AlgorithmNotAgreedException
- DOCUMENT ME!protected abstract String getInputStreamMacAlgorithm() throws com.sshtools.j2ssh.transport.AlgorithmNotAgreedException
AlgorithmNotAgreedException
- DOCUMENT ME!protected abstract void setLocalIdent()
public abstract String getLocalId()
protected abstract void setLocalKexInit(com.sshtools.j2ssh.transport.SshMsgKexInit msg)
msg
- DOCUMENT ME!protected abstract com.sshtools.j2ssh.transport.SshMsgKexInit getLocalKexInit()
protected abstract String getOutputStreamCompAlgorithm() throws com.sshtools.j2ssh.transport.AlgorithmNotAgreedException
AlgorithmNotAgreedException
- DOCUMENT ME!protected abstract String getOutputStreamMacAlgorithm() throws com.sshtools.j2ssh.transport.AlgorithmNotAgreedException
AlgorithmNotAgreedException
- DOCUMENT ME!protected abstract void setRemoteIdent(String ident)
ident
- DOCUMENT ME!public abstract String getRemoteId()
protected abstract void setRemoteKexInit(com.sshtools.j2ssh.transport.SshMsgKexInit msg)
msg
- DOCUMENT ME!protected abstract com.sshtools.j2ssh.transport.SshMsgKexInit getRemoteKexInit()
protected abstract void performKeyExchange(com.sshtools.j2ssh.transport.kex.SshKeyExchange kex) throws IOException, com.sshtools.j2ssh.transport.kex.KeyExchangeException
kex
- DOCUMENT ME!
IOException
- DOCUMENT ME!
com.sshtools.j2ssh.transport.kex.KeyExchangeException
- DOCUMENT ME!protected String getKexAlgorithm() throws com.sshtools.j2ssh.transport.AlgorithmNotAgreedException
AlgorithmNotAgreedException
- DOCUMENT ME!protected void beginKeyExchange() throws IOException, com.sshtools.j2ssh.transport.kex.KeyExchangeException
IOException
- DOCUMENT ME!
com.sshtools.j2ssh.transport.kex.KeyExchangeException
- DOCUMENT ME!protected com.sshtools.j2ssh.transport.SshMsgKexInit createLocalKexInit() throws IOException
IOException
- DOCUMENT ME!protected void onCorruptMac()
protected abstract void onMessageReceived(com.sshtools.j2ssh.transport.SshMessage msg) throws IOException
msg
- DOCUMENT ME!
IOException
- DOCUMENT ME!protected void sendDisconnect(int reason, String description)
reason
- DOCUMENT ME!description
- DOCUMENT ME!protected void sendDisconnect(int reason, String description, IOException error)
reason
- DOCUMENT ME!description
- DOCUMENT ME!error
- DOCUMENT ME!protected void sendKeyExchangeInit() throws IOException
IOException
- DOCUMENT ME!protected void sendNewKeys() throws IOException
IOException
- DOCUMENT ME!protected abstract void setupNewKeys(byte[] encryptCSKey, byte[] encryptCSIV, byte[] encryptSCKey, byte[] encryptSCIV, byte[] macCSKey, byte[] macSCKey) throws com.sshtools.j2ssh.transport.AlgorithmNotAgreedException, com.sshtools.j2ssh.transport.AlgorithmOperationException, com.sshtools.j2ssh.transport.AlgorithmNotSupportedException, com.sshtools.j2ssh.transport.AlgorithmInitializationException
encryptCSKey
- DOCUMENT ME!encryptCSIV
- DOCUMENT ME!encryptSCKey
- DOCUMENT ME!encryptSCIV
- DOCUMENT ME!macCSKey
- DOCUMENT ME!macSCKey
- DOCUMENT ME!
AlgorithmNotAgreedException
- DOCUMENT ME!
AlgorithmOperationException
- DOCUMENT ME!
AlgorithmNotSupportedException
- DOCUMENT ME!
AlgorithmInitializationException
- DOCUMENT ME!protected void completeKeyExchange() throws IOException
IOException
- DOCUMENT ME!
TransportProtocolException
- DOCUMENT ME!protected List getEventHandlers()
protected String determineAlgorithm(List clientAlgorithms, List serverAlgorithms) throws com.sshtools.j2ssh.transport.AlgorithmNotAgreedException
clientAlgorithms
- DOCUMENT ME!serverAlgorithms
- DOCUMENT ME!
AlgorithmNotAgreedException
- DOCUMENT ME!protected void startBinaryPacketProtocol() throws IOException
IOException
- DOCUMENT ME!protected final void stop()
public com.sshtools.j2ssh.transport.SshMessage readMessage(int[] filter) throws IOException
readMessage
in interface com.sshtools.j2ssh.transport.TransportProtocol
filter
- DOCUMENT ME!
IOException
- DOCUMENT ME!protected com.sshtools.j2ssh.transport.SshMessage processMessages() throws IOException
IOException
- DOCUMENT ME!public void addMessageStore(com.sshtools.j2ssh.transport.SshMessageStore store) throws com.sshtools.j2ssh.transport.MessageAlreadyRegisteredException
addMessageStore
in interface com.sshtools.j2ssh.transport.TransportProtocol
store
- DOCUMENT ME!
MessageAlreadyRegisteredException
- DOCUMENT ME!public void removeMessageStore(com.sshtools.j2ssh.transport.SshMessageStore ms)
ms
- DOCUMENT ME!
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |