Your browser does not allow storing cookies. We recommend enabling them.


com.ssh.sft
Class Sft

java.lang.Object
  extended bycom.ssh.sft.SftLib
      extended bycom.ssh.sft.SftBase
          extended bycom.ssh.sft.Sft
All Implemented Interfaces:
com.ssh.sft.SftLibConstants

public class Sft
extends com.ssh.sft.SftBase

The Secure File Transfer service. The SFT service allows manipulation of files and directory hierarchies in remote hosts. The SSH Tectia Server (F) needs to be running on the remote hosts, and the SSH Tectia Broker needs to be running on the local host under the same user ID as the Java process that uses the SFT Service.


Field Summary
static intSSH_SFT_DIR_RECURSIVE
           
static intSSH_SFT_HASH_MAX_BLOCK_SIZE
           
static intSSH_SFT_HASH_MAX_ITERATIONS
           
static intSSH_SFT_HASH_MIN_BLOCK_SIZE
           
static intSSH_SFT_REQUEST_MAX_NUM
           
static intSSH_SFT_REQUEST_MAX_SIZE
           
 
Constructor Summary
Sft()
          By default, the Authentication object will use the provided by us
Sft(String broker_addr, Authenticator authenticator)
           
 
Method Summary
 LocationgetLocation(URI uri)
           
 FileopenFile(URI uri)
           
 SessionopenLocalSession()
          Opens an SFTP session to the local host as the current user.
 SessionopenSession(String user, String hostname)
          Opens a new SFTP session to a named host at port 22.
 SessionopenSession(URI uri)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SSH_SFT_REQUEST_MAX_SIZE

public static final int SSH_SFT_REQUEST_MAX_SIZE
See Also:
Constant Field Values

SSH_SFT_REQUEST_MAX_NUM

public static final int SSH_SFT_REQUEST_MAX_NUM
See Also:
Constant Field Values

SSH_SFT_HASH_MAX_ITERATIONS

public static final int SSH_SFT_HASH_MAX_ITERATIONS
See Also:
Constant Field Values

SSH_SFT_HASH_MIN_BLOCK_SIZE

public static final int SSH_SFT_HASH_MIN_BLOCK_SIZE
See Also:
Constant Field Values

SSH_SFT_HASH_MAX_BLOCK_SIZE

public static final int SSH_SFT_HASH_MAX_BLOCK_SIZE
See Also:
Constant Field Values

SSH_SFT_DIR_RECURSIVE

public static final int SSH_SFT_DIR_RECURSIVE
See Also:
Constant Field Values
Constructor Detail

Sft

public Sft()
By default, the Authentication object will use the provided by us


Sft

public Sft(String broker_addr,
           Authenticator authenticator)
Method Detail

getLocation

public Location getLocation(URI uri)
                     throws SftException
Throws:
SftException

openFile

public File openFile(URI uri)
              throws SftException
Throws:
SftException

openSession

public Session openSession(URI uri)
                    throws SftException
Throws:
SftException

openSession

public Session openSession(String user,
                           String hostname)
                    throws SftException
Opens a new SFTP session to a named host at port 22. If necessary, connects to the server first. In this case, the authenticator may be called before returning.

Parameters:
user - the user to log in as
hostname - the domain name or IP address of the SFTP server
Returns:
the new session
Throws:
???
SftException

openLocalSession

public Session openLocalSession()
                         throws SftException
Opens an SFTP session to the local host as the current user. No authentication is required.

Returns:
the new session
Throws:
???
SftException



 

 
Highlights from the SSH.COM blog:

  • Cryptomining with the SSH protocol: what big enterprises need to know about it

    Cryptomining malware is primarily thought of as targeting desktops and laptops and is used to hijack system resources to mine cryptocurrency.
    Read more
  • SLAM the door shut on traditional privileged access management

    Did you know that something as trivial-sounding as granting access for your developers or third parties to a product development environment can throw a gorilla-sized monkey wrench into your operations and productivity?
    Read more
  • We broke the IT security perimeter

    Everyone understands the concept of a security perimeter. You only gain access if you are identified and authorized to do so.
    Read more