FireDAC.Phys.IBBase.TFDIBSecurity
Delphi
TFDIBSecurity = class (TFDIBService)
C++
class PASCALIMPLEMENTATION TFDIBSecurity : public TFDIBService
プロパティ
| 種類 | 可視性 | ソース | ユニット | 親 |
|---|---|---|---|---|
| class | public | FireDAC.Phys.IBBase.pas FireDAC.Phys.IBBase.hpp |
FireDAC.Phys.IBBase | FireDAC.Phys.IBBase |
説明
Firebird および InterBase のデータベース セキュリティ管理サービスを実装したクラスです。
TFDIBSecurity コンポーネントを使用すると、データベース セキュリティ管理機能をアプリケーションに追加できます。
アプリケーションでセキュリティを管理するには、以下を行います。
- DriverLink、UserName、Password、Host を指定します。
- オプションで、AUserName を指定します。
- EUA 対応の InterBase データベースの場合は、EUADatabase を指定します。
- 目的に応じて、AddUser、DeleteUser、ModifyUser、DisplayUser、DisplayUsers のいずれかのメソッドを呼び出します。
アプリケーションで InterBase 専用の暗号化を管理するには、以下を行います。
- DriverLink、UserName、Password、Host、EUADatabase、KeyName を指定します。
- 目的に応じて、SetEncryption、ChangeEncryption、RemoveEncryption のいずれかを呼び出します。
InterBase アプリケーションでは、EUAActive プロパティを使って、EUA データベースの状態を管理できます。
例
{ 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;