FireDAC.Phys.IBBase.TFDIBSecurity
Delphi
TFDIBSecurity = class (TFDIBService)
C++
class PASCALIMPLEMENTATION TFDIBSecurity : public TFDIBService
Contents
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
class | public | FireDAC.Phys.IBBase.pas FireDAC.Phys.IBBase.hpp |
FireDAC.Phys.IBBase | FireDAC.Phys.IBBase |
Description
The class implementing Firebird and InterBase database security management service.
Use the TFDIBSecurity component to add database security management capabilities to an application.
To configure the connection to the database server, you must fill the following properties: DriverLink, Host, Protocol, UserName and Password.
To manage security, an application should:
- Optionally specify AUserName.
- Specify EUADatabase for an Interbase EUA-enabled database.
- Call AddUser / DeleteUser / ModifyUser / DisplayUser / DisplayUsers method.
To manage Interbase-only encryption, an application should:
- Specify EUADatabase, KeyName.
- Call SetEncryption / ChangeEncryption / RemoveEncryption.
An Interbase application can manage EUA database status using EUAActive property.
Example
{ Adding a user: }
FDIBSecurity1.DriverLink := FDPhysIBDriverLink1;
FDIBSecurity1.UserName := 'sysdba';
FDIBSecurity1.Password := 'masterkey';
FDIBSecurity1.Host := 'db.srv.host';
FDIBSecurity1.Protocol := ipTCPIP;
FDIBSecurity1.AUserName := 'user1';
FDIBSecurity1.APassword := '12345';
FDIBSecurity1.AFirstName := 'Bill';
FDIBSecurity1.ALastName := 'Scott';
FDIBSecurity1.AddUser;