|
Secure iNet Factory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jscape.inet.ssh.transport.Transport
public abstract class Transport
Method Summary | |
---|---|
void |
close()
|
void |
exchangeKeys()
|
abstract ProtocolVersion |
getClientVersion()
|
AlgorithmSuite |
getCurrentSuite()
|
HostKeyVerifier |
getHostKeyVerifier()
Returns current host key verifier. |
long |
getReceivedBytesCount()
Obtains the received bytes value. |
long |
getSentBytesCount()
Obtains the sent bytes value. |
abstract ProtocolVersion |
getServerVersion()
|
byte[] |
getSessionId()
Obtains the current session ID. |
java.net.Socket |
getSocket()
Gets underlying Socket for this connection |
boolean |
isClosed()
|
boolean |
knowsMessage(int type)
Checks if the specified message is already registered. |
Message |
receiveMessage()
|
void |
registerMessage(int type,
java.lang.Class messageClass)
Registers the message to the transport so it can read the specified message. |
void |
sendMessage(Message msg)
|
void |
unregisterMessage(int type)
Uregisters the message. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public java.net.Socket getSocket()
public void exchangeKeys() throws java.io.IOException
java.io.IOException
public void close()
public boolean isClosed()
public void sendMessage(Message msg) throws java.io.IOException
msg
-
java.io.IOException
public Message receiveMessage() throws java.io.IOException
java.io.IOException
public byte[] getSessionId()
public long getSentBytesCount()
public long getReceivedBytesCount()
public AlgorithmSuite getCurrentSuite()
public void registerMessage(int type, java.lang.Class messageClass)
type
- the message type codemessageClass
- the message classpublic void unregisterMessage(int type)
type
- the message type codepublic boolean knowsMessage(int type)
type
- the messsage type code
true
if the message is already registered;
false
otherwisepublic abstract ProtocolVersion getClientVersion()
public abstract ProtocolVersion getServerVersion()
public HostKeyVerifier getHostKeyVerifier()
|
Secure iNet Factory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |