LdapAuthenticationProviderConfigurer.createUserSearch
Code IndexAdd Codota to your IDE (free)

Best Java code snippets using org.springframework.security.config.annotation.authentication.configurers.ldap.LdapAuthenticationProviderConfigurer.createUserSearch (Showing top 4 results out of 315)

  • Common ways to obtain LdapAuthenticationProviderConfigurer
private void myMethod () {
LdapAuthenticationProviderConfigurer l =
  • AuthenticationManagerBuilder authenticationManagerBuilder;authenticationManagerBuilder.apply(new LdapAuthenticationProviderConfigurer<>())
  • Smart code suggestions by Codota
}
origin: spring-projects/spring-security

/**
 * Creates the {@link LdapAuthenticator} to use
 *
 * @param contextSource the {@link BaseLdapPathContextSource} to use
 * @return the {@link LdapAuthenticator} to use
 */
private LdapAuthenticator createLdapAuthenticator(
    BaseLdapPathContextSource contextSource) {
  AbstractLdapAuthenticator ldapAuthenticator = passwordEncoder == null ? createBindAuthenticator(contextSource)
      : createPasswordCompareAuthenticator(contextSource);
  LdapUserSearch userSearch = createUserSearch();
  if (userSearch != null) {
    ldapAuthenticator.setUserSearch(userSearch);
  }
  if (userDnPatterns != null && userDnPatterns.length > 0) {
    ldapAuthenticator.setUserDnPatterns(userDnPatterns);
  }
  return postProcess(ldapAuthenticator);
}
origin: org.springframework.security/spring-security-config

/**
 * Creates the {@link LdapAuthenticator} to use
 *
 * @param contextSource the {@link BaseLdapPathContextSource} to use
 * @return the {@link LdapAuthenticator} to use
 */
private LdapAuthenticator createLdapAuthenticator(
    BaseLdapPathContextSource contextSource) {
  AbstractLdapAuthenticator ldapAuthenticator = passwordEncoder == null ? createBindAuthenticator(contextSource)
      : createPasswordCompareAuthenticator(contextSource);
  LdapUserSearch userSearch = createUserSearch();
  if (userSearch != null) {
    ldapAuthenticator.setUserSearch(userSearch);
  }
  if (userDnPatterns != null && userDnPatterns.length > 0) {
    ldapAuthenticator.setUserDnPatterns(userDnPatterns);
  }
  return postProcess(ldapAuthenticator);
}
origin: org.springframework.security/spring-security-javaconfig

/**
 * Creates the {@link LdapAuthenticator} to use
 *
 * @param contextSource the {@link BaseLdapPathContextSource} to use
 * @return the {@link LdapAuthenticator} to use
 */
private LdapAuthenticator createLdapAuthenticator(BaseLdapPathContextSource contextSource) {
  AbstractLdapAuthenticator ldapAuthenticator = passwordEncoder == null ? createBindAuthenticator(contextSource) : createPasswordCompareAuthenticator(contextSource);
  LdapUserSearch userSearch = createUserSearch();
  if(userSearch != null) {
    ldapAuthenticator.setUserSearch(userSearch);
  }
  if(userDnPatterns != null && userDnPatterns.length > 0) {
    ldapAuthenticator.setUserDnPatterns(userDnPatterns);
  }
  return postProcess(ldapAuthenticator);
}
origin: apache/servicemix-bundles

/**
 * Creates the {@link LdapAuthenticator} to use
 *
 * @param contextSource the {@link BaseLdapPathContextSource} to use
 * @return the {@link LdapAuthenticator} to use
 */
private LdapAuthenticator createLdapAuthenticator(
    BaseLdapPathContextSource contextSource) {
  AbstractLdapAuthenticator ldapAuthenticator = passwordEncoder == null ? createBindAuthenticator(contextSource)
      : createPasswordCompareAuthenticator(contextSource);
  LdapUserSearch userSearch = createUserSearch();
  if (userSearch != null) {
    ldapAuthenticator.setUserSearch(userSearch);
  }
  if (userDnPatterns != null && userDnPatterns.length > 0) {
    ldapAuthenticator.setUserDnPatterns(userDnPatterns);
  }
  return postProcess(ldapAuthenticator);
}
org.springframework.security.config.annotation.authentication.configurers.ldapLdapAuthenticationProviderConfigurercreateUserSearch

Popular methods of LdapAuthenticationProviderConfigurer

  • contextSource
    Specifies the BaseLdapPathContextSource to be used. If not specified, an embedded LDAP server will b
  • groupSearchBase
    The search base for group membership searches. Defaults to "".
  • userDnPatterns
    If your users are at a fixed location in the directory (i.e. you can work out the DN directly from t
  • <init>
  • build
  • createBindAuthenticator
    Creates a BindAuthenticator
  • createLdapAuthenticator
    Creates the LdapAuthenticator to use
  • createPasswordCompareAuthenticator
    Creates PasswordComparisonAuthenticator
  • getAuthoritiesMapper
    Gets the GrantedAuthoritiesMapper and defaults to SimpleAuthorityMapper.
  • getContextSource
  • groupRoleAttribute
    Specifies the attribute name which contains the role name. Default is "cn".
  • groupSearchFilter
    The LDAP filter to search for groups. Defaults to "(uniqueMember={0})". The substituted parameter is
  • groupRoleAttribute,
  • groupSearchFilter,
  • postProcess,
  • rolePrefix,
  • userSearchBase,
  • userSearchFilter,
  • addObjectPostProcessor,
  • getLdapAuthoritiesPopulator,
  • passwordCompare

Popular in Java

  • Parsing JSON documents to java classes using gson
  • setRequestProperty (URLConnection)
  • getSupportFragmentManager (FragmentActivity)
  • getExternalFilesDir (Context)
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • BoxLayout (javax.swing)
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec

For IntelliJ IDEA,
Android Studio or Eclipse

  • Search for JavaScript code betaCodota IntelliJ IDEA pluginCodota Android Studio pluginCode IndexSign in
  • EnterpriseFAQAboutBlogContact Us
  • Plugin user guideTerms of usePrivacy policyCodeboxFind Usages
Add Codota to your IDE (free)