Package com.sshtools.common.ssh
Interface SshConnection
- All Superinterfaces:
EventTrigger
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddEventListener(EventListener listener) voidaddTask(Integer queue, ConnectionAwareTask connectionAwareTask) booleancontainsProperty(String key) voidvoiddisconnect(int reason, String message) voiddisconnect(String message) voidintgetProperty(String key) String[]String[]String[]String[]String[]String[]String[]intString[]intlonglonggetUUID()booleanbooleanbooleanvoidopenChannel(Channel channel) voidremoveEventListener(EventListener listener) voidremoveProperty(String string) voidsendGlobalRequest(GlobalRequest request) voidsendGlobalRequest(GlobalRequest request, boolean wantReply) Deprecated.voidsendGlobalRequestAndWait(GlobalRequest request, long timeout) voidsetProperty(String key, Object value) voidsetUsername(String username) voidvoidstartLogging(Log.Level trace) Methods inherited from interface com.sshtools.common.events.EventTrigger
fireEvent
-
Method Details
-
getUsername
String getUsername() -
getProperty
-
setProperty
-
containsProperty
-
getSessionId
String getSessionId() -
getLocale
Locale getLocale() -
setUsername
-
disconnect
-
disconnect
-
getLocalAddress
InetAddress getLocalAddress() -
getLocalPort
int getLocalPort() -
getRemotePort
int getRemotePort() -
isAuthenticated
boolean isAuthenticated() -
getContext
Context getContext() -
executeTask
-
getConnectionManager
SshConnectionManager getConnectionManager() -
isConnected
boolean isConnected() -
isDisconnecting
boolean isDisconnecting() -
addTask
-
getServerVersion
String getServerVersion() -
openChannel
-
getUUID
String getUUID() -
getRemoteIdentification
String getRemoteIdentification() -
startLogging
- Throws:
IOException
-
startLogging
- Throws:
IOException
-
disconnect
void disconnect() -
addEventListener
-
removeEventListener
-
addTask
-
getRemotePublicKeys
String[] getRemotePublicKeys() -
getRemoteKeyExchanges
String[] getRemoteKeyExchanges() -
getRemoteCompressionsCS
String[] getRemoteCompressionsCS() -
getRemoteCompressionsSC
String[] getRemoteCompressionsSC() -
getRemoteCiphersCS
String[] getRemoteCiphersCS() -
getRemoteCiphersSC
String[] getRemoteCiphersSC() -
getRemoteMacsCS
String[] getRemoteMacsCS() -
getRemoteMacsSC
String[] getRemoteMacsSC() -
getHostKey
SshPublicKey getHostKey() -
getKeyExchangeInUse
String getKeyExchangeInUse() -
getHostKeyInUse
String getHostKeyInUse() -
getCipherInUseCS
String getCipherInUseCS() -
getCipherInUseSC
String getCipherInUseSC() -
getMacInUseCS
String getMacInUseCS() -
getMacInUseSC
String getMacInUseSC() -
getCompressionInUseCS
String getCompressionInUseCS() -
getCompressionInUseSC
String getCompressionInUseSC() -
sendGlobalRequest
Deprecated. -
getAuthenticatedFuture
AbstractRequestFuture getAuthenticatedFuture() -
getDisconnectFuture
AbstractRequestFuture getDisconnectFuture() -
removeProperty
-
getSessionCount
int getSessionCount() -
getTotalBytesIn
long getTotalBytesIn() -
getTotalBytesOut
long getTotalBytesOut() -
getRemoteIPAddress
String getRemoteIPAddress() -
sendGlobalRequest
-
sendGlobalRequestAndWait
-