EDI Integrator 2016 Java Edition
EDI Integrator 2016 Java Edition
Questions / Feedback?

SFTP Bean

Properties   Methods   Events   Configuration Settings   Errors  

The SFTP component can be used to transfer files to and from SFTP servers using the SFTP Protocol.

Syntax

InEDI.Sftp

Remarks

The SFTP bean is the SSH-enabled equivalent of the IP*Works! FTP bean. The SSHHost and SSHPort properties specify the SSH server to use. The SSHUser and SSHPassword properties allow the client to authenticate itself with the server. The SSHServerAuthentication event and/or SSHAcceptServerHostKey property allow you to check the server identity. Finally, the SSHStatus event provides information about the SSH handshake.

The SFTP bean implements a standard SSH File Transfer client.

The first step in using the bean is specifying the SSHHost, SSHUser and SSHPassword. The file to upload to or download from is given by the RemoteFile property. The file to download to or upload from is specified by LocalFile. The current path in the server is specified by the RemotePath property.

If LocalFile is set to something other than an empty string, then files are received in LocalFile, otherwise the data is received through the Transfer event. StartTransfer and EndTransfer are fired at the beginning and end of transmission.

Directory listings are received through the DirList event.

Property List


The following is the full list of the properties of the bean with short descriptions. Click on the links for further details.

ConnectedTriggers a connection or disconnection.
DirListCollection of entries resulting in the last directory listing.
FileAttributesThe attributes of the RemoteFile .
FileExistsReturns true if the file specified by RemoteFile exists on the remote server.
FirewallA set of properties related to firewall access.
IdleThe current status of the component.
LocalFileThe path to a local file for upload/download.
LocalHostThe name of the local host or user-assigned IP interface through which connections are initiated or accepted.
LocalPortThe TCP port in the local host where IPPort binds.
OverwriteWhether or not the component should overwrite files during transfer.
RemoteFileThe name of the remote file for uploading, downloading, etc.
RemotePathThe current path in the SFTP server.
SSHAcceptServerHostKeyInstructs the component to accept the server host key that matches the supplied key.
SSHAuthModeThe authentication method to be used the component when calling SSHLogon .
SSHCertA certificate to be used for authenticating the SSHUser .
SSHCompressionAlgorithmsA comma-separated list containing all allowable compression algorithms.
SSHEncryptionAlgorithmsA comma-separated list containing all allowable compression algorithms.
SSHHostThe address of the SSH host.
SSHPasswordThe password for SSH password-based authentication.
SSHPortThe port on the SSH server where the SSH service is running; by default, 22.
SSHUserThe username for SSH authentication.
StartByteThe offset in bytes at which to begin the Upload or Download.
TimeoutA timeout for the component.

Method List


The following is the full list of the methods of the bean with short descriptions. Click on the links for further details.

appendAppend data from LocalFile to a remote file RemoteFile on an SFTP server.
configSets or retrieves a configuration setting .
decodePacketDecodes a hex-encoded SSH packet.
deleteFileRemove a file specified by FileName from an SFTP server.
doEventsProcesses events from the internal message queue.
downloadDownload a RemoteFile from an SFTP server.
encodePacketHex encodes an SSH packet.
getSSHParamUsed to read a field from an SSH packet's payload.
getSSHParamBytesUsed to read a field from an SSH packet's payload.
interruptInterrupt the current method.
listDirectoryList the current directory specified by RemotePath on an SFTP server.
makeDirectoryCreate a directory on an SFTP server.
queueFileAdds a file to the transfer queue.
removeDirectoryRemove a directory specified by DirName from an SFTP server.
renameFileChange the name of RemoteFile to NewName .
resetReset the component.
resetQueueResets the queue of files to be transferred.
setDownloadStreamSets the stream to which the downloaded data from the server will be written.
setSSHParamUsed to write a field to the end of a payload.
setUploadStreamSets the stream from which the component will read data to upload to the server.
SSHLogoffLogoff from the SSH server.
SSHLogonLogon to the SSHHost using the current SSHUser and SSHPassword .
updateFileAttributesInstructs the component to send the FileAttributes to the server.
uploadUpload a file specified by LocalFile to an SFTP server.

Event List


The following is the full list of the events fired by the bean with short descriptions. Click on the links for further details.

ConnectedFired immediately after a connection completes (or fails).
ConnectionStatusFired to indicate changes in connection state.
DirListFired when a directory entry is received.
DisconnectedFired when a connection is closed.
EndTransferFired when a file completes downloading/uploading.
ErrorInformation about errors during data delivery.
SSHCustomAuthFired when the component is doing custom authentication.
SSHKeyboardInteractiveFired when the component receives a request for user input from the server.
SSHServerAuthenticationFired after the server presents its public key to the client.
SSHStatusShows the progress of the secure connection.
StartTransferFired when a file starts downloading/uploading.
TransferFired during file download/upload.

Configuration Settings


The following is a list of configuration settings for the bean with short descriptions. Click on the links for further details.

AllowBackslashInNameWhether backslashes are allowed in folder and file names.
DisableRealPathControls whether or not the SSH_FXP_REALPATH request is sent.
FiletimeFormatSpecifies the format to use when returning filetime strings.
FileMaskDelimiterSpecifies a delimiter to use for setting multiple file masks in the RemoteFile property.
IgnoreFileMaskCasingControls whether or not the file mask is case sensitive.
LocalEOLWhen TransferMode is set, this specifies the line ending for the local system.
ServerEOLWhen TransferMode is set, this specifies the line ending for the remote system.
MaskSensitiveMasks passwords in logs.
MaxFileDataSpecifies the maximum payload size of an SFTP packet.
ProtocolVersionThe highest allowable SFTP version to use.
PreserveFileTimePreserves the file's timestamps during transfer.
TransferModeThe transfer mode (ASCII or Binary).
ReadLinkThis settings returns the target of a specified symbolic link.
RealPathControlFlagSpecifies the control-byte field sent in the SSH_FXP_REALPATH request.
RealTimeUploadEnables real time uploading.
RealTimeUploadAgeLimitThe age limit in seconds when using RealTimeUpload.
SimultaneousTransferLimitThe maximum number of simultaneous file transfers.
TransferredDataLimitSpecifies the maximum number of bytes to download from the remote file.
ClientSSHVersionStringThe SSH version string used by the component.
SSHVersionPatternThe pattern used to match the remote host's version string.
SSHFingerprintHashAlgorithmThe algorithm used to calculate the fingerprint.
SignedSSHCertThe CA signed client public key used when authenticating.
SSHAcceptServerCAKeyThe CA public key that signed the server's host key.
SSHAcceptAnyServerHostKeyIf set the component will accept any key presented by the server.
SSHAcceptServerHostKeyFingerPrintThe fingerprint of the server key to accept.
SSHKeyExchangeAlgorithmsSpecifies the supported key exchange algorithms.
SSHMacAlgorithmsSpecifies the supported Mac algorithms.
SSHPublicKeyAlgorithmsSpecifies the supported public key algorithms.
SSHKeepAliveIntervalThe interval between keep alive packets.
SSHKeepAliveCountMaxThe maximum number of keep alive packets to send without a response.
SSHKeyRenegotiateCauses the component to renegotiate the SSH keys.
KeyRenegotiationThresholdSets the threshold for the SSH Key Renegotiation.
SSHPubKeyAuthSigAlgorithmsSpecifies the signature algorithm when attempting public key authentication.
KerberosRealmThe fully qualified domain name of the Kerberos Realm to use for GSSAPI authentication.
KerberosDelegationIf true, asks for credentials with delegation enabled during authentication.
KerberosSPNThe Kerberos Service Principal Name of the SSH host.
LogSSHPacketsIf true, detailed SSH packet logging is performed.
MaxPacketSizeThe maximum packet size of the channel, in bytes.
MaxWindowSizeThe maximum window size allowed for the channel, in bytes.
PasswordPromptThe text of the password prompt used in keyboard-interactive authentication.
PreferredDHGroupBitsThe size (in bits) of the preferred modulus (p) to request from the server.
RecordLengthThe length of received data records.
GUIAvailableTells the component whether or not a message loop is available for processing events.
UseDaemonThreadsWhether threads created by the component are daemon threads.
UseInternalSecurityAPITells the component whether or not to use the system security libraries or an internal implementation.

 
 
Copyright (c) 2020 /n software inc. - All rights reserved.
EDI Integrator 2016 Java Edition - Version 16.0 [Build 7362]