Class ServerBuilder

All Implemented Interfaces:
Supplier<SshServer>, org.apache.sshd.common.util.ObjectBuilder<SshServer>

public class ServerBuilder extends BaseBuilder<SshServer, ServerBuilder>
SshServer builder
  • Field Details

    • DH2KEX

      public static final Function<DHFactory, KeyExchangeFactory> DH2KEX
    • DEFAULT_CHANNEL_FACTORIES

      public static final List<ChannelFactory> DEFAULT_CHANNEL_FACTORIES
    • DEFAULT_GLOBAL_REQUEST_HANDLERS

      public static final List<RequestHandler<ConnectionService>> DEFAULT_GLOBAL_REQUEST_HANDLERS
    • DEFAULT_PUBLIC_KEY_AUTHENTICATOR

      public static final PublickeyAuthenticator DEFAULT_PUBLIC_KEY_AUTHENTICATOR
    • DEFAULT_INTERACTIVE_AUTHENTICATOR

      public static final KeyboardInteractiveAuthenticator DEFAULT_INTERACTIVE_AUTHENTICATOR
    • DEFAULT_COMPRESSION_FACTORIES

      public static final List<org.apache.sshd.common.compression.CompressionFactory> DEFAULT_COMPRESSION_FACTORIES
    • DEFAULT_KEX_EXTENSION_HANDLER

      public static final KexExtensionHandler DEFAULT_KEX_EXTENSION_HANDLER
    • DEFAULT_SERVER_CIPHERS_PREFERENCE

      public static final List<org.apache.sshd.common.cipher.BuiltinCiphers> DEFAULT_SERVER_CIPHERS_PREFERENCE
      Default list of ciphers for a server. This excludes the AES-CBC ciphers -- OpenSSH has stopped proposing them by default in 2014 (and removed them from the client proposal in 2017, too). CBC is susceptible to padding oracle attacks and other attacks and is thus not recommended anymore.

      For clients, we do still include the CBC modes to better support connecting with legacy servers.

    • pubkeyAuthenticator

      protected PublickeyAuthenticator pubkeyAuthenticator
    • interactiveAuthenticator

      protected KeyboardInteractiveAuthenticator interactiveAuthenticator
  • Constructor Details

    • ServerBuilder

      public ServerBuilder()
  • Method Details