public class ServerBuilder extends BaseBuilder<SshServer,ServerBuilder>
Modifier and Type | Field and Description |
---|---|
static java.util.List<ChannelFactory> |
DEFAULT_CHANNEL_FACTORIES |
static java.util.List<CompressionFactory> |
DEFAULT_COMPRESSION_FACTORIES |
static java.util.List<RequestHandler<ConnectionService>> |
DEFAULT_GLOBAL_REQUEST_HANDLERS |
static KeyboardInteractiveAuthenticator |
DEFAULT_INTERACTIVE_AUTHENTICATOR |
static KexExtensionHandler |
DEFAULT_KEX_EXTENSION_HANDLER |
static PublickeyAuthenticator |
DEFAULT_PUBLIC_KEY_AUTHENTICATOR |
static java.util.function.Function<DHFactory,KeyExchangeFactory> |
DH2KEX |
protected KeyboardInteractiveAuthenticator |
interactiveAuthenticator |
protected PublickeyAuthenticator |
pubkeyAuthenticator |
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 and Description |
---|
ServerBuilder() |
Modifier and Type | Method and Description |
---|---|
SshServer |
build(boolean isFillWithDefaultValues) |
static ServerBuilder |
builder() |
protected ServerBuilder |
fillWithDefaultValues() |
ServerBuilder |
interactiveAuthenticator(KeyboardInteractiveAuthenticator auth) |
ServerBuilder |
publickeyAuthenticator(PublickeyAuthenticator auth) |
static java.util.List<NamedFactory<Compression>> |
setUpDefaultCompressionFactories(boolean ignoreUnsupported) |
static java.util.List<KeyExchangeFactory> |
setUpDefaultKeyExchanges(boolean ignoreUnsupported) |
static java.util.List<NamedFactory<Signature>> |
setUpDefaultSignatureFactories(boolean ignoreUnsupported) |
build, channelFactories, channelStreamPacketWriterResolver, cipherFactories, compressionFactories, factory, fileSystemFactory, forwarderFactory, forwardingFilter, globalRequestHandlers, kexExtensionHandler, keyExchangeFactories, macFactories, me, randomFactory, setUpDefaultCiphers, setUpDefaultMacs, signatureFactories, unknownChannelReferenceHandler
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
get
public static final java.util.function.Function<DHFactory,KeyExchangeFactory> DH2KEX
public static final java.util.List<ChannelFactory> DEFAULT_CHANNEL_FACTORIES
public static final java.util.List<RequestHandler<ConnectionService>> DEFAULT_GLOBAL_REQUEST_HANDLERS
public static final PublickeyAuthenticator DEFAULT_PUBLIC_KEY_AUTHENTICATOR
public static final KeyboardInteractiveAuthenticator DEFAULT_INTERACTIVE_AUTHENTICATOR
public static final java.util.List<CompressionFactory> DEFAULT_COMPRESSION_FACTORIES
public static final KexExtensionHandler DEFAULT_KEX_EXTENSION_HANDLER
protected PublickeyAuthenticator pubkeyAuthenticator
protected KeyboardInteractiveAuthenticator interactiveAuthenticator
public ServerBuilder interactiveAuthenticator(KeyboardInteractiveAuthenticator auth)
public ServerBuilder publickeyAuthenticator(PublickeyAuthenticator auth)
protected ServerBuilder fillWithDefaultValues()
fillWithDefaultValues
in class BaseBuilder<SshServer,ServerBuilder>
public SshServer build(boolean isFillWithDefaultValues)
build
in class BaseBuilder<SshServer,ServerBuilder>
public static java.util.List<NamedFactory<Signature>> setUpDefaultSignatureFactories(boolean ignoreUnsupported)
public static java.util.List<NamedFactory<Compression>> setUpDefaultCompressionFactories(boolean ignoreUnsupported)
public static java.util.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
KeyExchange
s 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 ServerBuilder builder()