DB2®ConnectionStringBuilder.Authentication 属性
获取或设置要与文件 DSN 连接或非 DSN 连接配合使用的认证类型。
- 名称空间:
IBM.Data.DB2- 组合件:
IBM.Data.DB2(在IBM.Data.DB2.dll中)
语法
[Visual Basic]
Public Property Authentication As String
[C#]
public string Authentication {get; set;}
[C++]
public: __property String* get_Authentication();
public: __property void set_Authentication(String*);
[JScript]
public function get Authentication() : String;
public function set Authentication(String); 属性值
表示要使用的认证类型的字符串。 缺省值为“Not Specified”。
注释
DB2ConnectionStringBuilder.Authentication 属性可以具有下列其中一个值:- 服务器
- SERVER_ENCRYPT
- DATA_ENCRYPT
- KERBEROS
- GSSPLUGIN
- CERTIFICATE
通过将 Authentication 属性设置为 CERTIFICATE 值以连接到具有以下条件的 Db2® for z/OS® 服务器,可以指定 SSL 客户机认证:
- Db2 for z/OS 服务器必须是 V10 或更高版本。 如果要连接到 Db2 for z/OS V10 服务器,那么必须安装 APAR PM53450 。
- 与 Db2 for z/OS 服务器的连接必须是 Db2 客户机与受支持的 Db2 for z/OS 服务器之间的直接连接。
- 不能将 Db2 Connect 服务器用作网关,以建立与目标 Db2 for z/OS 服务器的连接。
- 还必须设置 SSLCLientLabel 属性。
- 必须使用应用程序连接字符串和 (可选) IBM® 数据服务器驱动程序配置文件来连接到受支持的 Db2 for z/OS 服务器。 不能使用本地数据库目录来建立与 Db2 for z/OS 服务器的连接。
- 不能指定用户密码。