Feature notes: SSH implementation notes
iSSHGetAuthData is the CLIENT-side callback interface the tSSHClientXxxAuthentication classes (below) call back into to obtain credentials and to hand the server's userauth banner up to the application; it is implemented by TstCustomSSHClient itself, which forwards the calls to its own OnGetClientPassword/ClientKey/ OnSetBanner published members, so application code normally never implements this interface directly, only assigns those SSH-client properties/events. There is no server-side counterpart of this interface - the SSH server uses the separate iSSHGetAuthDataServer interface instead.
function GetAuthData(const aUsername: string; const aMethod : string; aChange : Boolean = False) : tBytes;
function GetPrivateKey: iSignPrivateKey;
procedure SetBanner(const aBanner, aLang: string);
function GetService: string;
function GetUsername: string;
procedure SetService(const Value: string);
procedure SetUsername(const Value: string);
function Execute(const aTransport : iTransport; const aAuthData : iSSHGetAuthData; var aMustCont : Boolean; var aAuthThatCanCont: string) : Boolean;
property Username: string read GetUsername write SetUsername;
property Service: string read GetService write SetService;
inherits from tObjectMapping
implements iSSHClientAuthentication
constructor Create; virtual;
inherits from tSSHClientAuthentication
(no public members)
inherits from tSSHClientAuthentication
(no public members)
inherits from tSSHClientAuthentication
(no public members)