TScCheckUserKey = procedure(ClientInfo: TScSSHClientInfo; Key: TScKey; var Accept: Boolean) of object;


property OnCheckUserKey: TScCheckUserKey;



The OnCheckUserKey event arises when the authentication by the public key is demanded on the server. The server previously verifies the given user and key in the storage and specifies the value for the Accept parameter. If you want to grant or deny access for the current connection attempt, you should change the Accept parameter value.



ClientInfo - the information about the user to be authenticated;
Key - a user public key to be verified;
Accept - if Accept is set to True, the user is allowed to connect to the server, otherwise the user is not allowed to connect to the server.


See also



SecureBridge Components, Copyright © 2007-2021 Devart. All Rights Reserved. Provide Feedback Visit Forum Request Support