public class SshClientContext extends SshContext
byteBufferPool, 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, COMPRESSION_NONE, COMPRESSION_ZLIB, compressionLevel, compressionsCS, compressionsSC, daemon, executor, forwardingBufferMaxQueueCount, forwardingPolicy, 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_GROUP_EXCHANGE_SHA1, KEX_DIFFIE_HELLMAN_GROUP_EXCHANGE_SHA256, KEX_DIFFIE_HELLMAN_GROUP1_SHA1, KEX_DIFFIE_HELLMAN_GROUP14_SHA1, KEYBOARD_INTERACTIVE_AUTHENTICATION, keyExchanges, killTunnelsOnRemoteForwardingCancel, locale, macCS, macSC, MAX_NUM_BYTES_BEFORE_REKEY, MAX_NUM_PACKETS_BEFORE_REKEY, maxAuthentications, maxChannels, maximumPacketLength, maximumSocketsBacklogPerRemotelyForwardedConnection, minDHGroupExchangeKeySize, PASSWORD_AUTHENTICATION, prefCipherCS, prefCipherSC, prefCompressionCS, prefCompressionSC, prefKeyExchange, prefMacCS, prefMacSC, prefPublicKey, PUBLIC_KEY_ECDSA_SHA2_NISPTP_256, PUBLIC_KEY_ECDSA_SHA2_NISPTP_384, PUBLIC_KEY_ECDSA_SHA2_NISPTP_521, PUBLIC_KEY_SSHDSS, PUBLIC_KEY_SSHRSA, PUBLICKEY_AUTHENTICATION, publicKeys, softwareVersionComments
keepAlive, receiveBufferSize, reuseAddress, sendBufferSize, tcpNoDelay
Constructor and Description |
---|
SshClientContext(SshEngine daemon) |
SshClientContext(SshEngine daemon,
ComponentManager componentManager) |
addOperationListener, enableFIPSMode, getByteBufferPool, getChannelLimit, getCiphersCS, getCiphersSC, getComponentManager, getCompressionLevel, getExecutorListeners, getExecutorService, getForwardingBufferMaxQueueCount, getForwardingPolicy, getIdleAuthenticationTimeoutSeconds, getIdleConnectionTimeoutSeconds, getKeepAliveDataMaxLength, getKeepAliveInterval, getKeyExchangePacketLimit, getKeyExchanges, getKeyExchangeTransferLimit, getLocale, getMacsCS, getMacsSC, getMaxAuthentications, getMaximumPacketLength, getMaximumSocketsBacklogPerRemotelyForwardedConnection, getMinDHGroupExchangeKeySize, getPreferredCipherCS, getPreferredCipherSC, getPreferredCompressionCS, getPreferredCompressionSC, getPreferredKeyExchange, getPreferredMacCS, getPreferredMacSC, getPublicKeys, getRemoteForwardingCancelKillsTunnels, getSoftwareVersionComments, init, listPublicKeys, removeOperationListener, setChannelLimit, setCipherPreferredPositionCS, setCipherPreferredPositionSC, setCompressionLevel, setForwardingBufferMaxQueueCount, setForwardingPolicy, setIdleAuthenticationTimeoutSeconds, setIdleConnectionTimeoutSeconds, setKeepAliveDataMaxLength, setKeepAliveInterval, setKeyExchangePacketLimit, setKeyExchangePreferredPosition, setKeyExchangeTransferLimit, setLocale, setMacPreferredPositionCS, setMacPreferredPositionSC, setMaxAuthentications, setMaximumPacketLength, setMaximumSocketsBacklogPerRemotelyForwardedConnection, setMinDHGroupExchangeKeySize, setPreferredCipherCC, setPreferredCipherCS, setPreferredCipherCS, setPreferredCipherSC, setPreferredCipherSC, setPreferredCipherSC, setPreferredCompressionCS, setPreferredCompressionSC, setPreferredKeyExchange, setPreferredKeyExchange, setPreferredMacCS, setPreferredMacCS, setPreferredMacCS, setPreferredMacSC, setPreferredMacSC, setPreferredMacSC, setPublicKeyPreferredPosition, setRemoteForwardingCancelKillsTunnels, setSocketConnectionFactory, setSoftwareVersionComments, shutdown, supportedCiphersCS, supportedCiphersSC, supportedCompressionsCS, supportedCompressionsSC, supportedMacsCS, supportedMacsSC, supportedPublicKeys
createConnection, createConnectionImpl, getReceiveBufferSize, getSendBufferSize, getSocketOptionKeepAlive, getSocketOptionReuseAddress, getSocketOptionTcpNoDelay, setReceiveBufferSize, setSendBufferSize, setSocketHandlerImpl, setSocketOptionKeepAlive, setSocketOptionReuseAddress, setSocketOptionTcpNoDelay
public SshClientContext(SshEngine daemon, ComponentManager componentManager) throws IOException
IOException
public SshClientContext(SshEngine daemon) throws IOException
IOException
public ProtocolEngine createEngine(ConnectRequestFuture connectFuture) throws IOException
ProtocolContext
createEngine
in class SshContext
IOException
public final SshEngine getEngine()
SshContext
getEngine
in class SshContext
public void setUsername(String username)
username
- public String getUsername()
public void addStateListener(ConnectionStateListener<SshClientContext> stateListener)
public Collection<ConnectionStateListener<SshClientContext>> getStateListeners()
public ForwardingManager<SshClientContext> getForwardingManager()
getForwardingManager
in class SshContext
public void setForwardingManager(ForwardingManager<SshClientContext> forwardingManager)
public void keysExchanged()
protected void configureKeyExchanges()
configureKeyExchanges
in class SshContext
public String getSupportedPublicKeys()
getSupportedPublicKeys
in class SshContext
public ComponentFactory<SshKeyExchange<?>> supportedKeyExchanges()
SshContext
Get the supported key exchange methods.
There are no optional key exchange algorithms currently available and this method is supplied in preperation for future enhancements.
supportedKeyExchanges
in class SshContext
public String getPreferredPublicKey()
getPreferredPublicKey
in class SshContext
public ConnectionManager<SshClientContext> getConnectionManager()
getConnectionManager
in class SshContext
public void setConnectionManager(ConnectionManager<SshClientContext> connectionManager)
public void addAuthenticator(ClientAuthenticator auth)
public List<ClientAuthenticator> getAuthenticators()
public BannerDisplay getBannerDisplay()
public void setBannerDisplay(BannerDisplay bannerDisplay)
public void setTerminalType(String term)
public String getTerminalType()
public void setTerminalColumns(int cols)
public int getTerminalColumns()
public void setTerminalRows(int rows)
public int getTerminalRows()
public void setTerminalHeight(int height)
public int getTerminalHeight()
public void setTerminalWidth(int width)
public int getTerminalWidth()
public void setAllocatePseudoTerminal(boolean allocatePseudoTerminal)
public boolean isAllocatePseudoTerminal()
public void setTerminalModes(byte[] modes)
public byte[] getTerminalModes()
public int getSubsystemCacheSize()
public void setSubsystemCacheSize(int subsystemCacheSize)
public ChannelFactory<SshClientContext> getChannelFactory()
getChannelFactory
in class SshContext
public SshEngineContext getDaemonContext()
getDaemonContext
in class SshContext
public void addGlobalRequestHandler(GlobalRequestHandler<SshClientContext> handler)
public GlobalRequestHandler<SshClientContext> getGlobalRequestHandler(String name)
getGlobalRequestHandler
in class SshContext
public SocketConnectionFactory getSocketConnectionFactory()
getSocketConnectionFactory
in class SshContext
public int getSessionMaxPacketSize()
public int getSessionMaxWindowSize()
Copyright © 2016. All rights reserved.