Package org.pac4j.config.ldaptive
Class LdaptiveAuthenticatorBuilder
java.lang.Object
org.pac4j.config.ldaptive.LdaptiveAuthenticatorBuilder
Copy/pasted from CAS server v5.0.4: Beans + LdapAuthenticationConfiguration classes, only the Ldaptive stuffs are kept.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.ldaptive.auth.Authenticator
static org.ldaptive.ConnectionConfig
New connection config connection config.static Duration
newDuration
(long length) New duration.static org.ldaptive.PooledConnectionFactory
New pooled connection factory.static org.ldaptive.auth.EntryResolver
New dn resolver entry resolver.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.static org.ldaptive.SearchOperation
newSearchOperation
(String baseDn, String filterQuery, String... params) New search operation .static org.ldaptive.SearchRequest
newSearchRequest
(String baseDn, org.ldaptive.FilterTemplate filter) Builds a new request.
-
Constructor Details
-
LdaptiveAuthenticatorBuilder
protected LdaptiveAuthenticatorBuilder()
-
-
Method Details
-
getAuthenticator
-
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
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
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 dnfilter
- the filter- Returns:
- the search request
-
newSearchFilter
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(String baseDn, String filterQuery, String... params) New search operation .- Parameters:
baseDn
- the base dnfilterQuery
- the filter queryparams
- the params- Returns:
- the search executor
-