Package | Description |
---|---|
org.forgerock.opendj.adapter.server3x |
Classes for interacting with an embedded OpenDJ 2.x instance using the OpenDJ LDAP SDK.
|
org.forgerock.opendj.ldap |
Classes and interfaces for core types including connections, entries, and
attributes.
|
org.forgerock.opendj.rest2ldap |
APIs for implementing REST to LDAP gateways.
|
org.forgerock.opendj.rest2ldap.authz |
This package contains
Filter to authenticate and authorize LDAP connections. |
Modifier and Type | Method and Description |
---|---|
static ConnectionFactory |
Adapters.newConnectionFactory(InternalClientConnection icc)
Returns a new connection factory.
|
static ConnectionFactory |
Adapters.newRootConnectionFactory()
Returns a new root connection factory.
|
Modifier and Type | Interface and Description |
---|---|
interface |
ConnectionPool
A connection factory which maintains and re-uses a pool of connections.
|
Modifier and Type | Class and Description |
---|---|
class |
LDAPConnectionFactory
A factory class which can be used to obtain connections to an LDAP Directory Server.
|
Modifier and Type | Method and Description |
---|---|
static ConnectionFactory |
Connections.newFailoverLoadBalancer(Collection<? extends ConnectionFactory> factories,
Options options)
Creates a new "fail-over" load-balancer which will load-balance connections across the provided set of connection
factories.
|
static ConnectionFactory |
Connections.newInternalConnectionFactory(RequestHandler<RequestContext> requestHandler)
Creates a new connection factory which binds internal client connections
to the provided
RequestHandler s. |
static <C> ConnectionFactory |
Connections.newInternalConnectionFactory(RequestHandlerFactory<C,RequestContext> factory,
C clientContext)
Creates a new connection factory which binds internal client connections
to
RequestHandler s created using the provided
RequestHandlerFactory . |
static <C> ConnectionFactory |
Connections.newInternalConnectionFactory(ServerConnectionFactory<C,Integer> factory,
C clientContext)
Creates a new connection factory which binds internal client connections
to
ServerConnection s created using the provided
ServerConnectionFactory . |
static ConnectionFactory |
Connections.newNamedConnectionFactory(ConnectionFactory factory,
String name)
Creates a new connection factory which forwards connection requests to
the provided factory, but whose
toString method will always
return name . |
static ConnectionFactory |
Connections.newRoundRobinLoadBalancer(Collection<? extends ConnectionFactory> factories,
Options options)
Creates a new "round-robin" load-balancer which will load-balance connections across the provided set of
connection factories.
|
static ConnectionFactory |
Connections.newShardedRequestLoadBalancer(Collection<? extends ConnectionFactory> factories,
Options options)
Creates a new "sharded" load-balancer which will load-balance individual requests across the provided set of
connection factories, 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 ConnectionFactory |
Connections.uncloseable(ConnectionFactory factory)
Returns an uncloseable view of the provided connection factory.
|
Modifier and Type | Method and Description |
---|---|
void |
LoadBalancerEventListener.handleConnectionFactoryOffline(ConnectionFactory factory,
LdapException error)
Invoked when the load-balancer is unable to obtain a connection from the
specified connection factory.
|
void |
LoadBalancerEventListener.handleConnectionFactoryOnline(ConnectionFactory factory)
Invoked when the load-balancer detects that a previously offline
connection factory is available for use again.
|
static ConnectionPool |
Connections.newCachedConnectionPool(ConnectionFactory factory)
Creates a new connection pool which creates new connections as needed
using the provided connection factory, but will reuse previously
allocated connections when they are available.
|
static ConnectionPool |
Connections.newCachedConnectionPool(ConnectionFactory factory,
int corePoolSize,
int maximumPoolSize,
long idleTimeout,
TimeUnit unit)
Creates a new connection pool which creates new connections as needed
using the provided connection factory, but will reuse previously
allocated connections when they are available.
|
static ConnectionPool |
Connections.newCachedConnectionPool(ConnectionFactory factory,
int corePoolSize,
int maximumPoolSize,
long idleTimeout,
TimeUnit unit,
ScheduledExecutorService scheduler)
Creates a new connection pool which creates new connections as needed
using the provided connection factory, but will reuse previously
allocated connections when they are available.
|
static ConnectionPool |
Connections.newFixedConnectionPool(ConnectionFactory factory,
int poolSize)
Creates a new connection pool which will maintain
poolSize
connections created using the provided connection factory. |
static ConnectionFactory |
Connections.newNamedConnectionFactory(ConnectionFactory factory,
String name)
Creates a new connection factory which forwards connection requests to
the provided factory, but whose
toString method will always
return name . |
static ConnectionFactory |
Connections.uncloseable(ConnectionFactory factory)
Returns an uncloseable view of the provided connection factory.
|
Modifier and Type | Method and Description |
---|---|
static ConnectionFactory |
Connections.newFailoverLoadBalancer(Collection<? extends ConnectionFactory> factories,
Options options)
Creates a new "fail-over" load-balancer which will load-balance connections across the provided set of connection
factories.
|
static ConnectionFactory |
Connections.newRoundRobinLoadBalancer(Collection<? extends ConnectionFactory> factories,
Options options)
Creates a new "round-robin" load-balancer which will load-balance connections across the provided set of
connection factories.
|
static ConnectionFactory |
Connections.newShardedRequestLoadBalancer(Collection<? extends ConnectionFactory> factories,
Options options)
Creates a new "sharded" load-balancer which will load-balance individual requests across the provided set of
connection factories, 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.
|
Modifier and Type | Method and Description |
---|---|
static ConnectionFactory |
Rest2LdapJsonConfigurator.configureConnectionFactory(JsonValue configuration,
String name,
TrustManager trustManager,
X509KeyManager keyManager)
Creates a new connection factory using the named configuration in the provided JSON list of factory
configurations.
|
static ConnectionFactory |
Rest2LdapJsonConfigurator.configureConnectionFactory(JsonValue configuration,
String name,
TrustManager trustManager,
X509KeyManager keyManager,
ClassLoader providerClassLoader)
Creates a new connection factory using the named configuration in the provided JSON list of factory
configurations.
|
protected ConnectionFactory |
Rest2LdapHttpApplication.getConnectionFactory(String name)
Gets a
ConnectionFactory from its name. |
Modifier and Type | Method and Description |
---|---|
protected ConditionalFilters.ConditionalFilter |
Rest2LdapHttpApplication.newAnonymousFilter(ConnectionFactory connectionFactory)
Creates a new
Filter in charge of injecting AuthenticatedConnectionContext directly from a
ConnectionFactory . |
protected org.forgerock.http.Filter |
Rest2LdapHttpApplication.newProxyAuthzFilter(ConnectionFactory connectionFactory)
Creates a new
Filter in charge of injecting AuthenticatedConnectionContext . |
Modifier and Type | Method and Description |
---|---|
static ConditionalFilters.ConditionalFilter |
Authorization.newConditionalDirectConnectionFilter(ConnectionFactory connectionFactory)
Creates a
ConditionalFilters.ConditionalFilter injecting an AuthenticatedConnectionContext with a connection issued
from the given connectionFactory. |
static org.forgerock.openig.oauth2.AccessTokenResolver |
Authorization.newCtsAccessTokenResolver(ConnectionFactory connectionFactory,
String ctsBaseDNTemplate)
Creates a new CTS access token resolver.
|
static org.forgerock.http.Filter |
Authorization.newProxyAuthorizationFilter(ConnectionFactory connectionFactory)
Creates a filter injecting an
AuthenticatedConnectionContext given the information provided in the
SecurityContext . |
static AuthenticationStrategy |
AuthenticationStrategies.newSaslPlainStrategy(ConnectionFactory connectionFactory,
Schema schema,
String authcIdTemplate)
Creates an
AuthenticationStrategy performing authentication against an LDAP server using a plain SASL
bind request. |
static AuthenticationStrategy |
AuthenticationStrategies.newSearchThenBindStrategy(ConnectionFactory searchConnectionFactory,
ConnectionFactory bindConnectionFactory,
DN baseDN,
SearchScope searchScope,
String filterTemplate)
Creates an
AuthenticationStrategy performing authentication against an LDAP server by first performing a
lookup of the entry to bind with. |
static AuthenticationStrategy |
AuthenticationStrategies.newSimpleBindStrategy(ConnectionFactory connectionFactory,
String bindDNTemplate,
Schema schema)
Creates an
AuthenticationStrategy performing simple BIND authentication against an LDAP server. |
Copyright 2010-2017 ForgeRock AS.