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 manage security, an application should:
- Specify DriverLink, UserName, Password, Host.
- 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 DriverLink, UserName, Password, Host, 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;