public class DataSourceAccessor extends Object
Connection class.
It also provides access to LDAP information,
and provides access to a configured CustomDataSourceDriver.LdapInfo| Constructor and Description |
|---|
DataSourceAccessor()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
Connection |
getConnection(String jdbcJndiName)
Performs a JNDI lookup on the passed in id, and return a Connection object.
|
CustomDataSourceDriver |
getCustomDataSourceDriver(String sourceId)
Retrieves the specified
CustomDataSourceDriver associated with a specific CustomDataSource. |
org.sourceid.saml20.domain.datasource.info.LdapInfo |
getLdapInfo(String ldapId)
Retrieves LDAP lookup information for the specified id.
|
public org.sourceid.saml20.domain.datasource.info.LdapInfo getLdapInfo(String ldapId)
ldapId - The id of the LDAP datastore information to retrieveLdapInfo or null if not found.public Connection getConnection(String jdbcJndiName) throws SQLException, NamingException
jdbcJndiName - The JNDI name to perform the lookup onConnection class for the corresponding JNDI id.SQLExceptionNamingExceptionpublic CustomDataSourceDriver getCustomDataSourceDriver(String sourceId)
CustomDataSourceDriver associated with a specific CustomDataSource.
The Custom data source object contains configuration information that was set during the data source creation.
This information is passed to the appropriate CustomDataSourceDriver before being returned.sourceId - The id of the Custom data source object to retrieve.CustomDataSourceDriver or null if not found.Copyright 2019 Ping Identity Corp. All rights reserved.