Class SshToolsConnectionProfile

java.lang.Object
com.sshtools.j2ssh.configuration.SshConnectionProperties
com.sshtools.common.configuration.SshToolsConnectionProfile

public class SshToolsConnectionProfile extends SshConnectionProperties
Version:
$Revision: 1.22 $
Author:
$author$
  • Field Details

  • Constructor Details

    • SshToolsConnectionProfile

      public SshToolsConnectionProfile()
      Creates a new SshToolsConnectionProfile object.
  • Method Details

    • getAuthenticationMethods

      public Map getAuthenticationMethods()
      Returns:
    • requiresPseudoTerminal

      public boolean requiresPseudoTerminal()
      Returns:
    • disconnectOnSessionClose

      public boolean disconnectOnSessionClose()
      Returns:
    • setRequiresPseudoTerminal

      public void setRequiresPseudoTerminal(boolean requiresPseudoTerminal)
      Parameters:
      requiresPseudoTerminal -
    • setDisconnectOnSessionClose

      public void setDisconnectOnSessionClose(boolean disconnectOnSessionClose)
      Parameters:
      disconnectOnSessionClose -
    • clearAuthenticationCache

      public void clearAuthenticationCache()
    • setOnceAuthenticatedCommand

      public void setOnceAuthenticatedCommand(int onceAuthenticated)
      Parameters:
      onceAuthenticated -
    • getOnceAuthenticatedCommand

      public int getOnceAuthenticatedCommand()
      Returns:
    • setCommandsToExecute

      public void setCommandsToExecute(String executeCommands)
      Parameters:
      executeCommands -
    • getCommandsToExecute

      public String getCommandsToExecute()
      Returns:
    • getApplicationProperty

      public String getApplicationProperty(String name, String defaultValue)
      Parameters:
      name -
      defaultValue -
      Returns:
    • getSftpFavorites

      public Map getSftpFavorites()
      Parameters:
      name -
      defaultValue -
      Returns:
    • setSftpFavorite

      public void setSftpFavorite(String name, String value)
      Parameters:
      name -
      defaultValue -
    • getApplicationPropertyInt

      public int getApplicationPropertyInt(String name, int defaultValue)
      Parameters:
      name -
      defaultValue -
      Returns:
    • getApplicationPropertyBoolean

      public boolean getApplicationPropertyBoolean(String name, boolean defaultValue)
      Parameters:
      name -
      defaultValue -
      Returns:
    • getApplicationPropertyColor

      public Color getApplicationPropertyColor(String name, Color defaultColor)
      Parameters:
      name -
      defaultColor -
      Returns:
    • setApplicationProperty

      public void setApplicationProperty(String name, String value)
      Parameters:
      name -
      value -
    • setApplicationProperty

      public void setApplicationProperty(String name, int value)
      Parameters:
      name -
      value -
    • setApplicationProperty

      public void setApplicationProperty(String name, boolean value)
      Parameters:
      name -
      value -
    • setApplicationProperty

      public void setApplicationProperty(String name, Color value)
      Parameters:
      name -
      value -
    • addAuthenticationMethod

      public void addAuthenticationMethod(SshAuthenticationClient method)
      Parameters:
      method -
    • addLocalForwarding

      public void addLocalForwarding(ForwardingConfiguration config)
      Overrides:
      addLocalForwarding in class SshConnectionProperties
      Parameters:
      config -
    • addRemoteForwarding

      public void addRemoteForwarding(ForwardingConfiguration config)
      Overrides:
      addRemoteForwarding in class SshConnectionProperties
      Parameters:
      config -
    • getAllowAgentForwarding

      public boolean getAllowAgentForwarding()
      Returns:
    • setAllowAgentForwarding

      public void setAllowAgentForwarding(boolean allowAgentForwarding)
      Parameters:
      allowAgentForwarding -
    • removeLocalForwarding

      public void removeLocalForwarding(String name)
      Parameters:
      name -
    • removeRemoteForwarding

      public void removeRemoteForwarding(String name)
      Parameters:
      name -
    • open

      public void open(String file) throws InvalidProfileFileException
      Parameters:
      file -
      Throws:
      InvalidProfileFileException
    • open

      public void open(File file) throws InvalidProfileFileException
      Parameters:
      file -
      Throws:
      InvalidProfileFileException
    • open

      public void open(InputStream in) throws InvalidProfileFileException
      Parameters:
      in -
      Throws:
      InvalidProfileFileException
    • removeAuthenticaitonMethod

      public void removeAuthenticaitonMethod(String method)
      Parameters:
      method -
    • removeAuthenticationMethods

      public void removeAuthenticationMethods()
    • save

      public void save(String file) throws InvalidProfileFileException
      Parameters:
      file -
      Throws:
      InvalidProfileFileException
    • save

      public void save() throws InvalidProfileFileException
      Throws:
      InvalidProfileFileException
    • toString

      public String toString()
      Overrides:
      toString in class Object
      Returns: