|
Oracle Internet Directory API Reference 10g(9.0.4) B10423-01 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.ldap.util.jndi.ConnectionUtil
ConnectionUtil
class contains static methods that deal with establishing directory connections. The underlying code uses Sun's JNDI.
Constructor Summary | |
ConnectionUtil() |
Method Summary | |
static java.lang.String |
discoverSSLPort(java.lang.String host, java.lang.String port, java.lang.String bindDN, java.lang.String bindPwd) Returns the SSO port number from OID. |
static javax.naming.ldap.InitialLdapContext |
getDefaultDirCtx(DiscoveryHelper discObj, java.lang.String bindDN, java.lang.String bindPwd) Returns a InitialLdapContext using connect information obtained by calling discover() method of DiscoveryHelper class. |
static javax.naming.ldap.InitialLdapContext |
getDefaultDirCtx(java.lang.String host, java.lang.String port, java.lang.String bindDN, java.lang.String bindPwd) Returns a non-SSL DirContext using the specified info. |
static javax.naming.ldap.InitialLdapContext |
getDefaultDirCtx(java.lang.String host, java.lang.String port, java.lang.String bindDN, java.lang.String bindPwd, long timelimit) Returns a non-SSL DirContext using the specified info. |
static javax.naming.ldap.InitialLdapContext |
getSSLDirCtx(DiscoveryHelper discObj, java.lang.String bindDN, java.lang.String bindPwd) Returns a InitialLdapContext using the connect information calling discover() method of DiscoveryHelper class. |
static javax.naming.ldap.InitialLdapContext |
getSSLDirCtx(java.lang.String host, java.lang.String port, java.lang.String bindDN, java.lang.String bindPwd) Returns an SSL 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, java.lang.String sslSocketFactory) |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ConnectionUtil()
Method Detail |
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
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 passwordjavax.naming.NamingException
public static javax.naming.ldap.InitialLdapContext getDefaultDirCtx(java.lang.String host, java.lang.String port, java.lang.String bindDN, java.lang.String bindPwd, long timelimit) throws javax.naming.NamingException
DirContext
using the specified info. The timelimit
specifies the amount of time the method will wait for a successful connection.host
- host name of the directory serverport
- port number of the directory serverbindDN
- DN of the bind userbindPwd
- password of the bind userInitialLdapContext
javax.naming.NamingException
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
DirContext
using the specified info. For SSL connection, please use getSSLDirCtx
instead.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 passwordInitialLdapContext
javax.naming.NamingException
public static javax.naming.ldap.InitialLdapContext getDefaultDirCtx(DiscoveryHelper discObj, java.lang.String bindDN, java.lang.String bindPwd) throws javax.naming.NamingException
discObj
- instance of DiscoveryHelper classbindDN
- the bind DN (eg. cn=orcladmin)bindPwd
- the bind password the domain name required for DNS lookup.InitialLdapContext
javax.naming.NamingException
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
InitialLdapContext
using the connect information provided. Use this only if this is SSL connection.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 passwordInitialLdapContext
javax.naming.NamingException
public static javax.naming.ldap.InitialLdapContext getSSLDirCtx(java.lang.String host, java.lang.String port, java.lang.String bindDN, java.lang.String bindPwd, java.lang.String sslSocketFactory) throws javax.naming.NamingException
javax.naming.NamingException
public static javax.naming.ldap.InitialLdapContext getSSLDirCtx(DiscoveryHelper discObj, java.lang.String bindDN, java.lang.String bindPwd) throws javax.naming.NamingException
InitialLdapContext
using the connect information calling discover() method of DiscoveryHelper class. Use this only if this is SSL connection. The corresponding SSL OID server must be running.discObj
- instance of DiscoveryHelper classbindDN
- the bind DN (eg. cn=orcladmin)bindPwd
- the bind passwordInitialLdapContext
javax.naming.NamingException
|
Oracle Internet Directory API Reference 10g(9.0.4) B10423-01 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |