The Batch Secure SCP OTD (BatchSCP) provides secure data transfer using Secure Copy Protocol with Secure Shell (SSH) as an underlying protocol. SCP is similar to RCP (remote copy), but the file is copied over secure shell (SSH) rather than RSH (remote shell). When files are copied using SCP the data is encrypted during transfer.
For information about configuring external FTP servers, SSH servers, and so forth, refer to the application’s documentation.
The BatchSCP OTD contains two top-level nodes, Client and Configuration. Expand these nodes to reveal additional sub-nodes.
The following list provides an explanation of various nodes in the BatchSCP OTD, including primary functions:
BatchSCP: Represents the OTD’s root node.
The BatchSCP sub-nodes under the Configuration node correspond to BatchSCP Adapter’s Connectivity Map and Environment configuration parameters.
The BatchSCP OTD’s Client node includes the following methods:
connect(): connects to the SSH server and does authentication as configured.
disconnect(): disconnects from the SSH server.
get(): copies the file or directory specified by the configuration parameters, Remote Directory and Remote File, to the local, as specified by configuration parameters Local Directory and Local File. If the configuration parameter, Is Copy Recursive, is set to Yes, the copy will be recursive.
getPayload(): returns the payload buffer as a byte array.
getRecursive(): copies data from remote to local with configuration parameter Recursive set to "Yes".
isConnected(): checks whether the client is connected to the SSH server.
put(): Copies local data (specified by configuration parameters LocalDirectory and LocalFile) to the remote SSH server (specified by configuration parameters RemoteDirectory and RemoteFile).
putRecursive(): copies data from local to remote with the configuration parameter Recursive set to "Yes".
setpayload(byte[] newPayload): sets the payload.
See the Batch Adapter Javadoc for a list of all exposed SCPClient methods.