|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use SshException | |
com.maverick.scp | This package contains a Secure Copy (SCP) engine suitable for the lightweight J2SSH Maverick API. |
com.maverick.sftp | The base implementation of the SFTP protocol enabling SFTP to be
operated over both SSH1 and SSH2 connections. |
com.maverick.ssh | This package contains a set of general interface contracts for SSH communication that provide the core set of functionality available in both the SSH1 and SSH2 protocol specifications. |
com.maverick.ssh1 | This package contains an SSH1 implementation of the com.maverick.ssh interfaces. |
com.maverick.ssh2 | This package contains an SSH2 implementation of the com.maverick.ssh interfaces. |
com.sshtools.jce | This package contains a set of algoritm implementations that enable the Maverick API to use a Java Cryptography Extension provider. |
com.sshtools.net | This package contains a set of network utilities for the J2SSH Maverick API. |
com.sshtools.publickey | This package contains utility classes for loading/storing public/private keys and is based on the SSHTools key format architecture. |
com.sshtools.scp | This package contains the SSHTools SCP implementation converted to use the J2SSH Maverick API's SCP engine. |
com.sshtools.sftp | This package contains the SSHTools SFTP client converted for use with the J2SSH Maverick API. |
Uses of SshException in com.maverick.scp |
Methods in com.maverick.scp that throw SshException | |
void |
ScpClientIO.put(java.io.InputStream in,
long length,
java.lang.String localFile,
java.lang.String remoteFile)
Uploads a java.io.InputStream to a remove server as file. |
void |
ScpClientIO.put(java.io.InputStream in,
long length,
java.lang.String localFile,
java.lang.String remoteFile,
FileTransferProgress progress)
Uploads a java.io.InputStream to a remove server as file. |
java.io.InputStream |
ScpClientIO.get(java.lang.String remoteFile)
Gets a remote file as an java.io.InputStream . |
java.io.InputStream |
ScpClientIO.get(java.lang.String remoteFile,
FileTransferProgress progress)
Gets a remote file as an java.io.InputStream . |
void |
ScpClientIO.ScpEngineIO.close()
Close the SCP engine and underlying session. |
Constructors in com.maverick.scp that throw SshException | |
ScpClientIO.ScpEngineIO(java.lang.String cmd,
SshSession session)
Contruct the channel with the specified scp command. |
Uses of SshException in com.maverick.sftp |
Methods in com.maverick.sftp that throw SshException | |
void |
SftpSubsystemChannel.initialize()
Initializes the sftp subsystem and negotiates a version with the server. |
void |
SftpSubsystemChannel.setCharsetEncoding(java.lang.String charset)
Allows the default character encoding to be overriden for filename strings. |
SftpMessage |
SftpSubsystemChannel.sendExtensionMessage(java.lang.String request,
byte[] requestData)
Send an extension message and return the response. |
void |
SftpSubsystemChannel.changePermissions(SftpFile file,
int permissions)
Change the permissions of a file. |
void |
SftpSubsystemChannel.changePermissions(java.lang.String filename,
int permissions)
Change the permissions of a file. |
void |
SftpSubsystemChannel.changePermissions(java.lang.String filename,
java.lang.String permissions)
Change the permissions of a file. |
void |
SftpSubsystemChannel.setAttributes(java.lang.String path,
SftpFileAttributes attrs)
Sets the attributes of a file. |
void |
SftpSubsystemChannel.setAttributes(SftpFile file,
SftpFileAttributes attrs)
Sets the attributes of a file. |
com.maverick.crypto.io.UnsignedInteger32 |
SftpSubsystemChannel.postWriteRequest(byte[] handle,
long position,
byte[] data,
int off,
int len)
Send a write request for an open file but do not wait for the response from the server. |
void |
SftpSubsystemChannel.writeFile(byte[] handle,
com.maverick.crypto.io.UnsignedInteger64 offset,
byte[] data,
int off,
int len)
Write a block of data to an open file. |
void |
SftpSubsystemChannel.performOptimizedWrite(byte[] handle,
int blocksize,
int outstandingRequests,
java.io.InputStream in,
int buffersize,
FileTransferProgress progress)
Performs an optimized write of a file through asynchronous messaging and through buffering the local file into memory. |
void |
SftpSubsystemChannel.performOptimizedWrite(byte[] handle,
int blocksize,
int outstandingRequests,
java.io.InputStream in,
int buffersize,
FileTransferProgress progress,
long position)
Performs an optimized write of a file through asynchronous messaging and through buffering the local file into memory. |
void |
SftpSubsystemChannel.performOptimizedRead(byte[] handle,
long length,
int blocksize,
java.io.OutputStream out,
int outstandingRequests,
FileTransferProgress progress)
Performs an optimized read of a file through use of asynchronous messages. |
void |
SftpSubsystemChannel.performOptimizedRead(byte[] handle,
long length,
int blocksize,
java.io.OutputStream out,
int outstandingRequests,
FileTransferProgress progress,
long position)
Performs an optimized read of a file through use of asynchronous messages. |
com.maverick.crypto.io.UnsignedInteger32 |
SftpSubsystemChannel.postReadRequest(byte[] handle,
long offset,
int len)
Post a read request to the server and return the request id; this is used to optimize file downloads. |
int |
SftpSubsystemChannel.readFile(byte[] handle,
com.maverick.crypto.io.UnsignedInteger64 offset,
byte[] output,
int off,
int len)
Read a block of data from an open file. |
SftpFile |
SftpSubsystemChannel.getFile(java.lang.String path)
Utility method to obtain an SftpFile instance for a given path. |
java.lang.String |
SftpSubsystemChannel.getAbsolutePath(SftpFile file)
Get the absolute path of a file. |
void |
SftpSubsystemChannel.createSymbolicLink(java.lang.String targetpath,
java.lang.String linkpath)
Create a symbolic link. |
java.lang.String |
SftpSubsystemChannel.getSymbolicLinkTarget(java.lang.String linkpath)
Get the target path of a symbolic link. |
java.lang.String |
SftpSubsystemChannel.getDefaultDirectory()
Gets the users default directory. |
java.lang.String |
SftpSubsystemChannel.getAbsolutePath(java.lang.String path)
Get the absolute path of a file. |
int |
SftpSubsystemChannel.listChildren(SftpFile file,
java.util.Vector children)
List the children of a directory. |
void |
SftpSubsystemChannel.recurseMakeDirectory(java.lang.String path)
Recurse through a hierarchy of directories creating them as necersary. |
SftpFile |
SftpSubsystemChannel.openFile(java.lang.String absolutePath,
int flags)
Open a file. |
SftpFile |
SftpSubsystemChannel.openFile(java.lang.String absolutePath,
int flags,
SftpFileAttributes attrs)
Open a file. |
SftpFile |
SftpSubsystemChannel.openDirectory(java.lang.String path)
Open a directory. |
void |
SftpSubsystemChannel.closeFile(SftpFile file)
Close a file or directory. |
void |
SftpSubsystemChannel.removeDirectory(java.lang.String path)
Remove an empty directory. |
void |
SftpSubsystemChannel.removeFile(java.lang.String filename)
Remove a file. |
void |
SftpSubsystemChannel.renameFile(java.lang.String oldpath,
java.lang.String newpath)
Rename an existing file. |
SftpFileAttributes |
SftpSubsystemChannel.getAttributes(java.lang.String path)
Get the attributes of a file. |
SftpFileAttributes |
SftpSubsystemChannel.getAttributes(SftpFile file)
Get the attributes of a file. |
void |
SftpSubsystemChannel.makeDirectory(java.lang.String path)
Make a directory. |
void |
SftpSubsystemChannel.makeDirectory(java.lang.String path,
SftpFileAttributes attrs)
Make a directory. |
void |
SftpSubsystemChannel.getOKRequestStatus(com.maverick.crypto.io.UnsignedInteger32 requestId)
Verify that an OK status has been returned for a request id. |
SftpFile |
SftpFile.getParent()
Get the parent of the current file. |
void |
SftpFile.delete()
Delete this file/directory from the remote server. |
void |
SftpFile.rename(java.lang.String newFilename)
Rename a file on the remote server. |
boolean |
SftpFile.canWrite()
Determine whether the user has write access to the file. |
boolean |
SftpFile.canRead()
Determine whether the user has read access to the file. |
SftpFileAttributes |
SftpFile.getAttributes()
Get the files attributes. |
void |
SftpFile.close()
Close the file. |
boolean |
SftpFile.isDirectory()
Determine whether the file object is pointing to a directory. |
boolean |
SftpFile.isFile()
Determine whether the file object is pointing to a file. |
boolean |
SftpFile.isLink()
Determine whether the file object is a symbolic link. |
boolean |
SftpFile.isFifo()
Determine whether the file is pointing to a pipe. |
boolean |
SftpFile.isBlock()
Determine whether the file is pointing to a block special file. |
boolean |
SftpFile.isCharacter()
Determine whether the file is pointing to a character mode device. |
boolean |
SftpFile.isSocket()
Determine whether the file is pointing to a socket. |
Constructors in com.maverick.sftp that throw SshException | |
SftpFileInputStream(SftpFile file)
Creates a new SftpFileInputStream object. |
|
SftpSubsystemChannel(SshSession session)
Constructs an uninitialized sftp channel with an unitialized session channel |
|
SftpFileOutputStream(SftpFile file)
Creates a new SftpFileOutputStream object. |
Uses of SshException in com.maverick.ssh |
Methods in com.maverick.ssh that return SshException | |
SshException |
SshIOException.getRealException()
Get the real exception |
Methods in com.maverick.ssh that throw SshException | |
void |
Shell.createSession()
Construct a new scripted session ready for command execution. |
void |
Shell.createSession(java.lang.String term,
int cols,
int rows)
Construct a new scripted session ready for command execution. |
byte[] |
SubsystemChannel.nextMessage()
Read a subsystem message from the channel inputstream. |
protected void |
SubsystemChannel.sendMessage(Packet msg)
Write a subsystem message to the channel outputstream. |
protected void |
SubsystemChannel.sendMessage(byte[] msg)
Deprecated. This has changed internally to use a Packet and it
is recommended that all implementations change to use Packet 's
as they provide a more efficent way of sending data. |
void |
SshPublicKey.init(byte[] blob,
int start,
int len)
Initialize the public key from a blob of binary data. |
byte[] |
SshPublicKey.getEncoded()
Encode the public key into a blob of binary data, the encoded result will be passed into init to recreate the key. |
java.lang.String |
SshPublicKey.getFingerprint()
Return an SSH fingerprint of the public key |
boolean |
SshPublicKey.verifySignature(byte[] signature,
byte[] data)
Verify the signature. |
static SshConnector |
SshConnector.getInstance()
Returns an instance of the SshConnector . |
SshContext |
SshConnector.getContext(int version)
Get the configuration context for a specific SSH version. |
void |
SshConnector.setSupportedVersions(int supported)
Sets the protocol versions supported by this connector. |
SshClient |
SshConnector.connect(SshTransport transport,
java.lang.String username)
Create a new connection to an SSH server over the specified transport. |
SshClient |
SshConnector.connect(SshTransport transport,
java.lang.String username,
boolean buffered)
See SshConnector.connect(SshTransport, String) for full details. |
SshClient |
SshConnector.connect(SshTransport transport,
java.lang.String username,
SshContext context)
See SshConnector.connect(SshTransport, String) for full details. |
SshClient |
SshConnector.connect(SshTransport transport,
java.lang.String username,
boolean buffered,
SshContext context)
See SshConnector.connect(SshTransport, String) for full details. |
int |
SshConnector.determineVersion(SshTransport transport)
Determine the version of the server connected to the SshTransport. |
void |
SshClient.connect(SshTransport transport,
SshContext context,
SshConnector connector,
java.lang.String username,
java.lang.String localIdentification,
java.lang.String remoteIdentification,
boolean buffered)
Connect to an SSH server. |
int |
SshClient.authenticate(SshAuthentication auth)
Authenticate the user. |
SshSession |
SshClient.openSessionChannel()
Open a session on the remote computer. |
SshSession |
SshClient.openSessionChannel(ChannelEventListener listener)
Open a session on the remote computer. |
SshTunnel |
SshClient.openForwardingChannel(java.lang.String hostname,
int port,
java.lang.String listeningAddress,
int listeningPort,
java.lang.String originatingHost,
int originatingPort,
SshTransport transport,
ChannelEventListener listener)
Open a TCPIP forwarding channel to the remote computer. |
SshClient |
SshClient.openRemoteClient(java.lang.String hostname,
int port,
java.lang.String username,
SshConnector con)
Open up an SSH client from the remote machine to another remote server. |
SshClient |
SshClient.openRemoteClient(java.lang.String hostname,
int port,
java.lang.String username)
Open up an SSH client from the remote machine to another remote server. |
boolean |
SshClient.requestRemoteForwarding(java.lang.String bindAddress,
int bindPort,
java.lang.String hostToConnect,
int portToConnect,
ForwardingRequestListener listener)
Requests that the remote computer accepts socket connections and forward them to the local computer. |
boolean |
SshClient.cancelRemoteForwarding(java.lang.String bindAddress,
int bindPort)
Cancel a forwarding request. |
SshClient |
SshClient.duplicate()
Create an identical version of an SshClient using cached authentication information and the SshTransport duplicate method. |
boolean |
HostKeyVerification.verifyHost(java.lang.String host,
SshPublicKey pk)
Verify that the public key is acceptable for the host. |
void |
PseudoTerminalModes.setTerminalMode(int mode,
int value)
Set an integer value mode |
void |
PseudoTerminalModes.setTerminalMode(int mode,
boolean value)
Set a boolean value mode |
boolean |
SshSession.startShell()
Start the users default shell. |
boolean |
SshSession.executeCommand(java.lang.String cmd)
Execute a command. |
boolean |
SshSession.executeCommand(java.lang.String cmd,
java.lang.String charset)
Execute a command. |
boolean |
SshSession.requestPseudoTerminal(java.lang.String term,
int cols,
int rows,
int width,
int height,
byte[] modes)
The remote process may require a pseudo terminal. |
boolean |
SshSession.requestPseudoTerminal(java.lang.String term,
int cols,
int rows,
int width,
int height,
PseudoTerminalModes terminalModes)
The remote process may require a pseudo terminal. |
boolean |
SshSession.requestPseudoTerminal(java.lang.String term,
int cols,
int rows,
int width,
int height)
The remote process may require a pseudo terminal. |
void |
SshSession.changeTerminalDimensions(int cols,
int rows,
int width,
int height)
Change the dimensions of the terminal window. |
SshTransport |
ForwardingRequestListener.createConnection(java.lang.String hostToConnect,
int portToConnect)
Create a connection to the specified host. |
java.lang.String |
CommandExecutor.executeCommand(java.lang.String cmd)
|
Constructors in com.maverick.ssh with parameters of type SshException | |
SshIOException(SshException realEx)
Construct the exception with the real exception. |
Constructors in com.maverick.ssh that throw SshException | |
SubsystemChannel(SshChannel channel)
Create a new subsystem channel. |
|
CommandExecutor(SshSession session,
java.lang.String eol,
java.lang.String promptCmd,
java.lang.String prompt,
java.lang.String encoding)
|
Uses of SshException in com.maverick.ssh1 |
Methods in com.maverick.ssh1 that throw SshException | |
void |
Ssh1Client.connect(SshTransport transport,
SshContext context,
SshConnector connector,
java.lang.String username,
java.lang.String localIdentification,
java.lang.String remoteIdentification,
boolean buffered)
|
int |
Ssh1Client.authenticate(SshAuthentication auth)
|
SshSession |
Ssh1Client.openSessionChannel()
Opens the one and only session channel available on an SSH1 connection, calling this method multiple times on the same client instance will return the same session instance. |
SshSession |
Ssh1Client.openSessionChannel(ChannelEventListener listener)
|
SshTunnel |
Ssh1Client.openForwardingChannel(java.lang.String hostname,
int port,
java.lang.String listeningAddress,
int listeningPort,
java.lang.String originatingHost,
int originatingPort,
SshTransport transport,
ChannelEventListener listener)
|
SshClient |
Ssh1Client.openRemoteClient(java.lang.String hostname,
int port,
java.lang.String username,
SshConnector con)
|
SshClient |
Ssh1Client.openRemoteClient(java.lang.String hostname,
int port,
java.lang.String username)
|
boolean |
Ssh1Client.requestXForwarding(java.lang.String display,
ForwardingRequestListener listener)
|
boolean |
Ssh1Client.requestRemoteForwarding(java.lang.String bindAddress,
int bindPort,
java.lang.String hostToConnect,
int portToConnect,
ForwardingRequestListener listener)
The bindAddress is ignored since the SSH1 protocol does not support setting of the bind address. |
boolean |
Ssh1Client.cancelRemoteForwarding(java.lang.String bindAddress,
int bindPort)
The bindAddress is ignored since the SSH1 protocol does not support setting of the bind address. |
SshClient |
Ssh1Client.duplicate()
|
int |
Ssh1Context.getCipherType(int supportedCiphers)
Get the cipher type for this configuration context. |
byte[] |
Ssh1RsaPublicKey.getEncoded()
Get the encoded format required by SSH1 |
java.lang.String |
Ssh1RsaPublicKey.getFingerprint()
|
Uses of SshException in com.maverick.ssh2 |
Methods in com.maverick.ssh2 that throw SshException | |
void |
Ssh2Context.setPreferredCipherCS(java.lang.String name)
Set the preferred cipher for the Client->Server stream. |
void |
Ssh2Context.setPreferredCipherSC(java.lang.String name)
Set the preferred cipher for the Server->Client stream. |
void |
Ssh2Context.setPreferredMacCS(java.lang.String name)
Set the preferred mac for the Client->Server stream. |
void |
Ssh2Context.setPreferredMacSC(java.lang.String name)
Set the preferred mac for the Server->Client stream. |
void |
Ssh2Context.setPreferredCompressionCS(java.lang.String name)
Set the preferred compression for the Client->Server stream. |
void |
Ssh2Context.setPreferredCompressionSC(java.lang.String name)
Set the preferred compression for the Server->Client stream. |
void |
Ssh2Context.setPreferredKeyExchange(java.lang.String name)
Set the preferred key exchange method. |
void |
Ssh2Context.setPreferredPublicKey(java.lang.String name)
Set the preferred public key algorithm. |
void |
Ssh2PublicKeyAuthentication.authenticate(AuthenticationProtocol authentication,
java.lang.String servicename)
|
Ssh2Channel |
ChannelFactory.createChannel(java.lang.String channeltype,
byte[] requestdata)
Create an instance of an SSH channel. |
boolean |
GlobalRequestHandler.processGlobalRequest(GlobalRequest request)
Called when a supported global request has been recieved. |
void |
TransportProtocol.startTransportProtocol(SshTransport provider,
Ssh2Context context,
java.lang.String localIdentification,
java.lang.String remoteIdentification)
Starts the protocol on the provider. |
void |
TransportProtocol.sendMessage(byte[] msgdata)
Send a transport protocol message. |
byte[] |
TransportProtocol.nextMessage()
Get the next message. |
void |
TransportProtocol.startService(java.lang.String servicename)
Request that the remote server starts a transport protocol service. |
boolean |
TransportProtocol.processMessage(byte[] msg)
Process a message. |
void |
KBIAuthentication.authenticate(AuthenticationProtocol authentication,
java.lang.String servicename)
|
byte[] |
SignatureGenerator.sign(SshPublicKey key,
byte[] data)
Sign the data using the private key of the public key provided. |
void |
Ssh2HostbasedAuthentication.authenticate(AuthenticationProtocol authentication,
java.lang.String servicename)
|
byte[] |
Ssh2DsaPublicKey.getEncoded()
Returns the key encoded into a byte array as defined in the SSH Transport Protocol. |
java.lang.String |
Ssh2DsaPublicKey.getFingerprint()
|
void |
Ssh2DsaPublicKey.init(byte[] blob,
int start,
int len)
Initialize the public key from an SSH2 key blob |
void |
AuthenticationClient.authenticate(AuthenticationProtocol authentication,
java.lang.String servicename)
Perform the authentication according to the specification. |
protected void |
Ssh2Session.processExtendedData(int typecode,
byte[] buf,
int offset,
int len)
|
boolean |
Ssh2Session.requestPseudoTerminal(java.lang.String term,
int cols,
int rows,
int width,
int height)
|
boolean |
Ssh2Session.requestPseudoTerminal(java.lang.String term,
int cols,
int rows,
int width,
int height,
PseudoTerminalModes terminalModes)
|
boolean |
Ssh2Session.requestPseudoTerminal(java.lang.String term,
int cols,
int rows,
int width,
int height,
byte[] modes)
|
boolean |
Ssh2Session.startShell()
|
boolean |
Ssh2Session.executeCommand(java.lang.String cmd)
|
boolean |
Ssh2Session.executeCommand(java.lang.String cmd,
java.lang.String charset)
|
boolean |
Ssh2Session.startSubsystem(java.lang.String subsystem)
SSH2 supports special subsystems that are identified by a name rather than a command string, an example of an SSH2 subsystem is SFTP. |
boolean |
Ssh2Session.setEnvironmentVariable(java.lang.String name,
java.lang.String value)
The SSH2 session supports the setting of environments variables however in our experiance no server to date allows unconditional setting of variables. |
void |
Ssh2Session.changeTerminalDimensions(int cols,
int rows,
int width,
int height)
|
void |
Ssh2Session.signal(java.lang.String signal)
Send a signal to the remote process. |
protected void |
Ssh2Session.channelRequest(java.lang.String requesttype,
boolean wantreply,
byte[] requestdata)
This overidden method handles the "exit-status", "exit-signal" and "xon-xoff" channel requests. |
void |
Ssh2PasswordAuthentication.authenticate(AuthenticationProtocol authentication,
java.lang.String servicename)
Implementaion of the authentication method. |
byte[] |
Ssh2RsaPublicKey.getEncoded()
|
java.lang.String |
Ssh2RsaPublicKey.getFingerprint()
|
void |
Ssh2RsaPublicKey.init(byte[] blob,
int start,
int len)
|
void |
SshHmac.init(byte[] keydata)
Initialize the MAC |
boolean |
SshHmac.verify(long sequenceNo,
byte[] data,
int start,
int len,
byte[] mac,
int offset)
Verify a MAC. |
void |
SshKeyExchange.init(TransportProtocol transport)
Initialize the key exchange. |
abstract void |
SshKeyExchange.performClientExchange(java.lang.String clientId,
java.lang.String serverId,
byte[] clientKexInit,
byte[] serverKexInit)
Overide to perform the client side key exchange. |
void |
Ssh2Client.connect(SshTransport io,
SshContext context,
SshConnector connector,
java.lang.String username,
java.lang.String localIdentification,
java.lang.String remoteIdentification,
boolean buffered)
|
java.lang.String[] |
Ssh2Client.getAuthenticationMethods(java.lang.String username)
Get a list of authentication methods for the user. |
int |
Ssh2Client.authenticate(SshAuthentication auth)
|
void |
Ssh2Client.forceKeyExchange()
The SSH transport protocol exchanges keys at the beginning of the session; the specification recommends that these keys be re-exchanged after each gigabyte of transmitted data or after each hour of connection time, whichever comes sooner. |
SshSession |
Ssh2Client.openSessionChannel()
|
SshSession |
Ssh2Client.openSessionChannel(ChannelEventListener listener)
|
Ssh2Session |
Ssh2Client.openSessionChannel(int windowspace,
int packetsize,
ChannelEventListener listener)
Addtional method to open a session with SSH2 specific features. |
SshClient |
Ssh2Client.openRemoteClient(java.lang.String hostname,
int port,
java.lang.String username,
SshConnector con)
|
SshClient |
Ssh2Client.openRemoteClient(java.lang.String hostname,
int port,
java.lang.String username)
|
SshTunnel |
Ssh2Client.openForwardingChannel(java.lang.String hostname,
int port,
java.lang.String listeningAddress,
int listeningPort,
java.lang.String originatingHost,
int originatingPort,
SshTransport transport,
ChannelEventListener listener)
|
boolean |
Ssh2Client.requestRemoteForwarding(java.lang.String bindAddress,
int bindPort,
java.lang.String hostToConnect,
int portToConnect,
ForwardingRequestListener listener)
|
boolean |
Ssh2Client.cancelRemoteForwarding(java.lang.String bindAddress,
int bindPort)
|
void |
Ssh2Client.openChannel(Ssh2Channel channel,
byte[] requestdata)
Additional method to open a custom SSH2 channel. |
void |
Ssh2Client.openChannel(com.maverick.ssh.message.SshAbstractChannel channel)
Additional method to open a custom SSH2 channel. |
void |
Ssh2Client.addChannelFactory(ChannelFactory factory)
Installs a custom channel factory so that the client may respond to channel open requests. |
void |
Ssh2Client.addRequestHandler(GlobalRequestHandler handler)
Installs a global request handler so that the client may respond to global requests. |
boolean |
Ssh2Client.sendGlobalRequest(GlobalRequest request,
boolean wantreply)
Sends a global request to the remote side. |
SshClient |
Ssh2Client.duplicate()
|
protected com.maverick.ssh.message.SshMessageStore |
Ssh2Channel.getMessageStore()
|
protected boolean |
Ssh2Channel.processChannelMessage(com.maverick.ssh.message.SshChannelMessage msg)
Processes channel request messages by passing the request through to channelRequest(). |
protected void |
Ssh2Channel.processStandardData(byte[] buf,
int offset,
int len)
Called when channel data arrives, by default this method makes the data available in the channels InputStream. |
protected void |
Ssh2Channel.processExtendedData(int typecode,
byte[] buf,
int offset,
int len)
Called when extended data arrives. |
boolean |
Ssh2Channel.sendRequest(java.lang.String requesttype,
boolean wantreply,
byte[] requestdata)
Sends a channel request. |
protected void |
Ssh2Channel.channelRequest(java.lang.String requesttype,
boolean wantreply,
byte[] requestdata)
Called when a channel request is received, by default this method sends a failure message if the remote side requests a reply. |
byte[] |
AuthenticationProtocol.readMessage()
Read a message from the underlying transport layer. |
int |
AuthenticationProtocol.authenticate(AuthenticationClient auth,
java.lang.String servicename)
Authenticate using the mechanism provided. |
java.lang.String |
AuthenticationProtocol.getAuthenticationMethods(java.lang.String username,
java.lang.String servicename)
Get a list of available authentication methods for the user. |
void |
AuthenticationProtocol.sendRequest(java.lang.String username,
java.lang.String servicename,
java.lang.String methodname,
byte[] requestdata)
Send an authentication request. |
Constructors in com.maverick.ssh2 that throw SshException | |
Ssh2Context()
Contructs a default context |
|
TransportProtocol()
Create a default transport protocol instance in CLIENT_MODE. |
|
AuthenticationProtocol(TransportProtocol transport)
Construct the protocol using the given transport |
Uses of SshException in com.sshtools.jce |
Methods in com.sshtools.jce that throw SshException | |
byte[] |
SshX509DsaPublicKey.getEncoded()
Encode the public key into a blob of binary data, the encoded result will be passed into init to recreate the key. |
void |
SshX509DsaPublicKey.init(byte[] blob,
int start,
int len)
Initialize the public key from a blob of binary data. |
void |
DiffieHellmanGroupExchangeSha1.performClientExchange(java.lang.String clientId,
java.lang.String serverId,
byte[] clientKexInit,
byte[] serverKexInit)
The client requests a modulus from the server indicating the pre- ferred size. |
protected void |
DiffieHellmanGroupExchangeSha1.calculateExchangeHash()
Calculates the exchange hash as an SHA1 hash of the following data. |
void |
DiffieHellmanGroup1Sha1.performClientExchange(java.lang.String clientIdentification,
java.lang.String serverIdentification,
byte[] clientKexInit,
byte[] serverKexInit)
|
protected void |
DiffieHellmanGroup1Sha1.calculateExchangeHash()
Calculates the exchange hash as an SHA1 hash of the following data. |
void |
DiffieHellmanGroup14Sha1.performClientExchange(java.lang.String clientIdentification,
java.lang.String serverIdentification,
byte[] clientKexInit,
byte[] serverKexInit)
|
protected void |
DiffieHellmanGroup14Sha1.calculateExchangeHash()
Calculates the exchange hash as an SHA1 hash of the following data. |
byte[] |
Ssh2DsaPublicKey.getEncoded()
Encode the public key into a blob of binary data, the encoded result will be passed into init to recreate the key. |
java.lang.String |
Ssh2DsaPublicKey.getFingerprint()
|
void |
Ssh2DsaPublicKey.init(byte[] blob,
int start,
int len)
Initialize the public key from a blob of binary data. |
boolean |
Ssh2DsaPublicKey.verifySignature(byte[] signature,
byte[] data)
Verify the signature. |
byte[] |
SshX509RsaPublicKey.getEncoded()
Encode the public key into a blob of binary data, the encoded result will be passed into init to recreate the key. |
void |
SshX509RsaPublicKey.init(byte[] blob,
int start,
int len)
Initialize the public key from a blob of binary data. |
byte[] |
Ssh2RsaPublicKey.getEncoded()
|
java.lang.String |
Ssh2RsaPublicKey.getFingerprint()
|
void |
Ssh2RsaPublicKey.init(byte[] blob,
int start,
int len)
|
boolean |
Ssh2RsaPublicKey.verifySignature(byte[] signature,
byte[] data)
|
Uses of SshException in com.sshtools.net |
Methods in com.sshtools.net that throw SshException | |
void |
ForwardingClient.startLocalForwarding(java.lang.String addressToBind,
int portToBind,
java.lang.String hostToConnect,
int portToConnect)
Start's a local listening socket and forwards any connections made to the to the remote side. |
int |
ForwardingClient.startLocalForwardingOnRandomPort(java.lang.String addressToBind,
int maxFailedPorts,
java.lang.String hostToConnect,
int portToConnect)
Start's a local listening socket and forwards any connections made to the to the remote side. |
boolean |
ForwardingClient.requestRemoteForwarding(java.lang.String addressToBind,
int portToBind,
java.lang.String hostToConnect,
int portToConnect)
Requests that the remote side start listening for socket connections so that they may be forwarded to to the local destination. |
void |
ForwardingClient.allowX11Forwarding(java.lang.String display,
java.lang.String magicCookie)
Configure the fowarding client to manage X11 connections. |
void |
ForwardingClient.allowX11Forwarding(java.lang.String display)
Configure the fowarding client to manage X11 connections. |
void |
ForwardingClient.allowX11Forwarding(java.lang.String display,
java.io.File f)
Configure the fowarding client to manage X11 connections. |
void |
ForwardingClient.cancelRemoteForwarding(java.lang.String bindAddress,
int bindPort)
Requests that the remote side stop listening for socket connections. |
void |
ForwardingClient.cancelRemoteForwarding(java.lang.String bindAddress,
int bindPort,
boolean killActiveTunnels)
Requests that the remote side stop listening for socket connections. |
void |
ForwardingClient.cancelAllRemoteForwarding()
Stop all remote forwarding |
void |
ForwardingClient.cancelAllRemoteForwarding(boolean killActiveTunnels)
Stop all remote forwarding. |
void |
ForwardingClient.stopAllLocalForwarding()
Stop all local forwarding |
void |
ForwardingClient.stopAllLocalForwarding(boolean killActiveTunnels)
Stop all local forwarding |
void |
ForwardingClient.stopLocalForwarding(java.lang.String bindAddress,
int bindPort)
Stops a local listening socket from accepting connections. |
void |
ForwardingClient.stopLocalForwarding(java.lang.String bindAddress,
int bindPort,
boolean killActiveTunnels)
Stops a local listening socket from accepting connections. |
void |
ForwardingClient.stopLocalForwarding(java.lang.String key,
boolean killActiveTunnels)
Stop a local listening socket from accepting connections. |
Uses of SshException in com.sshtools.publickey |
Methods in com.sshtools.publickey that throw SshException | |
abstract void |
AbstractKnownHostsKeyVerification.onHostKeyMismatch(java.lang.String host,
SshPublicKey allowedHostKey,
SshPublicKey actualHostKey)
Called by the verifyHost method when the host key supplied
by the host does not match the current key recording in the known hosts
file. |
abstract void |
AbstractKnownHostsKeyVerification.onUnknownHost(java.lang.String host,
SshPublicKey key)
Called by the verifyHost method when the host key supplied
is not recorded in the known_hosts file. |
void |
AbstractKnownHostsKeyVerification.allowHost(java.lang.String host,
SshPublicKey pk,
boolean always)
Allows a host key, optionally recording the key to the known_hosts file. |
boolean |
AbstractKnownHostsKeyVerification.verifyHost(java.lang.String host,
SshPublicKey pk)
Verifies a host key against the list of known_hosts. |
void |
PublicKeySubsystem.add(SshPublicKey key,
java.lang.String comment)
Add a public key to the users list of acceptable keys. |
void |
PublicKeySubsystem.remove(SshPublicKey key)
Remove a public key from the users list of acceptable keys. |
SshPublicKey[] |
PublicKeySubsystem.list()
List all of the users acceptable keys. |
void |
PublicKeySubsystem.associateCommand(SshPublicKey key,
java.lang.String command)
Associate a command with an accepted public key. |
Constructors in com.sshtools.publickey that throw SshException | |
AbstractKnownHostsKeyVerification()
Construct a known_hosts database based on the default path of ~/.ssh/known_hosts. |
|
AbstractKnownHostsKeyVerification(java.lang.String knownhosts)
Constructs a known_hosts database based on the path provided. |
|
ConsoleKnownHostsKeyVerification()
Constructs the verification instance with the default known_hosts file from $HOME/.ssh/known_hosts. |
|
ConsoleKnownHostsKeyVerification(java.lang.String knownhosts)
Constructs the verification instance with the specified known_hosts file. |
|
PublicKeySubsystem(Ssh2Session session)
|
Uses of SshException in com.sshtools.scp |
Methods in com.sshtools.scp that throw SshException | |
void |
ScpClient.put(java.lang.String localFile,
java.lang.String remoteFile,
boolean recursive)
Uploads a local file onto the remote server. |
void |
ScpClient.put(java.lang.String localFile,
java.lang.String remoteFile,
boolean recursive,
FileTransferProgress progress)
Uploads a local file onto the remote server. |
void |
ScpClient.put(java.lang.String[] localFiles,
java.lang.String remoteFile,
boolean recursive)
Uploads an array of local files onto the remote server. |
void |
ScpClient.put(java.lang.String[] localFiles,
java.lang.String remoteFile,
boolean recursive,
FileTransferProgress progress)
Uploads an array of local files onto the remote server. |
void |
ScpClient.get(java.lang.String localFile,
java.lang.String[] remoteFiles,
boolean recursive)
Downloads an array of remote files to the local computer. |
void |
ScpClient.get(java.lang.String localFile,
java.lang.String[] remoteFiles,
boolean recursive,
FileTransferProgress progress)
|
void |
ScpClient.get(java.lang.String localFile,
java.lang.String remoteFile,
boolean recursive)
Downloads a remote file onto the local computer. |
void |
ScpClient.get(java.lang.String localFile,
java.lang.String remoteFile,
boolean recursive,
FileTransferProgress progress)
|
Constructors in com.sshtools.scp that throw SshException | |
ScpClient.ScpEngine(java.lang.String cmd,
SshSession session)
Contruct the channel with the specified scp command. |
Uses of SshException in com.sshtools.sftp |
Methods in com.sshtools.sftp that throw SshException | |
long |
DirectoryOperation.getTransferSize()
Get the total number of bytes that this operation will transfer |
void |
SftpClient.cd(java.lang.String dir)
Changes the working directory on the remote server, or the home directory if null or any empty string is provided as the directory
path
|
java.lang.String |
SftpClient.getDefaultDirectory()
Get the default directory (or HOME directory) |
void |
SftpClient.cdup()
Change the working directory to the parent directory |
void |
SftpClient.mkdir(java.lang.String dir)
Creates a new directory on the remote server. |
void |
SftpClient.mkdirs(java.lang.String dir)
Create a directory or set of directories. |
boolean |
SftpClient.isDirectoryOrLinkedDirectory(SftpFile file)
Determine whether the file object is pointing to a symbolic link that is pointing to a directory. |
SftpFile[] |
SftpClient.ls()
List the contents of the current remote working directory. |
SftpFile[] |
SftpClient.ls(java.lang.String path)
List the contents remote directory. |
SftpFileAttributes |
SftpClient.get(java.lang.String path,
FileTransferProgress progress)
Download the remote file to the local computer. |
SftpFileAttributes |
SftpClient.get(java.lang.String path,
FileTransferProgress progress,
boolean resume)
Download the remote file to the local computer. |
SftpFileAttributes |
SftpClient.get(java.lang.String path,
boolean resume)
Download the remote file to the local computer |
SftpFileAttributes |
SftpClient.get(java.lang.String path)
Download the remote file to the local computer |
SftpFileAttributes |
SftpClient.get(java.lang.String remote,
java.lang.String local,
FileTransferProgress progress)
Download the remote file to the local computer. |
SftpFileAttributes |
SftpClient.get(java.lang.String remote,
java.lang.String local,
FileTransferProgress progress,
boolean resume)
Download the remote file to the local computer. |
SftpFileAttributes |
SftpClient.get(java.lang.String remote,
java.lang.String local,
boolean resume)
Download the remote file into the local file. |
SftpFileAttributes |
SftpClient.get(java.lang.String remote,
java.lang.String local)
Download the remote file into the local file. |
SftpFileAttributes |
SftpClient.get(java.lang.String remote,
java.io.OutputStream local,
FileTransferProgress progress)
Download the remote file writing it to the specified OutputStream . |
SftpFileAttributes |
SftpClient.get(java.lang.String remote,
java.io.OutputStream local,
FileTransferProgress progress,
long position)
Download the remote file writing it to the specified OutputStream . |
java.io.InputStream |
SftpClient.getInputStream(java.lang.String remotefile)
Create an InputStream for reading a remote file. |
SftpFileAttributes |
SftpClient.get(java.lang.String remote,
java.io.OutputStream local,
long position)
Download the remote file into an OutputStream. |
SftpFileAttributes |
SftpClient.get(java.lang.String remote,
java.io.OutputStream local)
Download the remote file into an OutputStream. |
void |
SftpClient.put(java.lang.String local,
FileTransferProgress progress,
boolean resume)
Upload a file to the remote computer. |
void |
SftpClient.put(java.lang.String local,
FileTransferProgress progress)
Upload a file to the remote computer. |
void |
SftpClient.put(java.lang.String local)
Upload a file to the remote computer |
void |
SftpClient.put(java.lang.String local,
boolean resume)
Upload a file to the remote computer |
void |
SftpClient.put(java.lang.String local,
java.lang.String remote,
FileTransferProgress progress)
Upload a file to the remote computer. |
void |
SftpClient.put(java.lang.String local,
java.lang.String remote,
FileTransferProgress progress,
boolean resume)
Upload a file to the remote computer. |
void |
SftpClient.put(java.lang.String local,
java.lang.String remote,
boolean resume)
Upload a file to the remote computer |
void |
SftpClient.put(java.lang.String local,
java.lang.String remote)
Upload a file to the remote computer |
void |
SftpClient.put(java.io.InputStream in,
java.lang.String remote,
FileTransferProgress progress)
Upload a file to the remote computer reading from the specified
InputStream . |
void |
SftpClient.put(java.io.InputStream in,
java.lang.String remote,
FileTransferProgress progress,
long position)
|
java.io.OutputStream |
SftpClient.getOutputStream(java.lang.String remotefile)
Create an OutputStream for writing to a remote file. |
void |
SftpClient.put(java.io.InputStream in,
java.lang.String remote,
long position)
Upload the contents of an InputStream to the remote computer. |
void |
SftpClient.put(java.io.InputStream in,
java.lang.String remote)
Upload the contents of an InputStream to the remote computer. |
void |
SftpClient.chown(java.lang.String uid,
java.lang.String path)
Sets the user ID to owner for the file or directory. |
void |
SftpClient.chgrp(java.lang.String gid,
java.lang.String path)
Sets the group ID for the file or directory. |
void |
SftpClient.chmod(int permissions,
java.lang.String path)
Changes the access permissions or modes of the specified file or directory. |
void |
SftpClient.umask(java.lang.String umask)
Sets the umask for this client. |
void |
SftpClient.rename(java.lang.String oldpath,
java.lang.String newpath)
Rename a file on the remote computer. |
void |
SftpClient.rm(java.lang.String path)
Remove a file or directory from the remote computer. |
void |
SftpClient.rm(java.lang.String path,
boolean force,
boolean recurse)
Remove a file or directory on the remote computer with options to force deletion of existig files and recursion. |
void |
SftpClient.symlink(java.lang.String path,
java.lang.String link)
Create a symbolic link on the remote computer. |
SftpFileAttributes |
SftpClient.stat(java.lang.String path)
Returns the attributes of the file from the remote computer. |
java.lang.String |
SftpClient.getAbsolutePath(java.lang.String path)
Get the absolute path for a file. |
void |
SftpClient.quit()
Close the SFTP client. |
DirectoryOperation |
SftpClient.copyLocalDirectory(java.lang.String localdir,
java.lang.String remotedir,
boolean recurse,
boolean sync,
boolean commit,
FileTransferProgress progress)
Copy the contents of a local directory into a remote remote directory. |
static java.lang.String |
SftpClient.formatLongname(SftpFile file)
Format a String with the details of the file. |
DirectoryOperation |
SftpClient.copyRemoteDirectory(java.lang.String remotedir,
java.lang.String localdir,
boolean recurse,
boolean sync,
boolean commit,
FileTransferProgress progress)
Copy the contents of a remote directory to a local directory |
Constructors in com.sshtools.sftp that throw SshException | |
SftpClient(SshClient ssh)
Constructs the SFTP client with a given channel event listener. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |