Class LdaptiveAuthenticatorBuilder

java.lang.Object
org.pac4j.config.ldaptive.LdaptiveAuthenticatorBuilder

public class LdaptiveAuthenticatorBuilder extends Object
Copy/pasted from CAS server v5.0.4: Beans + LdapAuthenticationConfiguration classes, only the Ldaptive stuffs are kept.
  • Constructor Details

    • LdaptiveAuthenticatorBuilder

      protected LdaptiveAuthenticatorBuilder()
  • Method Details

    • getAuthenticator

      public static org.ldaptive.auth.Authenticator getAuthenticator(LdapAuthenticationProperties l)
    • newSearchEntryResolver

      public static org.ldaptive.auth.EntryResolver newSearchEntryResolver(LdapAuthenticationProperties l)
      New dn resolver entry resolver.
      Parameters:
      l - the ldap settings
      Returns:
      the entry resolver
    • newConnectionConfig

      public static org.ldaptive.ConnectionConfig newConnectionConfig(AbstractLdapProperties l)
      New connection config connection config.
      Parameters:
      l - the ldap properties
      Returns:
      the connection config
    • newPooledConnectionFactory

      public static org.ldaptive.PooledConnectionFactory newPooledConnectionFactory(AbstractLdapProperties l)
      New pooled connection factory.
      Parameters:
      l - the ldap properties
      Returns:
      the pooled connection factory
    • newDuration

      public static Duration newDuration(long length)
      New duration.
      Parameters:
      length - the length in seconds.
      Returns:
      the duration
    • newSearchRequest

      public static org.ldaptive.SearchRequest newSearchRequest(String baseDn, org.ldaptive.FilterTemplate filter)
      Builds a new request.
      Parameters:
      baseDn - the base dn
      filter - the filter
      Returns:
      the search request
    • newSearchFilter

      public static org.ldaptive.FilterTemplate newSearchFilter(String filterQuery, String... params)
      Constructs a new search filter using filterQuery as a template and the username as a parameter.
      Parameters:
      filterQuery - the query filter
      params - the username
      Returns:
      Search filter with parameters applied.
    • newSearchOperation

      public static org.ldaptive.SearchOperation newSearchOperation(String baseDn, String filterQuery, String... params)
      New search operation .
      Parameters:
      baseDn - the base dn
      filterQuery - the filter query
      params - the params
      Returns:
      the search executor