Configuring SFTP Server 2.0 User Exits

This section provides API or interface details for the SFTP server 2.0 UserExits implementation. Follow this section to implement your own custom logic.

Functional Overview

Refer to the below instructions and diagram for the functional overview of SFTP server 2.0 UserExit implementation:
  • The SFTP server 2.0 is in between the SFTP Client and the UserExit.
  • You have sample SFTP clients like WinSCP, FileZilla, etc.
  • SFTP Server 2.0 - Apache Mina. The SFTP Server and the UserExit are placed inside the B2Bi Server.
  • The SFTP Server 2.0 uses the FileSystem, Mailbox, and the Global Mailbox as File System Persistence providers.
  • The SFTP Client and the SFTP Server 2.0 are connected over a network – Internet connection.

To be able to customize a functionality before/after a predefined operation.

Refer to the following sample use cases:
  • Block specific users from downloading or uploading files.
  • Deny file upload based on the size of a file or extension of the file.
  • Store the file which is being downloaded in a temporary storage location as backup.
UserExit supports the following commands:
Command Filter Operation
PUT Pre and post execution
GET Pre and post execution
LS/CD Pre execution
OPENDIR
READDIR
RM
MKDIR
RMDIR