Package org.pac4j.config.ldaptive
Class LdaptiveAuthenticatorBuilder
- java.lang.Object
-
- org.pac4j.config.ldaptive.LdaptiveAuthenticatorBuilder
-
public class LdaptiveAuthenticatorBuilder extends java.lang.Object
Copy/pasted from CAS server v5.0.4: Beans + LdapAuthenticationConfiguration classes, only the Ldaptive stuffs are kept.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
LdaptiveAuthenticatorBuilder()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.ldaptive.auth.Authenticator
getAuthenticator(LdapAuthenticationProperties l)
static org.ldaptive.ConnectionConfig
newConnectionConfig(AbstractLdapProperties l)
New connection config connection config.static java.time.Duration
newDuration(long length)
New duration.static org.ldaptive.PooledConnectionFactory
newPooledConnectionFactory(AbstractLdapProperties l)
New pooled connection factory.static org.ldaptive.auth.EntryResolver
newSearchEntryResolver(LdapAuthenticationProperties l)
New dn resolver entry resolver.static org.ldaptive.FilterTemplate
newSearchFilter(java.lang.String filterQuery, java.lang.String... params)
Constructs a new search filter using filterQuery as a template and the username as a parameter.static org.ldaptive.SearchOperation
newSearchOperation(java.lang.String baseDn, java.lang.String filterQuery, java.lang.String... params)
New search operation .static org.ldaptive.SearchRequest
newSearchRequest(java.lang.String baseDn, org.ldaptive.FilterTemplate 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
-
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 java.time.Duration newDuration(long length)
New duration.- Parameters:
length
- the length in seconds.- Returns:
- the duration
-
newSearchRequest
public static org.ldaptive.SearchRequest newSearchRequest(java.lang.String baseDn, org.ldaptive.FilterTemplate filter)
Builds a new request.- Parameters:
baseDn
- the base dnfilter
- the filter- Returns:
- the search request
-
newSearchFilter
public static org.ldaptive.FilterTemplate newSearchFilter(java.lang.String filterQuery, java.lang.String... params)
Constructs a new search filter using filterQuery as a template and the username as a parameter.- Parameters:
filterQuery
- the query filterparams
- the username- Returns:
- Search filter with parameters applied.
-
newSearchOperation
public static org.ldaptive.SearchOperation newSearchOperation(java.lang.String baseDn, java.lang.String filterQuery, java.lang.String... params)
New search operation .- Parameters:
baseDn
- the base dnfilterQuery
- the filter queryparams
- the params- Returns:
- the search executor
-
-