Class SshToolsConnectionProfile
java.lang.Object
com.sshtools.j2ssh.configuration.SshConnectionProperties
com.sshtools.common.configuration.SshToolsConnectionProfile
- Version:
- $Revision: 1.22 $
- Author:
- $author$
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
Fields inherited from class com.sshtools.j2ssh.configuration.SshConnectionProperties
forwardingAutoStart, host, localForwardings, port, prefDecryption, prefEncryption, prefKex, prefPK, prefRecvComp, prefRecvMac, prefSendComp, prefSendMac, proxyHostname, proxyPassword, proxyPort, proxyUsername, remoteForwardings, transportProvider, USE_HTTP_PROXY, USE_SOCKS4_PROXY, USE_SOCKS5_PROXY, USE_STANDARD_SOCKET, username
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
void
boolean
boolean
getApplicationProperty
(String name, String defaultValue) boolean
getApplicationPropertyBoolean
(String name, boolean defaultValue) getApplicationPropertyColor
(String name, Color defaultColor) int
getApplicationPropertyInt
(String name, int defaultValue) int
void
void
open
(InputStream in) void
void
removeAuthenticaitonMethod
(String method) void
void
removeLocalForwarding
(String name) void
removeRemoteForwarding
(String name) boolean
void
save()
void
void
setAllowAgentForwarding
(boolean allowAgentForwarding) void
setApplicationProperty
(String name, boolean value) void
setApplicationProperty
(String name, int value) void
setApplicationProperty
(String name, Color value) void
setApplicationProperty
(String name, String value) void
setCommandsToExecute
(String executeCommands) void
setDisconnectOnSessionClose
(boolean disconnectOnSessionClose) void
setOnceAuthenticatedCommand
(int onceAuthenticated) void
setRequiresPseudoTerminal
(boolean requiresPseudoTerminal) void
setSftpFavorite
(String name, String value) toString()
Methods inherited from class com.sshtools.j2ssh.configuration.SshConnectionProperties
getForwardingAutoStartMode, getHost, getLocalForwardings, getPort, getPrefCSComp, getPrefCSEncryption, getPrefCSMac, getPrefKex, getPrefPublicKey, getPrefSCComp, getPrefSCEncryption, getPrefSCMac, getProxyHost, getProxyPassword, getProxyPort, getProxyUsername, getRemoteForwardings, getTransportProvider, getTransportProviderString, getUsername, removeAllForwardings, setForwardingAutoStartMode, setHost, setPort, setPrefCSComp, setPrefCSEncryption, setPrefCSMac, setPrefKex, setPrefPublicKey, setPrefSCComp, setPrefSCEncryption, setPrefSCMac, setProxyHost, setProxyPassword, setProxyPort, setProxyUsername, setTransportProvider, setTransportProviderString, setUsername
-
Field Details
-
DO_NOTHING
public static final int DO_NOTHING- See Also:
-
START_SHELL
public static final int START_SHELL- See Also:
-
EXECUTE_COMMANDS
public static final int EXECUTE_COMMANDS- See Also:
-
-
Constructor Details
-
SshToolsConnectionProfile
public SshToolsConnectionProfile()Creates a new SshToolsConnectionProfile object.
-
-
Method Details
-
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
- Parameters:
executeCommands
-
-
getCommandsToExecute
- Returns:
-
getApplicationProperty
- Parameters:
name
-defaultValue
-- Returns:
-
getSftpFavorites
- Parameters:
name
-defaultValue
-- Returns:
-
setSftpFavorite
- Parameters:
name
-defaultValue
-
-
getApplicationPropertyInt
- Parameters:
name
-defaultValue
-- Returns:
-
getApplicationPropertyBoolean
- Parameters:
name
-defaultValue
-- Returns:
-
getApplicationPropertyColor
- Parameters:
name
-defaultColor
-- Returns:
-
setApplicationProperty
- Parameters:
name
-value
-
-
setApplicationProperty
- Parameters:
name
-value
-
-
setApplicationProperty
- Parameters:
name
-value
-
-
setApplicationProperty
- Parameters:
name
-value
-
-
addAuthenticationMethod
- Parameters:
method
-
-
addLocalForwarding
- Overrides:
addLocalForwarding
in classSshConnectionProperties
- Parameters:
config
-
-
addRemoteForwarding
- Overrides:
addRemoteForwarding
in classSshConnectionProperties
- Parameters:
config
-
-
getAllowAgentForwarding
public boolean getAllowAgentForwarding()- Returns:
-
setAllowAgentForwarding
public void setAllowAgentForwarding(boolean allowAgentForwarding) - Parameters:
allowAgentForwarding
-
-
removeLocalForwarding
- Parameters:
name
-
-
removeRemoteForwarding
- Parameters:
name
-
-
open
- Parameters:
file
-- Throws:
InvalidProfileFileException
-
open
- Parameters:
file
-- Throws:
InvalidProfileFileException
-
open
- Parameters:
in
-- Throws:
InvalidProfileFileException
-
removeAuthenticaitonMethod
- Parameters:
method
-
-
removeAuthenticationMethods
public void removeAuthenticationMethods() -
save
- Parameters:
file
-- Throws:
InvalidProfileFileException
-
save
- Throws:
InvalidProfileFileException
-
toString
-