public class SshClientContext extends 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, 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_RSA_SHA256, PUBLIC_KEY_RSA_SHA512, PUBLIC_KEY_SSHDSS, PUBLIC_KEY_SSHRSA, PUBLICKEY_AUTHENTICATION, publicKeys, sendIgnorePacketOnIdle, softwareVersionCommentskeepAlive, receiveBufferSize, reuseAddress, sendBufferSize, tcpNoDelay| Constructor and Description |
|---|
SshClientContext() |
SshClientContext(SecurityLevel securityLevel) |
SshClientContext(SshEngine daemon) |
SshClientContext(SshEngine daemon,
ComponentManager componentManager,
SecurityLevel securityLevel) |
SshClientContext(SshEngine daemon,
SecurityLevel securityLevel) |
addOperationListener, enableFIPSMode, getAuthenticatedFuture, 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, isHttpRedirect, isSendIgnorePacketOnIdle, listPublicKeys, removeOperationListener, setChannelLimit, setCipherPreferredPositionCS, setCipherPreferredPositionSC, setCompressionLevel, 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, setSocketConnectionFactory, setSoftwareVersionComments, shutdown, supportedCiphersCS, supportedCiphersSC, supportedCompressionsCS, supportedCompressionsSC, supportedMacsCS, supportedMacsSC, supportedPublicKeysenableHTTPProxy, enableHTTPProxy, enableHTTPProxy, enableHTTPProxy, enableSocks4Proxy, enableSocks5Proxy, getOptionalHeaders, getProxyHostname, getProxyPassword, getProxyPort, getProxyType, getProxyUsername, getReceiveBufferSize, getSendBufferSize, getSocketOptionKeepAlive, getSocketOptionReuseAddress, getSocketOptionTcpNoDelay, getUserAgent, isProxyEnabled, isResolveLocally, setReceiveBufferSize, setSendBufferSize, setSocketOptionKeepAlive, setSocketOptionReuseAddress, setSocketOptionTcpNoDelayprotected TransportProtocolClient transport
public SshClientContext()
throws java.io.IOException,
SshException
java.io.IOExceptionSshExceptionpublic SshClientContext(SshEngine daemon, ComponentManager componentManager, SecurityLevel securityLevel) throws java.io.IOException, SshException
java.io.IOExceptionSshExceptionpublic SshClientContext(SshEngine daemon) throws java.io.IOException, SshException
java.io.IOExceptionSshExceptionpublic SshClientContext(SshEngine daemon, SecurityLevel securityLevel) throws java.io.IOException, SshException
java.io.IOExceptionSshExceptionpublic SshClientContext(SecurityLevel securityLevel) throws java.io.IOException, SshException
java.io.IOExceptionSshExceptionpublic ProtocolEngine createEngine(ConnectRequestFuture connectFuture) throws java.io.IOException
createEngine in class SshContextjava.io.IOExceptionpublic final SshEngine getEngine()
getEngine in class SshContextpublic SshClientContext setUsername(java.lang.String username)
username - public java.lang.String getUsername()
public SshClientContext addStateListener(ClientStateListener stateListener)
public java.util.Collection<ClientStateListener> getStateListeners()
public ForwardingManager<SshClientContext> getForwardingManager()
getForwardingManager in class SshContextpublic SshClientContext setForwardingManager(ForwardingManager<SshClientContext> forwardingManager)
public void keysExchanged(boolean first)
public AuthenticationProtocolClient getAuthenticationClient()
protected void configureKeyExchanges()
configureKeyExchanges in class SshContextpublic boolean testClientKeyExchangeAlgorithm(java.lang.String name,
java.lang.Class<? extends SshKeyExchange<? extends SshContext>> cls)
public java.lang.String getSupportedPublicKeys()
getSupportedPublicKeys in class SshContextpublic ComponentFactory<SshKeyExchange<?>> supportedKeyExchanges()
supportedKeyExchanges in class SshContextpublic java.lang.String getPreferredPublicKey()
getPreferredPublicKey in class SshContextpublic void setPreferredPublicKey(java.lang.String prefPublicKey)
public ConnectionManager<SshClientContext> getConnectionManager()
getConnectionManager in class SshContextpublic SshClientContext setConnectionManager(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 ChannelFactory<SshClientContext> getChannelFactory()
getChannelFactory in class SshContextpublic void setChannelFactory(ChannelFactory<SshClientContext> channelFactory)
public SshEngineContext getDaemonContext()
getDaemonContext in class SshContextpublic SshClientContext addGlobalRequestHandler(GlobalRequestHandler<SshClientContext> handler)
public GlobalRequestHandler<SshClientContext> getGlobalRequestHandler(java.lang.String name)
getGlobalRequestHandler in class SshContextpublic SocketConnectionFactory getSocketConnectionFactory()
getSocketConnectionFactory in class SshContextpublic HostKeyVerification getHostKeyVerification()
public SshClientContext setHostKeyVerification(HostKeyVerification hkv)
public boolean getPreferKeyboardInteractiveOverPassword()
public void setPreferKeyboardInteractiveOverPassword(boolean preferKeyboardInteractiveOverPassword)
Copyright © 2022. All rights reserved.