Package org.apache.sshd.server.config
Class SshServerConfigFileReader
- java.lang.Object
-
- org.apache.sshd.server.config.SshServerConfigFileReader
-
public final class SshServerConfigFileReader extends java.lang.ObjectReads and interprets some useful configurations from an OpenSSH configuration file.- See Also:
- sshd_config(5)
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringALLOW_AGENT_FORWARDING_CONFIG_PROPstatic java.lang.StringALLOW_TCP_FORWARDING_CONFIG_PROPstatic java.lang.StringALLOW_X11_FORWARDING_CONFIG_PROPstatic java.lang.StringBANNER_CONFIG_PROPstatic java.lang.StringDEFAULT_AGENT_FORWARDINGstatic longDEFAULT_ALIVE_INTERVALstatic java.lang.StringDEFAULT_TCP_FORWARDINGstatic java.lang.StringDEFAULT_VISUAL_HOST_KEYstatic java.lang.StringDEFAULT_X11_FORWARDINGstatic java.lang.StringSERVER_ALIVE_INTERVAL_PROPstatic java.lang.StringSFTP_FORCED_VERSION_PROPstatic java.lang.StringVISUAL_HOST_KEY
-
Constructor Summary
Constructors Modifier Constructor Description privateSshServerConfigFileReader()
-
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 AgentForwardingFilterresolveAgentForwardingFilter(PropertyResolver options)static java.lang.ObjectresolveBanner(PropertyResolver options)static ForwardingFilterresolveServerForwarding(PropertyResolver options)static TcpForwardingFilterresolveTcpForwardingFilter(PropertyResolver options)static X11ForwardingFilterresolveX11ForwardingFilter(PropertyResolver options)static <S extends ServerFactoryManager>
SsetupServerHeartbeat(S server, java.util.Map<java.lang.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 java.lang.String ALLOW_TCP_FORWARDING_CONFIG_PROP
- See Also:
- Constant Field Values
-
DEFAULT_TCP_FORWARDING
public static final java.lang.String DEFAULT_TCP_FORWARDING
- See Also:
- Constant Field Values
-
ALLOW_AGENT_FORWARDING_CONFIG_PROP
public static final java.lang.String ALLOW_AGENT_FORWARDING_CONFIG_PROP
- See Also:
- Constant Field Values
-
DEFAULT_AGENT_FORWARDING
public static final java.lang.String DEFAULT_AGENT_FORWARDING
- See Also:
- Constant Field Values
-
ALLOW_X11_FORWARDING_CONFIG_PROP
public static final java.lang.String ALLOW_X11_FORWARDING_CONFIG_PROP
- See Also:
- Constant Field Values
-
DEFAULT_X11_FORWARDING
public static final java.lang.String DEFAULT_X11_FORWARDING
- See Also:
- Constant Field Values
-
BANNER_CONFIG_PROP
public static final java.lang.String BANNER_CONFIG_PROP
- See Also:
- Constant Field Values
-
VISUAL_HOST_KEY
public static final java.lang.String VISUAL_HOST_KEY
- See Also:
- Constant Field Values
-
DEFAULT_VISUAL_HOST_KEY
public static final java.lang.String DEFAULT_VISUAL_HOST_KEY
- See Also:
- Constant Field Values
-
SERVER_ALIVE_INTERVAL_PROP
public static final java.lang.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 java.lang.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, java.util.Map<java.lang.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 java.lang.Object resolveBanner(PropertyResolver options)
-
-