IBM DB2 Manual page 358

Table of Contents

Advertisement

getDB2TrustedPooledConnection
342
Application Programming Guide and Reference for Java
password
The password for the authorization ID that is used to establish the
connection.
gssCredential
If the data source uses Kerberos security, specifies a delegated credential
that is passed from another principal.
properties
Properties for the connection.
Formats:
public Object[] getDB2TrustedPooledConnection(String user,
String password,
java.util.Properties properties)
throws java.sql.SQLException
public Object[] getDB2TrustedPooledConnection(
java.util.Properties properties)
throws java.sql.SQLException
public Object[] getDB2TrustedPooledConnection(
org.ietf.jgss.GSSCredential gssCredential,
java.util.Properties properties)
throws java.sql.SQLException
An application server using a system authorization ID uses this method to
establish a trusted connection.
Trusted connections are supported for:
IBM Data Server Driver for JDBC and SQLJ type 4 connectivity to DB2
v
Database for Linux, UNIX, and Windows Version 9.5 or later, and DB2 for
z/OS Version 9.1 or later
IBM Data Server Driver for JDBC and SQLJ type 2 connectivity to DB2 for
v
z/OS Version 9.1 or later
The following elements are returned in Object[]:
v The first element is a trusted DB2PooledConnection instance.
v The second element is a unique cookie for the generated pooled connection
instance.
The first form getDB2TrustedPooledConnection provides a user ID and
password, while the second form of getDB2TrustedPooledConnection uses the
user ID and password of the DB2ConnectionPoolDataSource object. The third
form of getDB2TrustedPooledConnection is for connections that use Kerberos
security.
Parameter descriptions:
user
The DB2 authorization ID that is used to establish the trusted connection to
the database server.
password
The password for the authorization ID that is used to establish the trusted
connection.
gssCredential
If the data source uses Kerberos security, specifies a delegated credential
that is passed from another principal.
properties
Properties for the connection.

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents