Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.sshtools.ant.* (4)com.sshtools.apps.* (10)com.sshtools.common.* (114)com.sshtools.daemon.* (51)
com.sshtools.j2ssh.* (268)com.sshtools.shift.* (57)com.sshtools.sshterm.* (50)

Package Samples:

com.sshtools.daemon.vfs
com.sshtools.daemon.util
com.sshtools.daemon.transport
com.sshtools.daemon.terminal
com.sshtools.daemon.subsystem
com.sshtools.daemon.sftp
com.sshtools.daemon.session
com.sshtools.daemon.scp
com.sshtools.daemon.platform
com.sshtools.daemon.forwarding
com.sshtools.daemon.configuration
com.sshtools.daemon.authentication
com.sshtools.daemon
com.sshtools.common.util
com.sshtools.common.ui
com.sshtools.common.mru
com.sshtools.common.keygen
com.sshtools.common.hosts
com.sshtools.common.configuration
com.sshtools.common.automate

Classes:

SshClient: Implements an SSH client with methods to connect to a remote server and perform all necersary SSH functions such as SCP, SFTP, executing commands, starting the users shell and perform port forwarding. There are several steps to perform prior to performing the desired task. This involves the making the initial connection, authenticating the user and creating a session to execute a command, shell or subsystem and/or configuring the port forwarding manager. To create a connection use the following code: // Create a instance and connect SshClient ssh = new SshClient(); ssh.connect("hostname"); Once ...
SessionProviderFactory: This class is responsible for dynamically loading all the installed session providers. A session provider can be used with SessionProviderFrame to integrate an ssh service such as a terminal window or sftp window within another application. To install a session provider you should provide a special properties file resource at the root of your source tree called 'session.provider'. This properties file should have the following properties defined: provider.id= [The unique name of the provider e.g 'sshterm'] provider.name= [The descriptive name of the provider e.g. 'Terminal Session'] provider.class= ...
SessionProviderInternalFrame: This frame class embeds a SessionProvider and manages the connection on behalf of the caller. To invoke a session provider from an external application is a straight forward procedure. Assuming that the connection has already been established [see SshClient] you can invoke a frame using the following code: // Create an SshClient connection SshClient ssh = new SshClient(); // Connection code goes here - see SshClient for more details SessionProviderFrame frame = new SessionProviderFrame(null, new SshToolsConnectionProfile(), ssh, SessionProviderFactory.getInstance().getProvider("sshterm")); frame.pack(); ...
SessionProviderFrame: This frame class embeds a SessionProvider and manages the connection on behalf of the caller. To invoke a session provider from an external application is a straight forward procedure. Assuming that the connection has already been established [see SshClient] you can invoke a frame using the following code: // Create an SshClient connection SshClient ssh = new SshClient(); // Connection code goes here - see SshClient for more details SessionProviderFrame frame = new SessionProviderFrame(null, new SshToolsConnectionProfile(), ssh, SessionProviderFactory.getInstance().getProvider("sshterm")); frame.pack(); ...
Service: This class implements the transport protocol service. After the transport protocol negotiates the protocol version and performs server authentication via key exchange, the client requests a service. The service is identified by a name and currently there are 2 services defined. ssh-userauth ssh-connection These 2 services are implemented by the SSH authentication protocol and SSH connection protocol respectivley. Further services can be defined and a similar local naming policy is applied to the service names, as is applied to the algorithm names; a local service should use the "servicename(at)domain" ...
SessionManager: This interface is used by the Session Provider framework to abstract the SshClient connection away from the session provider. This restricts the session to performing operations that are allowed by the controlling application. For instance, the provider cannot simply diconnect the connection, since the SshClient's disconnect method is not exposed, instead a requestDisconnect method is provided allowing the controlling application to simply ignore a disconnect since it may have other sessions open. Most of the methods of this interface will simply be required to call the identical method on SshClient ...
StringPattern: This class provides services for checking strings against string-patterns. Currently it supports the wildcards '' for any number of any character and '?' for any one character. The API is very simple: There are only the two class methods match() and matchIgnoreCase() . Example: StringPattern.match( 'Hello World", "H W" ) ; --> evaluates to true StringPattern.matchIgnoreCase( 'StringPattern", "str???pat" ) ; --> evaluates to true
DynamicBuffer: This class provides an alternative method of storing data, used within the API where Piped Streams could have been used. We found that Piped streams would lock if a thread attempted to read to data when the OutputStream attached was not being read; since we have no control over when the user will actually read the data, this behaviour led us to develop this dynamic buffer which will automatically grow if the buffer is full. *
Sftp: Basic SFTP client. Performs the following actions: put - send files to a remote server. This is the default action. get - retreive files from a remote server. del - delete files from a remote server. chmod - changes the mode of files on a remote server.
SessionProvider: Instances of this class are created by the SessionProviderFactory for each installed session provider. Instances of this class can be supplied to the SessionProviderFrame to create windows contains the session providers service
SshToolsApplication: Provides some common features for SshTools applications such as SshTerm and ShiFT . When constructing the instance of this class, the Class of an implementation of SshToolsApplicationFrame must be provided.
IgnoreHostKeyVerification: A simple host key verification implementation that automatically approves the servers host key. It should be noted that using this implementation will render the protocol insecure against active attacks.
SshMessage: This class implements the payload portion each message sent by the transport protocol. Each message consists of an integer message id followed by a variable byte array containing message data.
AgentAuthenticationClient: Provides an application with an authentication mechanism that links to the sshtools agent; the agent stores private keys and can hash and sign data for the public key authentication request.
PreferencesStore: Provides a backing store for preferences using a simple properties file. The init method must be called first providing the file to store the preferences in.
SessionOutputReader: This class provides a utility to read and parse the output a session, providing methods to wait for specific strings such as the prompt or command input requests.
StringExaminer: As a subclass of StringScanner this class allows more advanced navigation over the underlying string. That includes moving to positions of specific substrings etc.
StringUtil: The sole instance of this class provides several convienience methods for string manipulation such as substring replacement or character repetition.
SshMessageStore: This class implements a message store that can be used to provide a blocking mechanism for transport protocol messages.
AsyncService: Extends the simple Service class to provide an asyncronous messaging service for the transport protocol.
AuthenticationDialog: Displays the list of availble authentication methods and allows the user to select on or more to authenticate with.
ConsoleKnownHostsKeyVerification: Implements the AbstractKnownHostsKeyVerification to provide host key verification through the console.
SshToolsApplication: An abstract application class that provides container management, look and feel configuration and most recently used menus.
HostKeyVerification: An interface to allow the transport protocol to verify the public key supplied by the server during key-exchange
ConnectionDialog: The New Connection dialog for the SshTerminalFrame. This dialog allows the user to select connection properties

Home | Contact Us | Privacy Policy | Terms of Service