public class ClientBuilder extends BaseBuilder<SshClient,ClientBuilder>
| Modifier and Type | Field and Description |
|---|---|
protected ClientIdentityLoader |
clientIdentityLoader |
static List<ChannelFactory> |
DEFAULT_CHANNEL_FACTORIES |
static ClientIdentityLoader |
DEFAULT_CLIENT_IDENTITY_LOADER |
static List<CompressionFactory> |
DEFAULT_COMPRESSION_FACTORIES |
static FilePasswordProvider |
DEFAULT_FILE_PASSWORD_PROVIDER |
static List<RequestHandler<ConnectionService>> |
DEFAULT_GLOBAL_REQUEST_HANDLERS |
static HostConfigEntryResolver |
DEFAULT_HOST_CONFIG_ENTRY_RESOLVER |
static KexExtensionHandler |
DEFAULT_KEX_EXTENSION_HANDLER |
static ServerKeyVerifier |
DEFAULT_SERVER_KEY_VERIFIER |
static Function<DHFactory,KeyExchangeFactory> |
DH2KEX |
protected FilePasswordProvider |
filePasswordProvider |
protected HostConfigEntryResolver |
hostConfigEntryResolver |
protected KexExtensionHandler |
kexExtensionHandler |
protected ServerKeyVerifier |
serverKeyVerifier |
channelFactories, channelStreamPacketWriterResolver, cipherFactories, compressionFactories, DEFAULT_CIPHERS_PREFERENCE, DEFAULT_FILE_SYSTEM_FACTORY, DEFAULT_FORWARDER_FACTORY, DEFAULT_FORWARDING_FILTER, DEFAULT_KEX_PREFERENCE, DEFAULT_MAC_PREFERENCE, DEFAULT_SIGNATURE_PREFERENCE, DEFAULT_UNKNOWN_CHANNEL_REFERENCE_HANDLER, factory, fileSystemFactory, forwarderFactory, forwardingFilter, globalRequestHandlers, keyExchangeFactories, macFactories, randomFactory, signatureFactories, unknownChannelReferenceHandler| Constructor and Description |
|---|
ClientBuilder() |
| Modifier and Type | Method and Description |
|---|---|
SshClient |
build(boolean isFillWithDefaultValues) |
static ClientBuilder |
builder() |
ClientBuilder |
clientIdentityLoader(ClientIdentityLoader loader) |
ClientBuilder |
filePasswordProvider(FilePasswordProvider provider) |
protected ClientBuilder |
fillWithDefaultValues() |
ClientBuilder |
hostConfigEntryResolver(HostConfigEntryResolver resolver) |
ClientBuilder |
kexExtensionHandler(KexExtensionHandler kexExtensionHandler) |
ClientBuilder |
serverKeyVerifier(ServerKeyVerifier serverKeyVerifier) |
static List<NamedFactory<Compression>> |
setUpDefaultCompressionFactories(boolean ignoreUnsupported) |
static List<KeyExchangeFactory> |
setUpDefaultKeyExchanges(boolean ignoreUnsupported) |
static List<NamedFactory<Signature>> |
setUpDefaultSignatureFactories(boolean ignoreUnsupported) |
build, channelFactories, channelStreamPacketWriterResolver, cipherFactories, compressionFactories, factory, fileSystemFactory, forwarderFactory, forwardingFilter, globalRequestHandlers, keyExchangeFactories, macFactories, me, randomFactory, setUpDefaultCiphers, setUpDefaultMacs, signatureFactories, unknownChannelReferenceHandlerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetpublic static final Function<DHFactory,KeyExchangeFactory> DH2KEX
public static final List<CompressionFactory> DEFAULT_COMPRESSION_FACTORIES
public static final List<ChannelFactory> DEFAULT_CHANNEL_FACTORIES
public static final List<RequestHandler<ConnectionService>> DEFAULT_GLOBAL_REQUEST_HANDLERS
public static final ServerKeyVerifier DEFAULT_SERVER_KEY_VERIFIER
public static final HostConfigEntryResolver DEFAULT_HOST_CONFIG_ENTRY_RESOLVER
public static final ClientIdentityLoader DEFAULT_CLIENT_IDENTITY_LOADER
public static final FilePasswordProvider DEFAULT_FILE_PASSWORD_PROVIDER
public static final KexExtensionHandler DEFAULT_KEX_EXTENSION_HANDLER
protected ServerKeyVerifier serverKeyVerifier
protected HostConfigEntryResolver hostConfigEntryResolver
protected ClientIdentityLoader clientIdentityLoader
protected FilePasswordProvider filePasswordProvider
protected KexExtensionHandler kexExtensionHandler
public ClientBuilder kexExtensionHandler(KexExtensionHandler kexExtensionHandler)
public ClientBuilder serverKeyVerifier(ServerKeyVerifier serverKeyVerifier)
public ClientBuilder hostConfigEntryResolver(HostConfigEntryResolver resolver)
public ClientBuilder clientIdentityLoader(ClientIdentityLoader loader)
public ClientBuilder filePasswordProvider(FilePasswordProvider provider)
protected ClientBuilder fillWithDefaultValues()
fillWithDefaultValues in class BaseBuilder<SshClient,ClientBuilder>public SshClient build(boolean isFillWithDefaultValues)
build in class BaseBuilder<SshClient,ClientBuilder>public static List<NamedFactory<Signature>> setUpDefaultSignatureFactories(boolean ignoreUnsupported)
public static List<NamedFactory<Compression>> setUpDefaultCompressionFactories(boolean ignoreUnsupported)
public static List<KeyExchangeFactory> 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–2021 The Apache Software Foundation. All rights reserved.