public class SshClientContext
extends com.sshtools.synergy.ssh.SshContext
Modifier and Type | Field and Description |
---|---|
protected TransportProtocolClient |
transport |
byteBufferPool, CIPHER_AES_GCM_128, CIPHER_AES_GCM_256, CIPHER_AES128_CBC, CIPHER_AES128_CTR, CIPHER_AES192_CBC, CIPHER_AES192_CTR, CIPHER_AES256_CBC, CIPHER_AES256_CTR, CIPHER_ARCFOUR, CIPHER_ARCFOUR_128, CIPHER_ARCFOUR_256, CIPHER_BLOWFISH_CBC, CIPHER_TRIPLEDES_CBC, CIPHER_TRIPLEDES_CTR, ciphersCS, ciphersSC, componentManager, COMPRESSION_NONE, COMPRESSION_ZLIB, compressionLevel, compressionsCS, compressionsSC, daemon, executor, extendedIdentificationSanitization, HMAC_MD5, HMAC_MD5_96, HMAC_MD5_ETM, HMAC_RIPEMD160, HMAC_RIPEMD160_ETM, HMAC_SHA1, HMAC_SHA1_96, HMAC_SHA1_ETM, HMAC_SHA256, HMAC_SHA256_96, HMAC_SHA256_ETM, HMAC_SHA512, HMAC_SHA512_96, HMAC_SHA512_ETM, idleAuthenticationTimeoutSeconds, idleConnectionTimeout, keepAliveDataMaxLength, keepAliveInterval, KEX_DIFFIE_HELLMAN_ECDH_NISTP_256, KEX_DIFFIE_HELLMAN_ECDH_NISTP_384, KEX_DIFFIE_HELLMAN_ECDH_NISTP_521, KEX_DIFFIE_HELLMAN_GROUP_EXCHANGE_SHA1, KEX_DIFFIE_HELLMAN_GROUP_EXCHANGE_SHA256, KEX_DIFFIE_HELLMAN_GROUP1_SHA1, KEX_DIFFIE_HELLMAN_GROUP14_SHA1, KEX_DIFFIE_HELLMAN_GROUP14_SHA256, KEX_DIFFIE_HELLMAN_GROUP15_SHA512, KEX_DIFFIE_HELLMAN_GROUP16_SHA512, KEX_DIFFIE_HELLMAN_GROUP17_SHA512, KEX_DIFFIE_HELLMAN_GROUP18_SHA512, KEYBOARD_INTERACTIVE_AUTHENTICATION, keyExchanges, killTunnelsOnRemoteForwardingCancel, locale, macCS, macSC, MAX_NUM_BYTES_BEFORE_REKEY, MAX_NUM_PACKETS_BEFORE_REKEY, maxChannels, maxDHGroupExchangeKeySize, maximumPacketLength, maximumSocketsBacklogPerRemotelyForwardedConnection, minDHGroupExchangeKeySize, PASSWORD_AUTHENTICATION, prefCipherCS, prefCipherSC, prefCompressionCS, prefCompressionSC, preferredDHGroupExchangeKeySize, prefKeyExchange, prefMacCS, prefMacSC, prefPublicKey, PUBLIC_KEY_ECDSA_SHA2_NISPTP_256, PUBLIC_KEY_ECDSA_SHA2_NISPTP_384, PUBLIC_KEY_ECDSA_SHA2_NISPTP_521, PUBLIC_KEY_ED25519, PUBLIC_KEY_ED448, PUBLIC_KEY_RSA_SHA256, PUBLIC_KEY_RSA_SHA512, PUBLIC_KEY_SSHDSS, PUBLIC_KEY_SSHRSA, PUBLICKEY_AUTHENTICATION, publicKeys, sendIgnorePacketOnIdle, signatures, softwareVersionComments
Constructor and Description |
---|
SshClientContext() |
SshClientContext(com.sshtools.common.ssh.SecurityLevel securityLevel) |
SshClientContext(com.sshtools.synergy.nio.SshEngine daemon) |
SshClientContext(com.sshtools.synergy.nio.SshEngine daemon,
com.sshtools.common.ssh.components.ComponentManager componentManager,
com.sshtools.common.ssh.SecurityLevel securityLevel) |
SshClientContext(com.sshtools.synergy.nio.SshEngine daemon,
com.sshtools.common.ssh.SecurityLevel securityLevel) |
Modifier and Type | Method and Description |
---|---|
SshClientContext |
addAuthenticator(ClientAuthenticator auth) |
SshClientContext |
addGlobalRequestHandler(com.sshtools.synergy.ssh.GlobalRequestHandler<SshClientContext> handler) |
SshClientContext |
addStateListener(ClientStateListener stateListener) |
protected void |
configureKeyExchanges() |
com.sshtools.synergy.nio.ProtocolEngine |
createEngine(com.sshtools.synergy.nio.ConnectRequestFuture connectFuture) |
AuthenticationProtocolClient |
getAuthenticationClient() |
java.util.List<ClientAuthenticator> |
getAuthenticators() |
BannerDisplay |
getBannerDisplay() |
com.sshtools.synergy.ssh.ChannelFactory<SshClientContext> |
getChannelFactory() |
com.sshtools.synergy.ssh.ConnectionManager<SshClientContext> |
getConnectionManager() |
com.sshtools.synergy.nio.SshEngineContext |
getDaemonContext() |
com.sshtools.synergy.nio.SshEngine |
getEngine() |
com.sshtools.synergy.ssh.ForwardingManager<SshClientContext> |
getForwardingManager() |
com.sshtools.synergy.ssh.GlobalRequestHandler<SshClientContext> |
getGlobalRequestHandler(java.lang.String name) |
com.sshtools.common.knownhosts.HostKeyVerification |
getHostKeyVerification() |
boolean |
getPreferKeyboardInteractiveOverPassword() |
java.lang.String |
getPreferredPublicKey() |
com.sshtools.synergy.nio.SocketConnectionFactory |
getSocketConnectionFactory() |
java.util.Collection<ClientStateListener> |
getStateListeners() |
int |
getSubsystemCacheSize() |
java.lang.String |
getSupportedPublicKeys() |
java.lang.String |
getUsername()
Get the username of this connection.
|
void |
keysExchanged(boolean first) |
SshClientContext |
setBannerDisplay(BannerDisplay bannerDisplay) |
void |
setChannelFactory(com.sshtools.synergy.ssh.ChannelFactory<SshClientContext> channelFactory) |
SshClientContext |
setConnectionManager(com.sshtools.synergy.ssh.ConnectionManager<SshClientContext> connectionManager) |
SshClientContext |
setForwardingManager(com.sshtools.synergy.ssh.ForwardingManager<SshClientContext> forwardingManager) |
SshClientContext |
setHostKeyVerification(com.sshtools.common.knownhosts.HostKeyVerification hkv) |
void |
setPreferKeyboardInteractiveOverPassword(boolean preferKeyboardInteractiveOverPassword) |
void |
setPreferredPublicKey(java.lang.String prefPublicKey) |
SshClientContext |
setSubsystemCacheSize(int subsystemCacheSize) |
SshClientContext |
setUsername(java.lang.String username)
Set the username for this connection.
|
com.sshtools.common.ssh.components.ComponentFactory<com.sshtools.synergy.ssh.components.SshKeyExchange<?>> |
supportedKeyExchanges() |
boolean |
testClientKeyExchangeAlgorithm(java.lang.String name,
java.lang.Class<? extends com.sshtools.synergy.ssh.components.SshKeyExchange<? extends com.sshtools.synergy.ssh.SshContext>> cls) |
addOperationListener, enableFIPSMode, getByteBufferPool, getChannelLimit, getCiphersCS, getCiphersSC, getComponentManager, getCompressionLevel, getExecutorListeners, getExecutorService, getForwardingPolicy, getHttpRedirectUrl, getIdleAuthenticationTimeoutSeconds, getIdleConnectionTimeoutSeconds, getKeepAliveDataMaxLength, getKeepAliveInterval, getKeyExchangePacketLimit, getKeyExchanges, getKeyExchangeTransferLimit, getLocale, getMacsCS, getMacsSC, getMaxDHGroupExchangeKeySize, getMaximumPacketLength, getMaximumSocketsBacklogPerRemotelyForwardedConnection, getMinDHGroupExchangeKeySize, getPolicy, getPolicy, getPreferredCipherCS, getPreferredCipherSC, getPreferredCompressionCS, getPreferredCompressionSC, getPreferredDHGroupExchangeKeySize, getPreferredKeyExchange, getPreferredMacCS, getPreferredMacSC, getPublicKeys, getRemoteForwardingCancelKillsTunnels, getSoftwareVersionComments, hasPolicy, init, isExtendedIdentificationSanitization, isHttpRedirect, isSendIgnorePacketOnIdle, isSHA1SignaturesSupported, listPublicKeys, removeOperationListener, setChannelLimit, setCipherPreferredPositionCS, setCipherPreferredPositionSC, setCompressionLevel, setExtendedIdentificationSanitization, setHttpRedirect, setHttpRedirectUrl, setIdleAuthenticationTimeoutSeconds, setIdleConnectionTimeoutSeconds, setKeepAliveDataMaxLength, setKeepAliveInterval, setKeyExchangePacketLimit, setKeyExchangePreferredPosition, setKeyExchangeTransferLimit, setLocale, setMacPreferredPositionCS, setMacPreferredPositionSC, setMaxDHGroupExchangeKeySize, setMaximumPacketLength, setMaximumSocketsBacklogPerRemotelyForwardedConnection, setMinDHGroupExchangeKeySize, setPolicy, setPreferredCipherCS, setPreferredCipherCS, setPreferredCipherCS, setPreferredCipherSC, setPreferredCipherSC, setPreferredCipherSC, setPreferredCompressionCS, setPreferredCompressionSC, setPreferredDHGroupExchangeKeySize, setPreferredKeyExchange, setPreferredKeyExchange, setPreferredMacCS, setPreferredMacCS, setPreferredMacCS, setPreferredMacSC, setPreferredMacSC, setPreferredMacSC, setPublicKeyPreferredPosition, setRemoteForwardingCancelKillsTunnels, setSendIgnorePacketOnIdle, setSHA1SignaturesSupported, setSocketConnectionFactory, setSoftwareVersionComments, shutdown, supportedCiphersCS, supportedCiphersSC, supportedCompressionsCS, supportedCompressionsSC, supportedMacsCS, supportedMacsSC, supportedPublicKeys, supportedSignatures
enableHTTPProxy, enableHTTPProxy, enableHTTPProxy, enableHTTPProxy, enableSocks4Proxy, enableSocks5Proxy, getOptionalHeaders, getProxyHostname, getProxyPassword, getProxyPort, getProxyType, getProxyUsername, getReceiveBufferSize, getSendBufferSize, getSocketOptionKeepAlive, getSocketOptionReuseAddress, getSocketOptionTcpNoDelay, getUserAgent, isProxyEnabled, isResolveLocally, setReceiveBufferSize, setSendBufferSize, setSocketOptionKeepAlive, setSocketOptionReuseAddress, setSocketOptionTcpNoDelay
protected TransportProtocolClient transport
public SshClientContext() throws java.io.IOException, com.sshtools.common.ssh.SshException
java.io.IOException
com.sshtools.common.ssh.SshException
public SshClientContext(com.sshtools.synergy.nio.SshEngine daemon, com.sshtools.common.ssh.components.ComponentManager componentManager, com.sshtools.common.ssh.SecurityLevel securityLevel) throws java.io.IOException, com.sshtools.common.ssh.SshException
java.io.IOException
com.sshtools.common.ssh.SshException
public SshClientContext(com.sshtools.synergy.nio.SshEngine daemon) throws java.io.IOException, com.sshtools.common.ssh.SshException
java.io.IOException
com.sshtools.common.ssh.SshException
public SshClientContext(com.sshtools.synergy.nio.SshEngine daemon, com.sshtools.common.ssh.SecurityLevel securityLevel) throws java.io.IOException, com.sshtools.common.ssh.SshException
java.io.IOException
com.sshtools.common.ssh.SshException
public SshClientContext(com.sshtools.common.ssh.SecurityLevel securityLevel) throws java.io.IOException, com.sshtools.common.ssh.SshException
java.io.IOException
com.sshtools.common.ssh.SshException
public com.sshtools.synergy.nio.ProtocolEngine createEngine(com.sshtools.synergy.nio.ConnectRequestFuture connectFuture) throws java.io.IOException
createEngine
in class com.sshtools.synergy.ssh.SshContext
java.io.IOException
public final com.sshtools.synergy.nio.SshEngine getEngine()
getEngine
in class com.sshtools.synergy.ssh.SshContext
public SshClientContext setUsername(java.lang.String username)
username
- public java.lang.String getUsername()
public SshClientContext addStateListener(ClientStateListener stateListener)
public java.util.Collection<ClientStateListener> getStateListeners()
public com.sshtools.synergy.ssh.ForwardingManager<SshClientContext> getForwardingManager()
getForwardingManager
in class com.sshtools.synergy.ssh.SshContext
public SshClientContext setForwardingManager(com.sshtools.synergy.ssh.ForwardingManager<SshClientContext> forwardingManager)
public void keysExchanged(boolean first)
public AuthenticationProtocolClient getAuthenticationClient()
protected void configureKeyExchanges()
configureKeyExchanges
in class com.sshtools.synergy.ssh.SshContext
public boolean testClientKeyExchangeAlgorithm(java.lang.String name, java.lang.Class<? extends com.sshtools.synergy.ssh.components.SshKeyExchange<? extends com.sshtools.synergy.ssh.SshContext>> cls)
public java.lang.String getSupportedPublicKeys()
getSupportedPublicKeys
in class com.sshtools.synergy.ssh.SshContext
public com.sshtools.common.ssh.components.ComponentFactory<com.sshtools.synergy.ssh.components.SshKeyExchange<?>> supportedKeyExchanges()
supportedKeyExchanges
in class com.sshtools.synergy.ssh.SshContext
public java.lang.String getPreferredPublicKey()
getPreferredPublicKey
in class com.sshtools.synergy.ssh.SshContext
public void setPreferredPublicKey(java.lang.String prefPublicKey)
public com.sshtools.synergy.ssh.ConnectionManager<SshClientContext> getConnectionManager()
getConnectionManager
in class com.sshtools.synergy.ssh.SshContext
public SshClientContext setConnectionManager(com.sshtools.synergy.ssh.ConnectionManager<SshClientContext> connectionManager)
public SshClientContext addAuthenticator(ClientAuthenticator auth)
public java.util.List<ClientAuthenticator> getAuthenticators()
public BannerDisplay getBannerDisplay()
public SshClientContext setBannerDisplay(BannerDisplay bannerDisplay)
public int getSubsystemCacheSize()
public SshClientContext setSubsystemCacheSize(int subsystemCacheSize)
public com.sshtools.synergy.ssh.ChannelFactory<SshClientContext> getChannelFactory()
getChannelFactory
in class com.sshtools.synergy.ssh.SshContext
public void setChannelFactory(com.sshtools.synergy.ssh.ChannelFactory<SshClientContext> channelFactory)
public com.sshtools.synergy.nio.SshEngineContext getDaemonContext()
getDaemonContext
in class com.sshtools.synergy.ssh.SshContext
public SshClientContext addGlobalRequestHandler(com.sshtools.synergy.ssh.GlobalRequestHandler<SshClientContext> handler)
public com.sshtools.synergy.ssh.GlobalRequestHandler<SshClientContext> getGlobalRequestHandler(java.lang.String name)
getGlobalRequestHandler
in class com.sshtools.synergy.ssh.SshContext
public com.sshtools.synergy.nio.SocketConnectionFactory getSocketConnectionFactory()
getSocketConnectionFactory
in class com.sshtools.synergy.ssh.SshContext
public com.sshtools.common.knownhosts.HostKeyVerification getHostKeyVerification()
public SshClientContext setHostKeyVerification(com.sshtools.common.knownhosts.HostKeyVerification hkv)
public boolean getPreferKeyboardInteractiveOverPassword()
public void setPreferKeyboardInteractiveOverPassword(boolean preferKeyboardInteractiveOverPassword)
Copyright © 2024. All rights reserved.