Package org.apache.sshd.server.config
Class SshServerConfigFileReader
- java.lang.Object
-
- org.apache.sshd.server.config.SshServerConfigFileReader
-
public final class SshServerConfigFileReader extends Object
Reads and interprets some useful configurations from an OpenSSH configuration file.- Author:
- Apache MINA SSHD Project
- See Also:
- sshd_config(5)
-
-
Field Summary
Fields Modifier and Type Field Description static String
ALLOW_AGENT_FORWARDING_CONFIG_PROP
static String
ALLOW_TCP_FORWARDING_CONFIG_PROP
static String
ALLOW_X11_FORWARDING_CONFIG_PROP
static String
BANNER_CONFIG_PROP
static String
DEFAULT_AGENT_FORWARDING
static long
DEFAULT_ALIVE_INTERVAL
static String
DEFAULT_TCP_FORWARDING
static String
DEFAULT_VISUAL_HOST_KEY
static String
DEFAULT_X11_FORWARDING
static String
SERVER_ALIVE_INTERVAL_PROP
static String
SFTP_FORCED_VERSION_PROP
static String
VISUAL_HOST_KEY
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <S extends SshServer>
Sconfigure(S server, PropertyResolver props, boolean lenient, boolean ignoreUnsupported)
static AgentForwardingFilter
resolveAgentForwardingFilter(PropertyResolver options)
static Object
resolveBanner(PropertyResolver options)
static ForwardingFilter
resolveServerForwarding(PropertyResolver options)
static TcpForwardingFilter
resolveTcpForwardingFilter(PropertyResolver options)
static X11ForwardingFilter
resolveX11ForwardingFilter(PropertyResolver options)
static <S extends ServerFactoryManager>
SsetupServerHeartbeat(S server, Map<String,?> options)
static <S extends ServerFactoryManager>
SsetupServerHeartbeat(S server, PropertyResolver props)
static <S extends ServerFactoryManager>
SsetupSftpSubsystem(S server, PropertyResolver props)
-
-
-
Field Detail
-
ALLOW_TCP_FORWARDING_CONFIG_PROP
public static final String ALLOW_TCP_FORWARDING_CONFIG_PROP
- See Also:
- Constant Field Values
-
DEFAULT_TCP_FORWARDING
public static final String DEFAULT_TCP_FORWARDING
- See Also:
- Constant Field Values
-
ALLOW_AGENT_FORWARDING_CONFIG_PROP
public static final String ALLOW_AGENT_FORWARDING_CONFIG_PROP
- See Also:
- Constant Field Values
-
DEFAULT_AGENT_FORWARDING
public static final String DEFAULT_AGENT_FORWARDING
- See Also:
- Constant Field Values
-
ALLOW_X11_FORWARDING_CONFIG_PROP
public static final String ALLOW_X11_FORWARDING_CONFIG_PROP
- See Also:
- Constant Field Values
-
DEFAULT_X11_FORWARDING
public static final String DEFAULT_X11_FORWARDING
- See Also:
- Constant Field Values
-
BANNER_CONFIG_PROP
public static final String BANNER_CONFIG_PROP
- See Also:
- Constant Field Values
-
VISUAL_HOST_KEY
public static final String VISUAL_HOST_KEY
- See Also:
- Constant Field Values
-
DEFAULT_VISUAL_HOST_KEY
public static final String DEFAULT_VISUAL_HOST_KEY
- See Also:
- Constant Field Values
-
SERVER_ALIVE_INTERVAL_PROP
public static final String SERVER_ALIVE_INTERVAL_PROP
- See Also:
- Constant Field Values
-
DEFAULT_ALIVE_INTERVAL
public static final long DEFAULT_ALIVE_INTERVAL
- See Also:
- Constant Field Values
-
SFTP_FORCED_VERSION_PROP
public static final String SFTP_FORCED_VERSION_PROP
- See Also:
- Constant Field Values
-
-
Method Detail
-
setupServerHeartbeat
public static <S extends ServerFactoryManager> S setupServerHeartbeat(S server, PropertyResolver props)
-
setupServerHeartbeat
public static <S extends ServerFactoryManager> S setupServerHeartbeat(S server, Map<String,?> options)
-
setupSftpSubsystem
public static <S extends ServerFactoryManager> S setupSftpSubsystem(S server, PropertyResolver props)
-
configure
public static <S extends SshServer> S configure(S server, PropertyResolver props, boolean lenient, boolean ignoreUnsupported)
-
resolveServerForwarding
public static ForwardingFilter resolveServerForwarding(PropertyResolver options)
-
resolveAgentForwardingFilter
public static AgentForwardingFilter resolveAgentForwardingFilter(PropertyResolver options)
-
resolveTcpForwardingFilter
public static TcpForwardingFilter resolveTcpForwardingFilter(PropertyResolver options)
-
resolveX11ForwardingFilter
public static X11ForwardingFilter resolveX11ForwardingFilter(PropertyResolver options)
-
resolveBanner
public static Object resolveBanner(PropertyResolver options)
-
-