Uses of Interface
org.forgerock.opendj.ldap.LdapClient
Packages that use LdapClient
Package
Description
Classes and interfaces for core types including connections, entries, and
attributes.
APIs for implementing REST to LDAP gateways.
This package contains
Filter to authenticate and authorize LDAP connections.-
Uses of LdapClient in org.forgerock.opendj.ldap
Classes in org.forgerock.opendj.ldap that implement LdapClientModifier and TypeClassDescriptionfinal classA connection pool which maintains a cache of client sockets with a configurable core pool size, maximum size, and expiration policy.Methods in org.forgerock.opendj.ldap that return LdapClientModifier and TypeMethodDescriptionstatic LdapClientLdapClients.newAffinityRequestLoadBalancer(Map<com.forgerock.opendj.util.HostPort, ? extends LdapClient> clients, Options options) Creates a new "affinity" load-balancer which will load-balance individual requests across the provided set of LDAP clients, each typically representing a single replica, using an algorithm that ensures that requests targeting a given DN will always be routed to the same replica.static LdapClientLdapClients.newFailoverLoadBalancer(Collection<? extends LdapClient> clients, Options options) Creates a new "fail-over" load-balancer which will load-balance connections across the provided set of LDAP clients.static LdapClientLdapClients.newFixedSizeDistributionLoadBalancer(Set<Dn> partitionBaseDns, ConsistentHashMap<? extends LdapClient> partitions, Options options) Creates a distribution load balancer which uses consistent hashing to distributes requests across a set of partitions based on a hash of each request's target DN.static LdapClientLdapClients.newInternalLdapClient(BiFunction<Integer, Request, Flowable<Response>> requestHandler) Creates a newLdapClientwhich will route requests to the providedrequestHandler.static LdapClientLdapClients.newLdapClient(String host, int port) Creates a new LDAP client which can be used to create LDAP connections to the Directory Server at the provided host and port number, and using default options.static LdapClientLdapClients.newLdapClient(String host, int port, Options options) Creates a new LDAP client which can be used to create LDAP connections to the Directory Server at the provided host and port number and custom options.static LdapClientLdapClients.newLdapService(Collection<String> bootstrapReplicationServerAdminEndpoints, Supplier<BindRequest> bindRequestSupplier, Options loadBalancingOptions, Options serviceDiscoveryOptions) Creates a new LDAP load-balancer able to discover all the replicas in a directory service, load balance across them all, and reconfigure itself according to changes affecting the availability of the replicas.static LdapClientLdapClients.newLeastRequestsLoadBalancer(Collection<? extends LdapClient> clients, Options options) Creates a new "least requests" load-balancer which will load-balance individual requests across the provided set of LDAP clients, each typically representing a single replica, using an algorithm that ensures that requests are routed to the replica which has the minimum number of active requests.static LdapClientLdapClients.newNamedLdapClient(LdapClient client, String name) Creates a new LDAP client which forwards connection requests to the provided client, but whosetoStringmethod will always returnname.static LdapClientLdapClients.newNullLdapClient()Returns an LDAP client which always throwsResultCode.CLIENT_SIDE_CONNECT_ERROR, without any error message.static LdapClientLdapClients.newNullLdapClient(String name, LocalizableMessage connectErrorMessage) Returns an LDAP client which always throwsResultCode.CLIENT_SIDE_CONNECT_ERRORusing the provided error message.static LdapClientLdapClients.newProxyLdapService(Collection<String> bootstrapReplicationServerAdminHostPorts, Options loadBalancingOptions, Options serviceDiscoveryOptions) Creates a new LDAP load-balancer able to discover all the replicas in a directory service, load balance across them all, and reconfigure itself according to changes affecting the availability of the replicas.Methods in org.forgerock.opendj.ldap with parameters of type LdapClientModifier and TypeMethodDescriptionvoidLoadBalancerEventListener.handleLdapClientOffline(LdapClient client, LdapException error) Invoked when the load-balancer is unable to obtain a connection from the specified LDAP client.voidLoadBalancerEventListener.handleLdapClientOnline(LdapClient client) Invoked when the load-balancer detects that a previously offline LDAP client is available for use again.static ConnectionPoolLdapClients.newCachedConnectionPool(LdapClient client) Creates a new connection pool which creates new connections as needed using the provided LDAP client, but will reuse previously allocated connections when they are available.static ConnectionPoolLdapClients.newCachedConnectionPool(LdapClient client, int corePoolSize, int maximumPoolSize, long idleTimeout, TimeUnit unit) Creates a new connection pool which creates new connections as needed using the provided LDAP client, but will reuse previously allocated connections when they are available.static ConnectionPoolLdapClients.newCachedConnectionPool(LdapClient client, int corePoolSize, int maximumPoolSize, long idleTimeout, TimeUnit unit, ScheduledExecutorService scheduler) Creates a new connection pool which creates new connections as needed using the provided LDAP client, but will reuse previously allocated connections when they are available.static ConnectionPoolLdapClients.newCachedConnectionPool(LdapClient client, Options options) Creates a new connection pool which creates new connections as needed using the provided LDAP client, but will reuse previously allocated connections when they are available.static ConnectionPoolLdapClients.newFixedConnectionPool(LdapClient client, int poolSize) Creates a new connection pool which will maintainpoolSizeconnections created using the provided LDAP client.static LdapClientLdapClients.newNamedLdapClient(LdapClient client, String name) Creates a new LDAP client which forwards connection requests to the provided client, but whosetoStringmethod will always returnname.Method parameters in org.forgerock.opendj.ldap with type arguments of type LdapClientModifier and TypeMethodDescriptionstatic LdapClientLdapClients.newAffinityRequestLoadBalancer(Map<com.forgerock.opendj.util.HostPort, ? extends LdapClient> clients, Options options) Creates a new "affinity" load-balancer which will load-balance individual requests across the provided set of LDAP clients, each typically representing a single replica, using an algorithm that ensures that requests targeting a given DN will always be routed to the same replica.static LdapClientLdapClients.newFailoverLoadBalancer(Collection<? extends LdapClient> clients, Options options) Creates a new "fail-over" load-balancer which will load-balance connections across the provided set of LDAP clients.static LdapClientLdapClients.newFixedSizeDistributionLoadBalancer(Set<Dn> partitionBaseDns, ConsistentHashMap<? extends LdapClient> partitions, Options options) Creates a distribution load balancer which uses consistent hashing to distributes requests across a set of partitions based on a hash of each request's target DN.static LdapClientLdapClients.newLeastRequestsLoadBalancer(Collection<? extends LdapClient> clients, Options options) Creates a new "least requests" load-balancer which will load-balance individual requests across the provided set of LDAP clients, each typically representing a single replica, using an algorithm that ensures that requests are routed to the replica which has the minimum number of active requests.Constructors in org.forgerock.opendj.ldap with parameters of type LdapClientModifierConstructorDescriptionLdapConnectionFactory(LdapClient ldapClient) Creates a new LDAP connection factory which can be used to create LDAP connections to the Directory Server at the provided host and port number. -
Uses of LdapClient in org.forgerock.opendj.rest2ldap
Methods in org.forgerock.opendj.rest2ldap that return LdapClientModifier and TypeMethodDescriptionstatic LdapClientRest2LdapJsonConfigurator.configureLdapClient(JsonValue configuration, String name, TrustManager trustManager, X509KeyManager keyManager) Creates a new LDAP client using the named configuration in the provided JSON list of client configurations.protected LdapClientRest2LdapHttpApplication.getLdapClient(String name) Gets aLdapClientfrom its name.Methods in org.forgerock.opendj.rest2ldap with parameters of type LdapClientModifier and TypeMethodDescriptionprotected ConditionalFilters.ConditionalFilterRest2LdapHttpApplication.newAnonymousFilter(LdapClient ldapClient) protected org.forgerock.http.FilterRest2LdapHttpApplication.newProxyAuthzFilter(LdapClient ldapClient) Creates a newFilterin charge of injectingLdapClientContext.Constructors in org.forgerock.opendj.rest2ldap with parameters of type LdapClientModifierConstructorDescriptionLdapClientContext(org.forgerock.services.context.Context parent, LdapClient ldapClientForReadingSchema, LdapClientSocket ldapClientSocketForUserRequests) Creates a new LDAP client context having the provided parent and an ID automatically generated usingUUID.randomUUID().LdapClientContext(org.forgerock.services.context.Context parent, LdapClient ldapClientForReadingSchema, LdapClientSocket ldapClientSocketForUserRequests, Control proxiedAuthControl) Creates a new LDAP client context having the provided parent and an ID automatically generated usingUUID.randomUUID(). -
Uses of LdapClient in org.forgerock.opendj.rest2ldap.authz
Methods in org.forgerock.opendj.rest2ldap.authz with parameters of type LdapClientModifier and TypeMethodDescriptionAuthorization.newConditionalDirectConnectionFilter(LdapClient ldapClient) Creates aConditionalFilters.ConditionalFilterinjecting anLdapClientContextwith a connection issued from the given connectionFactory.static org.forgerock.http.oauth2.AccessTokenResolverAuthorization.newCtsAccessTokenResolver(LdapClient ldapClient, String ctsBaseDNTemplate) Creates a new CTS access token resolver.static org.forgerock.http.FilterAuthorization.newProxyAuthorizationFilter(LdapClient ldapClient) Creates a filter injecting anLdapClientContextgiven the information provided in theSecurityContext.static AuthenticationStrategyAuthenticationStrategies.newSaslPlainStrategy(LdapClient ldapClient, Schema schema, String authcIdTemplate) Creates anAuthenticationStrategyperforming authentication against an LDAP server using a plain SASL bind request.static AuthenticationStrategyAuthenticationStrategies.newSaslScramStrategy(LdapClient ldapClient, ScramMechanism scramMechanism, Schema schema, String authcIdTemplate) Creates anAuthenticationStrategyperforming authentication against an LDAP server using a SCRAM SASL bind request.static AuthenticationStrategyAuthenticationStrategies.newSearchThenBindStrategy(LdapClient searchLdapClient, LdapClient bindLdapClient, Dn baseDN, SearchScope searchScope, String filterTemplate) Creates anAuthenticationStrategyperforming authentication against an LDAP server by first performing a lookup of the entry to bind with.static AuthenticationStrategyAuthenticationStrategies.newSimpleBindStrategy(LdapClient ldapClient, String bindDNTemplate, Schema schema) Creates anAuthenticationStrategyperforming simple BIND authentication against an LDAP server.static AuthenticationStrategyAuthenticationStrategies.newSimpleBindStrategy(LdapClient ldapClient, Function<String, Dn> dnMapper) Creates anAuthenticationStrategyperforming simple BIND authentication against an LDAP server.