Codota Logo
LdapURL.<init>
Code IndexAdd Codota to your IDE (free)

How to use
org.ldaptive.LdapURL
constructor

Best Java code snippets using org.ldaptive.LdapURL.<init> (Showing top 9 results out of 315)

  • Common ways to obtain LdapURL
private void myMethod () {
LdapURL l =
  • Codota IconString url;new LdapURL(url)
  • Codota IconConnectionConfig connectionConfig;new LdapURL(connectionConfig.getLdapUrl())
  • Smart code suggestions by Codota
}
origin: vt-middleware/ldaptive

final LdapURL ldapUrl = new LdapURL(cc.getLdapUrl());
factory = ThreadLocalTLSSocketFactory.getHostnameVerifierFactory(cc.getSslConfig(), ldapUrl.getHostnames());
threadLocal = true;
origin: org.ldaptive/ldaptive

final LdapURL ldapUrl = new LdapURL(cc.getLdapUrl());
factory = ThreadLocalTLSSocketFactory.getHostnameVerifierFactory(cc.getSslConfig(), ldapUrl.getHostnames());
threadLocal = true;
origin: com.floragunn/ldaptive

/**
 * Returns a jndi connection factory using the properties found in the supplied connection config. If the supplied env
 * is null, the environment is retrieved from {@link #getDefaultEnvironment(ConnectionConfig, String)}.
 *
 * @param  cc  connection config
 * @param  env  context environment or null to use the default
 *
 * @return  jndi connection factory
 */
protected JndiConnectionFactory getJndiConnectionFactory(final ConnectionConfig cc, final Map<String, Object> env)
{
 SSLSocketFactory factory = config.getSslSocketFactory();
 if (factory == null && (cc.getUseSSL() || cc.getLdapUrl().toLowerCase().contains("ldaps://"))) {
  // LDAPS hostname verification does not occur by default
  // set a default hostname verifier
  final LdapURL ldapUrl = new LdapURL(cc.getLdapUrl());
  factory = ThreadLocalTLSSocketFactory.getHostnameVerifierFactory(cc.getSslConfig(), ldapUrl.getHostnames());
 }
 return
  new JndiConnectionFactory(
   cc.getLdapUrl(),
   config,
   env != null ? env : getDefaultEnvironment(cc, factory != null ? factory.getClass().getName() : null));
}
origin: org.ldaptive/ldaptive

logger.debug("Following referral with URLs: {}", urls);
for (String url : urls) {
 final LdapURL ldapUrl = new LdapURL(url);
 if (ldapUrl.getEntry().getHostname() == null) {
  continue;
origin: com.floragunn/ldaptive

logger.debug("Following referral with URLs: {}", urls);
for (String url : urls) {
 final LdapURL ldapUrl = new LdapURL(url);
 if (ldapUrl.getEntry().getHostname() == null) {
  continue;
origin: vt-middleware/ldaptive

logger.debug("Following referral with URLs: {}", urls);
for (String url : urls) {
 final LdapURL ldapUrl = new LdapURL(url);
 if (ldapUrl.getEntry().getHostname() == null) {
  continue;
origin: vt-middleware/ldaptive

new Object[][] {
 new Object[] {
  new LdapURL("ldap://"),
  new LdapURL.Entry[] {
   new LdapURL.Entry(
 },
 new Object[] {
  new LdapURL("ldaps://"),
  new LdapURL.Entry[] {
   new LdapURL.Entry(
 },
 new Object[] {
  new LdapURL("ldap:///o=University%20of%20Michigan,c=US"),
  new LdapURL.Entry[] {
   new LdapURL.Entry(
 },
 new Object[] {
  new LdapURL("ldap://ldap1.example.net/o=University%20of%20Michigan,c=US"),
  new LdapURL.Entry[] {
   new LdapURL.Entry(
 },
 new Object[] {
  new LdapURL("ldap://ldap1.example.net/o=University%20of%20Michigan,c=US" +
   "?postalAddress"),
  new LdapURL.Entry[] {
origin: org.ldaptive/ldaptive-apache

throws LdapException
final LdapURL ldapUrl = new LdapURL(url);
ldapConnectionConfig.setLdapHost(ldapUrl.getLastEntry().getHostname());
ldapConnectionConfig.setLdapPort(ldapUrl.getLastEntry().getPort());
origin: org.ldaptive/ldaptive-apache

final LdapURL ldapUrl = new LdapURL(cc.getLdapUrl());
final SSLContextInitializer contextInit;
if (cc.getSslConfig() != null && !cc.getSslConfig().isEmpty()) {
org.ldaptiveLdapURL<init>

Javadoc

Creates a new ldap url.

Popular methods of LdapURL

  • getHostnames
    Returns a list of all the hostnames in this ldap url.
  • getEntry
    Returns the first entry of this ldap url.
  • getLastEntry
    Returns the last entry of this ldap url.
  • parseEntry
    Matches the supplied url against a pattern and reads it's components.
  • getEntries
    Returns a list of all the ldap url entries in this ldap url.
  • getHostnamesWithSchemeAndPort
    Returns a list of all the hostnames including their scheme and port in this ldap url.
  • getUrls
    Returns a list of all the URLs in this ldap url.
  • size
    Returns the number of entries in this ldap url.

Popular in Java

  • Reactive rest calls using spring rest template
  • getSystemService (Context)
  • runOnUiThread (Activity)
  • setRequestProperty (URLConnection)
    Sets the general request property. If a property with the key already exists, overwrite its value wi
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • BufferedReader (java.io)
    Reads text from a character-input stream, buffering characters so as to provide for the efficient re
  • FileOutputStream (java.io)
    A file output stream is an output stream for writing data to aFile or to a FileDescriptor. Whether
  • Connection (java.sql)
    A connection represents a link from a Java application to a database. All SQL statements and results
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now