public class ClientBuilder extends BaseBuilder<SshClient,ClientBuilder>
| Modifier and Type | Field and Description |
|---|---|
static List<NamedFactory<Channel>> |
DEFAULT_CHANNEL_FACTORIES |
static ServerKeyVerifier |
DEFAULT_SERVER_KEY_VERIFIER |
static Transformer<DHFactory,NamedFactory<KeyExchange>> |
DH2KEX |
protected ServerKeyVerifier |
serverKeyVerifier |
channelFactories, cipherFactories, compressionFactories, DEFAULT_CIPHERS_PREFERENCE, DEFAULT_COMPRESSION_FACTORIES, DEFAULT_FILE_SYSTEM_FACTORY, DEFAULT_FORWARDER_FACTORY, DEFAULT_FORWARDING_FILTER, DEFAULT_KEX_PREFERENCE, DEFAULT_MAC_PREFERENCE, DEFAULT_SIGNATURE_PREFERENCE, factory, fileSystemFactory, forwardingFilter, globalRequestHandlers, keyExchangeFactories, macFactories, randomFactory, signatureFactories, tcpipForwarderFactory| Constructor and Description |
|---|
ClientBuilder() |
| Modifier and Type | Method and Description |
|---|---|
SshClient |
build(boolean isFillWithDefaultValues) |
static ClientBuilder |
builder() |
protected ClientBuilder |
fillWithDefaultValues() |
ClientBuilder |
serverKeyVerifier(ServerKeyVerifier serverKeyVerifier) |
static List<NamedFactory<KeyExchange>> |
setUpDefaultKeyExchanges(boolean ignoreUnsupported) |
build, channelFactories, cipherFactories, compressionFactories, factory, fileSystemFactory, forwardingFilter, globalRequestHandlers, keyExchangeFactories, macFactories, me, randomFactory, setUpDefaultCiphers, setUpDefaultMacs, setUpDefaultSignatures, signatureFactories, tcpipForwarderFactorypublic static final Transformer<DHFactory,NamedFactory<KeyExchange>> DH2KEX
public static final List<NamedFactory<Channel>> DEFAULT_CHANNEL_FACTORIES
public static final ServerKeyVerifier DEFAULT_SERVER_KEY_VERIFIER
protected ServerKeyVerifier serverKeyVerifier
public ClientBuilder serverKeyVerifier(ServerKeyVerifier serverKeyVerifier)
protected ClientBuilder fillWithDefaultValues()
fillWithDefaultValues in class BaseBuilder<SshClient,ClientBuilder>public SshClient build(boolean isFillWithDefaultValues)
build in class BaseBuilder<SshClient,ClientBuilder>public static List<NamedFactory<KeyExchange>> setUpDefaultKeyExchanges(boolean ignoreUnsupported)
ignoreUnsupported - If true then all the default
key exchanges are included, regardless of whether they are currently
supported by the JCE. Otherwise, only the supported ones out of the
list are includedList of the default NamedFactory
instances of the KeyExchanges according to the preference
order defined by BaseBuilder.DEFAULT_KEX_PREFERENCE.
Note: the list may be filtered to exclude unsupported JCE
key exchanges according to the ignoreUnsupported parameterBuiltinDHFactories.isSupported()public static ClientBuilder builder()
Copyright © 2008–2015 The Apache Software Foundation. All rights reserved.