DB2 V9.7 for Linux, UNIX, and Windows

DB2ConnectionStringBuilder.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
  • SERVER_ENCRYPT
  • DATA_ENCRYPT
  • KERBEROS
  • GSSPLUGIN
  • CERTIFICATE
在 V9.7 FP6 和更高版本中,您可以将 Authentication 属性设置为 CERTIFICATE,以指定 SSL 客户机认证,连接至 DB2® for z/OS® 服务器,并需具备以下条件:
  • 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 属性。
  • DB2 for z/OS 服务器的连接必须使用应用程序连接字符串,可选使用 IBM® 数据服务器驱动程序配置文件。无法使用本地数据库目录以建立与 DB2 for z/OS 服务器的连接。
  • 无法指定用户密码。