Interface ISFTP Client

App
System Application
Namespace
System.SFTPClient
Versions
28

Procedures, 17

Versions171819202122232425262728

Source2829

Source in 29

src/System Application/App/SFTP Client/src/ISFTPClient.Interface.al29 lines, Copyright (c) Microsoft Corporation. MIT

// ------------------------------------------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for license information.
// ------------------------------------------------------------------------------------------------

namespace System.SFTPClient;

using System;

interface "ISFTP Client"
{
    Access = Internal;
    procedure SftpClient(Host: Text; Port: Integer; UserName: Text; Password: SecretText): Boolean
    procedure SftpClient(Host: Text; Port: Integer; UserName: Text; PrivateKey: InStream): Boolean
    procedure SftpClient(HostName: Text; Port: Integer; Username: Text; PrivateKey: InStream; Passphrase: SecretText): Boolean
    procedure GetOperationException(var ExceptionType: Enum "SFTP Exception Type"; var ExceptionMessage: Text; var ServerFingerprintSHA256Param: Text)
    procedure Disconnect()
    procedure IsConnected(): Boolean
    procedure Exists(Path: Text; var Exists: Boolean): Boolean
    procedure Delete(Path: Text): Boolean
    procedure WorkingDirectory(var Result: Text): Boolean
    procedure SetWorkingDirectory(Path: Text): Boolean
    procedure ListDirectory(Path: Text; var Result: List of [Interface "ISFTP File"]): Boolean
    procedure ReadAllBytes(Path: Text; var Bytes: Dotnet Array): Boolean
    procedure WriteAllBytes(Path: Text; Bytes: Dotnet Array): Boolean
    procedure Get(Path: Text; var Result: Interface "ISFTP File"): Boolean
    procedure CreateDirectory(Path: Text): Boolean
    procedure SetSHA256Fingerprints(FingerPrints: List of [Text])
}