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 intstatic final intstatic final intFields 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 TypeMethodDescriptionvoidvoidvoidvoidbooleanbooleangetApplicationProperty(String name, String defaultValue) booleangetApplicationPropertyBoolean(String name, boolean defaultValue) getApplicationPropertyColor(String name, Color defaultColor) intgetApplicationPropertyInt(String name, int defaultValue) intvoidvoidopen(InputStream in) voidvoidremoveAuthenticaitonMethod(String method) voidvoidremoveLocalForwarding(String name) voidremoveRemoteForwarding(String name) booleanvoidsave()voidvoidsetAllowAgentForwarding(boolean allowAgentForwarding) voidsetApplicationProperty(String name, boolean value) voidsetApplicationProperty(String name, int value) voidsetApplicationProperty(String name, Color value) voidsetApplicationProperty(String name, String value) voidsetCommandsToExecute(String executeCommands) voidsetDisconnectOnSessionClose(boolean disconnectOnSessionClose) voidsetOnceAuthenticatedCommand(int onceAuthenticated) voidsetRequiresPseudoTerminal(boolean requiresPseudoTerminal) voidsetSftpFavorite(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:
addLocalForwardingin classSshConnectionProperties- Parameters:
config-
-
addRemoteForwarding
- Overrides:
addRemoteForwardingin 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
-