EasyManuals Logo

IBM DB2 User Manual

IBM DB2
585 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #383 background imageLoading...
Page #383 background image
An application server using a system authorization ID uses this method to
establish a trusted connection.
Trusted connections are supported for:
v IBM Data Server Driver for JDBC and SQLJ type 4 connectivity to DB2
Database for Linux, UNIX, and Windows Version 9.5 or later, and DB2 for
z/OS Version 9.1 or later
v IBM Data Server Driver for JDBC and SQLJ type 2 connectivity to DB2 for
z/OS Version 9.1 or later
The following elements are returned in Object[]:
v The first element is a DB2TrustedXAConnection instance.
v The second element is a unique cookie for the generated XA connection
instance.
The first form getDB2TrustedXAConnection provides a user ID and password.
The second form of getDB2TrustedXAConnection uses the user ID and password
of the DB2XADataSource object. The third form of getDB2TrustedXAConnection is
for connections that use Kerberos security.
Parameter descriptions:
user
The authorization ID that is used to establish the trusted connection.
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.
getDB2TrustedPooledConnection
Format:
public Object[] getDB2TrustedPooledConnection(java.util.Properties properties)
throws java.sql.SQLException
An application server using a system authorization ID uses this method to
establish a trusted connection, using the user ID and password for the
DB2XADataSource object.
Trusted connections are supported for:
v IBM Data Server Driver for JDBC and SQLJ type 4 connectivity to DB2
Database for Linux, UNIX, and Windows Version 9.5 or later, and DB2 for
z/OS Version 9.1 or later
v IBM Data Server Driver for JDBC and SQLJ type 2 connectivity to DB2 for
z/OS Version 9.1 or later
The following elements are returned in Object[]:
v The first element is a trusted DB2TrustedPooledConnection instance.
v The second element is a unique cookie for the generated pooled connection
instance.
Parameter descriptions:
Chapter 7. JDBC and SQLJ reference information 367

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the IBM DB2 and is the answer not in the manual?

IBM DB2 Specifications

General IconGeneral
DeveloperIBM
Initial Release1983
LicenseProprietary
Written inC, C++
CategoryDatabase Management System (RDBMS)
Operating SystemLinux, Windows
Programming LanguagesC, C++
Data ModelsRelational
EditionsCommunity, Standard, Advanced
Key Featureshigh availability, scalability