Package org.apache.sshd.server
Class ServerBuilder
- All Implemented Interfaces:
Supplier<SshServer>,ObjectBuilder<SshServer>
SshServer builder
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final List<ChannelFactory> static final List<CompressionFactory> static final List<RequestHandler<ConnectionService>> static final KeyboardInteractiveAuthenticatorstatic final KexExtensionHandlerstatic final PublickeyAuthenticatorstatic final Function<DHFactory, KeyExchangeFactory> protected KeyboardInteractiveAuthenticatorprotected PublickeyAuthenticatorFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild(boolean isFillWithDefaultValues) static ServerBuilderbuilder()protected ServerBuilderstatic 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, unknownChannelReferenceHandlerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
fillWithDefaultValuesin classBaseBuilder<SshServer,ServerBuilder>
-
build
- Overrides:
buildin classBaseBuilder<SshServer,ServerBuilder>
-
setUpDefaultSignatureFactories
public static List<NamedFactory<Signature>> setUpDefaultSignatureFactories(boolean ignoreUnsupported) -
setUpDefaultCompressionFactories
public static List<NamedFactory<Compression>> setUpDefaultCompressionFactories(boolean ignoreUnsupported) -
setUpDefaultKeyExchanges
- Parameters:
ignoreUnsupported- Iftruethen 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
Listof the defaultNamedFactoryinstances of theKeyExchanges 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
-