Gets or sets the type of authentication to be used with
file DSN or DSN-less connectivity.
- Namespace:
- IBM.Data.DB2
- Assembly:
- IBM.Data.DB2 (in IBM.Data.DB2.dll)
Syntax
[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);
Property value
A string that represents
the type of authentication to be used. The default value is "Not Specified".
Remarks
The
DB2ConnectionStringBuilder.Authentication property
can have the one of the following values:
- SERVER
- SERVER_ENCRYPT
- DATA_ENCRYPT
- KERBEROS
- GSSPLUGIN
- CERTIFICATE
In
Version 9.7 Fix Pack 6 and later, you can specify the SSL client authentication
by setting the
Authentication property to the
CERTIFICATE value
for connection to
DB2® for z/OS® servers
with following conditions:
- DB2 for z/OS server
must be Version 10 or later. If you are connecting to DB2 for z/OS Version
10 server, APAR PM53450 must be installed.
- Connections to DB2 for z/OS server
must be a direct connection between DB2 client
and supported DB2 for z/OS server.
You cannot use DB2 Connect
server as a gateway to establish connection to target DB2 for z/OS servers.
- The SSLCLientLabel property must also be set.
- A connection to supported DB2 for z/OS servers
must be made with the application connection string and optionally
the IBM® data server driver configuration
file. You cannot use the local database catalog to establish connections
to DB2 for z/OS servers.
- You cannot specify a user password.