public class ConnectionUtil
extends java.lang.Object
| Constructor and Description |
|---|
ConnectionUtil() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
discoverSSLPort(java.lang.String host, java.lang.String port, java.lang.String bindDN, char[] bindPwd)
Returns the SSL port number from OID.
|
static java.lang.String |
discoverSSLPort(java.lang.String host, java.lang.String port, java.lang.String bindDN, java.lang.String bindPwd)
Deprecated.
|
static javax.naming.ldap.InitialLdapContext |
getDefaultDirCtx(DiscoveryHelper discObj, java.lang.String bindDN, char[] bindPwd)
Returns an
InitialLdapContext using connect information obtained by calling discover() method of DiscoveryHelper class. |
static javax.naming.ldap.InitialLdapContext |
getDefaultDirCtx(DiscoveryHelper discObj, java.lang.String bindDN, java.lang.String bindPwd)
Deprecated.
|
static javax.naming.ldap.InitialLdapContext |
getDefaultDirCtx(java.lang.String host, java.lang.String port, java.lang.String bindDN, char[] bindPwd)
Returns a non-SSL
InitialLdapContext using the specified info. |
static javax.naming.ldap.InitialLdapContext |
getDefaultDirCtx(java.lang.String host, java.lang.String port, java.lang.String bindDN, char[] bindPwd, long timelimit)
Returns a non-SSL
InitialLdapContext using the specified info - allowing the option to specify a timeout limit. |
static javax.naming.ldap.InitialLdapContext |
getDefaultDirCtx(java.lang.String host, java.lang.String port, java.lang.String bindDN, java.lang.String bindPwd)
Deprecated.
|
static javax.naming.ldap.InitialLdapContext |
getDefaultDirCtx(java.lang.String host, java.lang.String port, java.lang.String bindDN, java.lang.String bindPwd, long timelimit)
Deprecated.
|
static javax.naming.ldap.InitialLdapContext |
getSSLDirCtx(DiscoveryHelper discObj, java.lang.String bindDN, char[] bindPwd)
Returns a InitialLdapContext using the connect information calling discover() method of DiscoveryHelper class.
|
static javax.naming.ldap.InitialLdapContext |
getSSLDirCtx(DiscoveryHelper discObj, java.lang.String bindDN, java.lang.String bindPwd)
Deprecated.
|
static javax.naming.ldap.InitialLdapContext |
getSSLDirCtx(java.lang.String host, java.lang.String port, java.lang.String bindDN, char[] bindPwd)
Returns an
InitialLdapContext using the connect information provided. |
static javax.naming.ldap.InitialLdapContext |
getSSLDirCtx(java.lang.String host, java.lang.String port, java.lang.String bindDN, char[] bindPwd, java.lang.String sslSocketFactory)
Returns an
InitialLdapContext using the connect information provided - including the SSLSocketFactory implementation. |
static javax.naming.ldap.InitialLdapContext |
getSSLDirCtx(java.lang.String host, java.lang.String port, java.lang.String bindDN, java.lang.String bindPwd)
Deprecated.
Please use
getSSLDirCtx(String, String, String, char[]) |
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)
Deprecated.
|
@Deprecated
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
discoverSSLPort(String, String, String, char[])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 java.lang.String discoverSSLPort(java.lang.String host,
java.lang.String port,
java.lang.String bindDN,
char[] 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
@Deprecated
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
getDefaultDirCtx(String, String, String, char[], long)InitialLdapContext using the specified info - allowing the option to specify a timeout limit. The timelimit specifies the amount of time the method will wait for a successful connection. A timelimit may be desirable in case of a hang while establishing the connection. For example, binding against an SSL port.host - host name of the directory serverport - port number of the directory serverbindDN - DN of the bind userbindPwd - password of the bind userInitialLdapContextjavax.naming.NamingException
public static javax.naming.ldap.InitialLdapContext getDefaultDirCtx(java.lang.String host,
java.lang.String port,
java.lang.String bindDN,
char[] bindPwd,
long timelimit)
throws javax.naming.NamingException
InitialLdapContext using the specified info - allowing the option to specify a timeout limit. The timelimit specifies the amount of time the method will wait for a successful connection. A timelimit may be desirable in case of a hang while establishing the connection. For example, binding against an SSL port.host - host name of the directory serverport - port number of the directory serverbindDN - DN of the bind userbindPwd - password of the bind userInitialLdapContextjavax.naming.NamingException
@Deprecated
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
getDefaultDirCtx(String, String, String, char[])InitialLdapContext 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 passwordInitialLdapContextjavax.naming.NamingException
public static javax.naming.ldap.InitialLdapContext getDefaultDirCtx(java.lang.String host,
java.lang.String port,
java.lang.String bindDN,
char[] bindPwd)
throws javax.naming.NamingException
InitialLdapContext 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 passwordInitialLdapContextjavax.naming.NamingException@Deprecated public static javax.naming.ldap.InitialLdapContext getDefaultDirCtx(DiscoveryHelper discObj, java.lang.String bindDN, java.lang.String bindPwd) throws javax.naming.NamingException
getDefaultDirCtx(DiscoveryHelper, String, char[])InitialLdapContext using connect information obtained by calling discover() method of DiscoveryHelper class. The corresponding non-SSL OID server must be running. For SSL connection, please use getSSLDirCtx insteaddiscObj - instance of DiscoveryHelper classbindDN - the bind DN (eg. cn=orcladmin)bindPwd - the bind password the domain name required for DNS lookup.javax.naming.NamingExceptionpublic static javax.naming.ldap.InitialLdapContext getDefaultDirCtx(DiscoveryHelper discObj, java.lang.String bindDN, char[] bindPwd) throws javax.naming.NamingException
InitialLdapContext using connect information obtained by calling discover() method of DiscoveryHelper class. The corresponding non-SSL OID server must be running. For SSL connection, please use getSSLDirCtx insteaddiscObj - instance of DiscoveryHelper classbindDN - the bind DN (eg. cn=orcladmin)bindPwd - the bind password the domain name required for DNS lookup.javax.naming.NamingException
@Deprecated
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
getSSLDirCtx(String, String, String, char[])InitialLdapContext using the connect information provided. This connection will operate in the SSL mode The corresponding OID server must be accepting SSL connections.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 passwordInitialLdapContextjavax.naming.NamingException
public static javax.naming.ldap.InitialLdapContext getSSLDirCtx(java.lang.String host,
java.lang.String port,
java.lang.String bindDN,
char[] bindPwd)
throws javax.naming.NamingException
InitialLdapContext using the connect information provided. This connection will operate in the SSL mode The corresponding OID server must be accepting SSL connections.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 passwordInitialLdapContextjavax.naming.NamingException
@Deprecated
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
getSSLDirCtx(String, String, String, char[], String)InitialLdapContext using the connect information provided - including the SSLSocketFactory implementation. This connection will operate in the SSL mode. The corresponding OID server must be accepting SSL connections. The sslSocketFactory parameter expects the class name of a customized SSL Socket Factory implementation.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 passwordsslSocketFactory - the class name of the socket factory implementation to be used by JNDIInitialLdapContextjavax.naming.NamingException
public static javax.naming.ldap.InitialLdapContext getSSLDirCtx(java.lang.String host,
java.lang.String port,
java.lang.String bindDN,
char[] bindPwd,
java.lang.String sslSocketFactory)
throws javax.naming.NamingException
InitialLdapContext using the connect information provided - including the SSLSocketFactory implementation. This connection will operate in the SSL mode. The corresponding OID server must be accepting SSL connections. The sslSocketFactory parameter expects the class name of a customized SSL Socket Factory implementation.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 passwordsslSocketFactory - the class name of the socket factory implementation to be used by JNDIInitialLdapContextjavax.naming.NamingException@Deprecated public static javax.naming.ldap.InitialLdapContext getSSLDirCtx(DiscoveryHelper discObj, java.lang.String bindDN, java.lang.String bindPwd) throws javax.naming.NamingException
getSSLDirCtx(DiscoveryHelper, String, char[])discObj - instance of DiscoveryHelper classbindDN - the bind DN (eg. cn=orcladmin)bindPwd - the bind passwordjavax.naming.NamingExceptionpublic static javax.naming.ldap.InitialLdapContext getSSLDirCtx(DiscoveryHelper discObj, java.lang.String bindDN, char[] bindPwd) throws javax.naming.NamingException
discObj - instance of DiscoveryHelper classbindDN - the bind DN (eg. cn=orcladmin)bindPwd - the bind passwordjavax.naming.NamingException