Package org.apache.sshd.server
Class ServerBuilder
- All Implemented Interfaces:
Supplier<SshServer>
,ObjectBuilder<SshServer>
SshServer builder
-
Field Summary
Modifier and TypeFieldDescriptionstatic final List<ChannelFactory>
static final List<CompressionFactory>
static final List<RequestHandler<ConnectionService>>
static final KeyboardInteractiveAuthenticator
static final KexExtensionHandler
static final PublickeyAuthenticator
static final Function<DHFactory,
KeyExchangeFactory> protected KeyboardInteractiveAuthenticator
protected PublickeyAuthenticator
Fields inherited from class org.apache.sshd.common.BaseBuilder
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, kexExtensionHandler, keyExchangeFactories, macFactories, randomFactory, signatureFactories, unknownChannelReferenceHandler
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild
(boolean isFillWithDefaultValues) static ServerBuilder
builder()
protected ServerBuilder
static List<NamedFactory<Compression>>
setUpDefaultCompressionFactories
(boolean ignoreUnsupported) static List<KeyExchangeFactory>
setUpDefaultKeyExchanges
(boolean ignoreUnsupported) static List<NamedFactory<Signature>>
setUpDefaultSignatureFactories
(boolean ignoreUnsupported) Methods inherited from class org.apache.sshd.common.BaseBuilder
build, channelFactories, channelStreamPacketWriterResolver, cipherFactories, compressionFactories, factory, fileSystemFactory, forwarderFactory, forwardingFilter, globalRequestHandlers, kexExtensionHandler, keyExchangeFactories, macFactories, me, randomFactory, setUpDefaultCiphers, setUpDefaultMacs, signatureFactories, unknownChannelReferenceHandler
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.sshd.common.util.ObjectBuilder
get
-
Field Details
-
DH2KEX
-
DEFAULT_CHANNEL_FACTORIES
-
DEFAULT_GLOBAL_REQUEST_HANDLERS
-
DEFAULT_PUBLIC_KEY_AUTHENTICATOR
-
DEFAULT_INTERACTIVE_AUTHENTICATOR
-
DEFAULT_COMPRESSION_FACTORIES
-
DEFAULT_KEX_EXTENSION_HANDLER
-
pubkeyAuthenticator
-
interactiveAuthenticator
-
-
Constructor Details
-
ServerBuilder
public ServerBuilder()
-
-
Method Details
-
interactiveAuthenticator
-
publickeyAuthenticator
-
fillWithDefaultValues
- Overrides:
fillWithDefaultValues
in classBaseBuilder<SshServer,
ServerBuilder>
-
build
- Overrides:
build
in classBaseBuilder<SshServer,
ServerBuilder>
-
setUpDefaultSignatureFactories
public static List<NamedFactory<Signature>> setUpDefaultSignatureFactories(boolean ignoreUnsupported) -
setUpDefaultCompressionFactories
public static List<NamedFactory<Compression>> setUpDefaultCompressionFactories(boolean ignoreUnsupported) -
setUpDefaultKeyExchanges
- Parameters:
ignoreUnsupported
- Iftrue
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 included- Returns:
- A
List
of the defaultNamedFactory
instances of theKeyExchange
s according to the preference order defined byBaseBuilder.DEFAULT_KEX_PREFERENCE
. Note: the list may be filtered to exclude unsupported JCE key exchanges according to the ignoreUnsupported parameter - See Also:
-
builder
-