Package org.pac4j.config.ldaptive
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 Summary
Constructors Modifier Constructor Description protectedLdaptiveAuthenticatorBuilder()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.ldaptive.auth.AuthenticatorgetAuthenticator(LdapAuthenticationProperties l)static org.ldaptive.pool.ConnectionPoolnewBlockingConnectionPool(AbstractLdapProperties l)New blocking connection pool connection pool.static org.ldaptive.ConnectionConfignewConnectionConfig(AbstractLdapProperties l)New connection config connection config.static org.ldaptive.DefaultConnectionFactorynewConnectionFactory(AbstractLdapProperties l)New connection factory connection factory.static DurationnewDuration(long length)New duration.static org.ldaptive.pool.PoolConfignewPoolConfig(AbstractLdapProperties l)New pool config pool config.static org.ldaptive.pool.PooledConnectionFactorynewPooledConnectionFactory(AbstractLdapProperties l)New pooled connection factory pooled connection factory.static org.ldaptive.auth.EntryResolvernewSearchEntryResolver(LdapAuthenticationProperties l)New dn resolver entry resolver.static org.ldaptive.SearchExecutornewSearchExecutor(String baseDn, String filterQuery, String... params)New search executor search executor.static org.ldaptive.SearchFilternewSearchFilter(String filterQuery, String... params)Constructs a new search filter usingSearchRequest.searchFilteras a template and the username as a parameter.static org.ldaptive.SearchRequestnewSearchRequest(String baseDn, org.ldaptive.SearchFilter filter)Builds a new request.
-
-
-
Method Detail
-
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
-
newPoolConfig
public static org.ldaptive.pool.PoolConfig newPoolConfig(AbstractLdapProperties l)
New pool config pool config.- Parameters:
l- the ldap properties- Returns:
- the pool config
-
newConnectionFactory
public static org.ldaptive.DefaultConnectionFactory newConnectionFactory(AbstractLdapProperties l)
New connection factory connection factory.- Parameters:
l- the l- Returns:
- the connection factory
-
newBlockingConnectionPool
public static org.ldaptive.pool.ConnectionPool newBlockingConnectionPool(AbstractLdapProperties l)
New blocking connection pool connection pool.- Parameters:
l- the l- Returns:
- the connection pool
-
newPooledConnectionFactory
public static org.ldaptive.pool.PooledConnectionFactory newPooledConnectionFactory(AbstractLdapProperties l)
New pooled connection factory 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.SearchFilter filter)
Builds a new request.- Parameters:
baseDn- the base dnfilter- the filter- Returns:
- the search request
-
newSearchFilter
public static org.ldaptive.SearchFilter newSearchFilter(String filterQuery, String... params)
Constructs a new search filter usingSearchRequest.searchFilteras a template and the username as a parameter.- Parameters:
filterQuery- the query filterparams- the username- Returns:
- Search filter with parameters applied.
-
-