|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sshtools.j2ssh.transport.TransportProtocolCommon
com.sshtools.j2ssh.transport.TransportProtocolClient
public class TransportProtocolClient
DOCUMENT ME!
Field Summary | |
---|---|
protected com.sshtools.j2ssh.transport.publickey.SshPublicKey |
pk
DOCUMENT ME! |
Fields inherited from class com.sshtools.j2ssh.transport.TransportProtocolCommon |
---|
algorithmsIn, algorithmsOut, clientIdent, clientKexInit, completeOnNewKeys, EOL_CRLF, EOL_LF, hostKey, k, kexs, log, messageStore, properties, PROTOCOL_VERSION, serverIdent, serverKexInit, sessionIdentifier, signature, SOFTWARE_VERSION_COMMENTS, sshIn, sshOut, state |
Constructor Summary | |
---|---|
TransportProtocolClient(com.sshtools.j2ssh.transport.HostKeyVerification hosts)
Creates a new TransportProtocolClient object. |
Method Summary | |
---|---|
protected String |
getDecryptionAlgorithm()
DOCUMENT ME! |
protected String |
getEncryptionAlgorithm()
DOCUMENT ME! |
protected String |
getInputStreamCompAlgortihm()
DOCUMENT ME! |
protected String |
getInputStreamMacAlgorithm()
DOCUMENT ME! |
String |
getLocalId()
DOCUMENT ME! |
protected com.sshtools.j2ssh.transport.SshMsgKexInit |
getLocalKexInit()
DOCUMENT ME! |
protected String |
getOutputStreamCompAlgorithm()
DOCUMENT ME! |
protected String |
getOutputStreamMacAlgorithm()
DOCUMENT ME! |
String |
getRemoteId()
DOCUMENT ME! |
protected com.sshtools.j2ssh.transport.SshMsgKexInit |
getRemoteKexInit()
DOCUMENT ME! |
com.sshtools.j2ssh.transport.publickey.SshPublicKey |
getServerHostKey()
DOCUMENT ME! |
protected void |
onDisconnect()
DOCUMENT ME! |
void |
onMessageReceived(com.sshtools.j2ssh.transport.SshMessage msg)
DOCUMENT ME! |
protected void |
onStartTransportProtocol()
DOCUMENT ME! |
protected void |
performKeyExchange(com.sshtools.j2ssh.transport.kex.SshKeyExchange kex)
DOCUMENT ME! |
void |
registerTransportMessages()
DOCUMENT ME! |
void |
requestService(com.sshtools.j2ssh.transport.Service service)
DOCUMENT ME! |
protected void |
setLocalIdent()
DOCUMENT ME! |
protected void |
setLocalKexInit(com.sshtools.j2ssh.transport.SshMsgKexInit msg)
DOCUMENT ME! |
protected void |
setRemoteIdent(String ident)
DOCUMENT ME! |
protected void |
setRemoteKexInit(com.sshtools.j2ssh.transport.SshMsgKexInit msg)
DOCUMENT ME! |
protected void |
setupNewKeys(byte[] encryptCSKey,
byte[] encryptCSIV,
byte[] encryptSCKey,
byte[] encryptSCIV,
byte[] macCSKey,
byte[] macSCKey)
DOCUMENT ME! |
protected boolean |
verifyHostKey(byte[] key,
byte[] sig,
byte[] sigdata)
DOCUMENT ME! |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected com.sshtools.j2ssh.transport.publickey.SshPublicKey pk
Constructor Detail |
---|
public TransportProtocolClient(com.sshtools.j2ssh.transport.HostKeyVerification hosts) throws com.sshtools.j2ssh.transport.TransportProtocolException
hosts
- DOCUMENT ME!
TransportProtocolException
- DOCUMENT ME!Method Detail |
---|
public void onMessageReceived(com.sshtools.j2ssh.transport.SshMessage msg) throws IOException
onMessageReceived
in class TransportProtocolCommon
msg
- DOCUMENT ME!
IOException
- DOCUMENT ME!public void registerTransportMessages() throws com.sshtools.j2ssh.transport.MessageAlreadyRegisteredException
registerTransportMessages
in class TransportProtocolCommon
MessageAlreadyRegisteredException
- DOCUMENT ME!public void requestService(com.sshtools.j2ssh.transport.Service service) throws IOException
service
- DOCUMENT ME!
IOException
- DOCUMENT ME!
com.sshtools.j2ssh.SshException
- DOCUMENT ME!protected void onDisconnect()
onDisconnect
in class TransportProtocolCommon
protected String getDecryptionAlgorithm() throws com.sshtools.j2ssh.transport.AlgorithmNotAgreedException
getDecryptionAlgorithm
in class TransportProtocolCommon
AlgorithmNotAgreedException
- DOCUMENT ME!protected String getEncryptionAlgorithm() throws com.sshtools.j2ssh.transport.AlgorithmNotAgreedException
getEncryptionAlgorithm
in class TransportProtocolCommon
AlgorithmNotAgreedException
- DOCUMENT ME!protected String getInputStreamCompAlgortihm() throws com.sshtools.j2ssh.transport.AlgorithmNotAgreedException
getInputStreamCompAlgortihm
in class TransportProtocolCommon
AlgorithmNotAgreedException
- DOCUMENT ME!protected String getInputStreamMacAlgorithm() throws com.sshtools.j2ssh.transport.AlgorithmNotAgreedException
getInputStreamMacAlgorithm
in class TransportProtocolCommon
AlgorithmNotAgreedException
- DOCUMENT ME!protected void setLocalIdent()
setLocalIdent
in class TransportProtocolCommon
public String getLocalId()
getLocalId
in class TransportProtocolCommon
protected void setLocalKexInit(com.sshtools.j2ssh.transport.SshMsgKexInit msg)
setLocalKexInit
in class TransportProtocolCommon
msg
- DOCUMENT ME!protected com.sshtools.j2ssh.transport.SshMsgKexInit getLocalKexInit()
getLocalKexInit
in class TransportProtocolCommon
protected String getOutputStreamCompAlgorithm() throws com.sshtools.j2ssh.transport.AlgorithmNotAgreedException
getOutputStreamCompAlgorithm
in class TransportProtocolCommon
AlgorithmNotAgreedException
- DOCUMENT ME!protected String getOutputStreamMacAlgorithm() throws com.sshtools.j2ssh.transport.AlgorithmNotAgreedException
getOutputStreamMacAlgorithm
in class TransportProtocolCommon
AlgorithmNotAgreedException
- DOCUMENT ME!protected void setRemoteIdent(String ident)
setRemoteIdent
in class TransportProtocolCommon
ident
- DOCUMENT ME!public String getRemoteId()
getRemoteId
in class TransportProtocolCommon
protected void setRemoteKexInit(com.sshtools.j2ssh.transport.SshMsgKexInit msg)
setRemoteKexInit
in class TransportProtocolCommon
msg
- DOCUMENT ME!protected com.sshtools.j2ssh.transport.SshMsgKexInit getRemoteKexInit()
getRemoteKexInit
in class TransportProtocolCommon
public com.sshtools.j2ssh.transport.publickey.SshPublicKey getServerHostKey()
protected void onStartTransportProtocol() throws IOException
onStartTransportProtocol
in class TransportProtocolCommon
IOException
- DOCUMENT ME!
TransportProtocolException
- DOCUMENT ME!protected void performKeyExchange(com.sshtools.j2ssh.transport.kex.SshKeyExchange kex) throws IOException
performKeyExchange
in class TransportProtocolCommon
kex
- DOCUMENT ME!
IOException
- DOCUMENT ME!protected 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
setupNewKeys
in class TransportProtocolCommon
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 boolean verifyHostKey(byte[] key, byte[] sig, byte[] sigdata) throws com.sshtools.j2ssh.transport.TransportProtocolException
key
- DOCUMENT ME!sig
- DOCUMENT ME!sigdata
- DOCUMENT ME!
TransportProtocolException
- DOCUMENT ME!
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |