oracle.ldap.util.jndi
Class ConnectionUtil
java.lang.Object
|
+--oracle.ldap.util.jndi.ConnectionUtil
- public class ConnectionUtil
- extends java.lang.Object
Method Summary |
static java.lang.String |
discoverSSLPort(java.lang.String host,
java.lang.String port,
java.lang.String bindDN,
java.lang.String bindPwd)
This method will connect to an existing non-SSL OID using the connect
information provided and obtain the SSL connect information in
the default configset 1. |
static javax.naming.ldap.InitialLdapContext |
getDefaultDirCtx(java.lang.String host,
java.lang.String port,
java.lang.String bindDN,
java.lang.String bindPwd)
Returns a InitialLdapContext using the connect information provided. |
static javax.naming.ldap.InitialLdapContext |
getSSLDirCtx(java.lang.String host,
java.lang.String port,
java.lang.String bindDN,
java.lang.String bindPwd)
Returns a InitialLdapContext using the connect information provided. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConnectionUtil
public ConnectionUtil()
discoverSSLPort
public static java.lang.String discoverSSLPort(java.lang.String host,
java.lang.String port,
java.lang.String bindDN,
java.lang.String bindPwd)
throws javax.naming.NamingException
- This method will connect to an existing non-SSL OID using the connect
information provided and obtain the SSL connect information in
the default configset 1. The SSL OID server need not be running at
this point
- Parameters:
host
- The hostname where the non-SSL OID is runningport
- The port number on which the non-SSL OID is runningbindDN
- the bind DN (eg. cn=orcladmin)bindPwd
- the bind password- Throws:
javax.naming.NamingException
-
getDefaultDirCtx
public static javax.naming.ldap.InitialLdapContext getDefaultDirCtx(java.lang.String host,
java.lang.String port,
java.lang.String bindDN,
java.lang.String bindPwd)
throws javax.naming.NamingException
- Returns a InitialLdapContext using the connect information provided.
The corresponding non-SSL OID server must be running.
For SSL connection, please use getSSLDirCtx instead
- Parameters:
host
- The hostname where the non-SSL OID is runningport
- The port number on which the non-SSL OID is runningbindDN
- the bind DN (eg. cn=orcladmin)bindPwd
- the bind password- Throws:
javax.naming.NamingException
-
getSSLDirCtx
public static javax.naming.ldap.InitialLdapContext getSSLDirCtx(java.lang.String host,
java.lang.String port,
java.lang.String bindDN,
java.lang.String bindPwd)
throws javax.naming.NamingException
- Returns a InitialLdapContext using the connect information provided.
Use this only if this is SSL connection. The corresponding
SSL OID server must be running.
- Parameters:
host
- The hostname where the SSL OID is runningport
- The port number on which the SSL OID is runningbindDN
- the bind DN (eg. cn=orcladmin)bindPwd
- the bind password- Throws:
javax.naming.NamingException
-