Class HostConfig

  • All Implemented Interfaces:
    com.jcraft.jsch.ConfigRepository.Config

    public class HostConfig
    extends java.lang.Object
    implements com.jcraft.jsch.ConfigRepository.Config
    Contains host configuration for use with PerHostConfigBuilder.

    In the adapter configuration file this class is aliased as sftp-host-config which is the preferred alternative to the fully qualified classname when building your configuration.

    • Constructor Detail

      • HostConfig

        public HostConfig()
      • HostConfig

        public HostConfig​(java.lang.String hostname,
                          java.lang.String user,
                          int port,
                          KeyValuePairSet config)
      • HostConfig

        public HostConfig​(java.lang.String hostname,
                          java.lang.String user,
                          int port,
                          KeyValuePair... kvps)
    • Method Detail

      • getValue

        public java.lang.String getValue​(java.lang.String key)
        Specified by:
        getValue in interface com.jcraft.jsch.ConfigRepository.Config
      • getValues

        public java.lang.String[] getValues​(java.lang.String key)
        Not Supported and always returns null
        Specified by:
        getValues in interface com.jcraft.jsch.ConfigRepository.Config
      • setHostname

        public void setHostname​(java.lang.String hostname)
      • getHostname

        public java.lang.String getHostname()
        Specified by:
        getHostname in interface com.jcraft.jsch.ConfigRepository.Config
      • setUser

        public void setUser​(java.lang.String user)
      • getUser

        public java.lang.String getUser()
        Specified by:
        getUser in interface com.jcraft.jsch.ConfigRepository.Config
      • setPort

        public void setPort​(int port)
      • getPort

        public int getPort()
        Specified by:
        getPort in interface com.jcraft.jsch.ConfigRepository.Config