|
||||||||||
| 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
DOCUMENT ME!
| Field Summary | |
protected 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(HostKeyVerification hosts)
Creates a new TransportProtocolClient object. |
|
| Method Summary | |
protected java.lang.String |
getDecryptionAlgorithm()
DOCUMENT ME! |
protected java.lang.String |
getEncryptionAlgorithm()
DOCUMENT ME! |
protected java.lang.String |
getInputStreamCompAlgortihm()
DOCUMENT ME! |
protected java.lang.String |
getInputStreamMacAlgorithm()
DOCUMENT ME! |
java.lang.String |
getLocalId()
DOCUMENT ME! |
protected SshMsgKexInit |
getLocalKexInit()
DOCUMENT ME! |
protected java.lang.String |
getOutputStreamCompAlgorithm()
DOCUMENT ME! |
protected java.lang.String |
getOutputStreamMacAlgorithm()
DOCUMENT ME! |
java.lang.String |
getRemoteId()
DOCUMENT ME! |
protected SshMsgKexInit |
getRemoteKexInit()
DOCUMENT ME! |
SshPublicKey |
getServerHostKey()
DOCUMENT ME! |
protected void |
onDisconnect()
DOCUMENT ME! |
void |
onMessageReceived(SshMessage msg)
DOCUMENT ME! |
protected void |
onStartTransportProtocol()
DOCUMENT ME! |
protected void |
performKeyExchange(SshKeyExchange kex)
DOCUMENT ME! |
void |
registerTransportMessages()
DOCUMENT ME! |
void |
requestService(Service service)
DOCUMENT ME! |
protected void |
setLocalIdent()
DOCUMENT ME! |
protected void |
setLocalKexInit(SshMsgKexInit msg)
DOCUMENT ME! |
protected void |
setRemoteIdent(java.lang.String ident)
DOCUMENT ME! |
protected void |
setRemoteKexInit(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 SshPublicKey pk
| Constructor Detail |
public TransportProtocolClient(HostKeyVerification hosts)
throws TransportProtocolException
hosts - DOCUMENT ME!
TransportProtocolException - DOCUMENT ME!| Method Detail |
public void onMessageReceived(SshMessage msg)
throws java.io.IOException
onMessageReceived in class TransportProtocolCommonmsg - DOCUMENT ME!
java.io.IOException - DOCUMENT ME!
public void registerTransportMessages()
throws MessageAlreadyRegisteredException
registerTransportMessages in class TransportProtocolCommonMessageAlreadyRegisteredException - DOCUMENT ME!
public void requestService(Service service)
throws java.io.IOException
service - DOCUMENT ME!
java.io.IOException - DOCUMENT ME!
SshException - DOCUMENT ME!protected void onDisconnect()
onDisconnect in class TransportProtocolCommon
protected java.lang.String getDecryptionAlgorithm()
throws AlgorithmNotAgreedException
getDecryptionAlgorithm in class TransportProtocolCommonAlgorithmNotAgreedException - DOCUMENT ME!
protected java.lang.String getEncryptionAlgorithm()
throws AlgorithmNotAgreedException
getEncryptionAlgorithm in class TransportProtocolCommonAlgorithmNotAgreedException - DOCUMENT ME!
protected java.lang.String getInputStreamCompAlgortihm()
throws AlgorithmNotAgreedException
getInputStreamCompAlgortihm in class TransportProtocolCommonAlgorithmNotAgreedException - DOCUMENT ME!
protected java.lang.String getInputStreamMacAlgorithm()
throws AlgorithmNotAgreedException
getInputStreamMacAlgorithm in class TransportProtocolCommonAlgorithmNotAgreedException - DOCUMENT ME!protected void setLocalIdent()
setLocalIdent in class TransportProtocolCommonpublic java.lang.String getLocalId()
getLocalId in class TransportProtocolCommonprotected void setLocalKexInit(SshMsgKexInit msg)
setLocalKexInit in class TransportProtocolCommonmsg - DOCUMENT ME!protected SshMsgKexInit getLocalKexInit()
getLocalKexInit in class TransportProtocolCommon
protected java.lang.String getOutputStreamCompAlgorithm()
throws AlgorithmNotAgreedException
getOutputStreamCompAlgorithm in class TransportProtocolCommonAlgorithmNotAgreedException - DOCUMENT ME!
protected java.lang.String getOutputStreamMacAlgorithm()
throws AlgorithmNotAgreedException
getOutputStreamMacAlgorithm in class TransportProtocolCommonAlgorithmNotAgreedException - DOCUMENT ME!protected void setRemoteIdent(java.lang.String ident)
setRemoteIdent in class TransportProtocolCommonident - DOCUMENT ME!public java.lang.String getRemoteId()
getRemoteId in class TransportProtocolCommonprotected void setRemoteKexInit(SshMsgKexInit msg)
setRemoteKexInit in class TransportProtocolCommonmsg - DOCUMENT ME!protected SshMsgKexInit getRemoteKexInit()
getRemoteKexInit in class TransportProtocolCommonpublic SshPublicKey getServerHostKey()
protected void onStartTransportProtocol()
throws java.io.IOException
onStartTransportProtocol in class TransportProtocolCommonjava.io.IOException - DOCUMENT ME!
TransportProtocolException - DOCUMENT ME!
protected void performKeyExchange(SshKeyExchange kex)
throws java.io.IOException
performKeyExchange in class TransportProtocolCommonkex - DOCUMENT ME!
java.io.IOException - DOCUMENT ME!
protected void setupNewKeys(byte[] encryptCSKey,
byte[] encryptCSIV,
byte[] encryptSCKey,
byte[] encryptSCIV,
byte[] macCSKey,
byte[] macSCKey)
throws AlgorithmNotAgreedException,
AlgorithmOperationException,
AlgorithmNotSupportedException,
AlgorithmInitializationException
setupNewKeys in class TransportProtocolCommonencryptCSKey - 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 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 | |||||||||