public class Rest2LdapHttpApplication extends Object implements org.forgerock.http.HttpApplication
| Modifier and Type | Field and Description |
|---|---|
protected File |
configDirectory
The name of the JSON configuration directory in which config.json and rest2ldap/rest2ldap.json are located.
|
protected org.forgerock.opendj.ldap.schema.Schema |
schema
Schema used to perform DN validations.
|
| Constructor and Description |
|---|
Rest2LdapHttpApplication()
Default constructor called by the HTTP Framework which will use the default configuration directory.
|
Rest2LdapHttpApplication(File configDirectory,
org.forgerock.opendj.ldap.schema.Schema schema)
Creates a new Rest2LDAP HTTP application using the provided configuration directory.
|
| Modifier and Type | Method and Description |
|---|---|
org.forgerock.util.Factory<org.forgerock.http.io.Buffer> |
getBufferFactory() |
protected org.forgerock.opendj.ldap.ConnectionFactory |
getConnectionFactory(String name)
Gets a
ConnectionFactory from its name. |
protected ConditionalFilters.ConditionalFilter |
newAnonymousFilter(org.forgerock.opendj.ldap.ConnectionFactory connectionFactory)
Creates a new
Filter in charge of injecting AuthenticatedConnectionContext directly from a
ConnectionFactory. |
protected ConditionalFilters.ConditionalFilter |
newBasicAuthenticationFilter(AuthenticationStrategy authenticationStrategy,
org.forgerock.util.Function<org.forgerock.http.protocol.Headers,org.forgerock.util.Pair<String,String>,org.forgerock.util.promise.NeverThrowsException> credentialsExtractor)
Gets a
Filter in charge of performing the HTTP-Basic Authentication. |
protected org.forgerock.http.Filter |
newProxyAuthzFilter(org.forgerock.opendj.ldap.ConnectionFactory connectionFactory)
Creates a new
Filter in charge of injecting AuthenticatedConnectionContext. |
org.forgerock.http.Handler |
start() |
void |
stop() |
protected final File configDirectory
protected final org.forgerock.opendj.ldap.schema.Schema schema
public Rest2LdapHttpApplication()
public Rest2LdapHttpApplication(File configDirectory, org.forgerock.opendj.ldap.schema.Schema schema)
configDirectory - The name of the JSON configuration directory in which config.json and rest2ldap/rest2ldap.json are
located.schema - The Schema used to perform DN validationspublic final org.forgerock.http.Handler start()
throws org.forgerock.http.HttpApplicationException
start in interface org.forgerock.http.HttpApplicationorg.forgerock.http.HttpApplicationExceptionpublic org.forgerock.util.Factory<org.forgerock.http.io.Buffer> getBufferFactory()
getBufferFactory in interface org.forgerock.http.HttpApplicationpublic void stop()
stop in interface org.forgerock.http.HttpApplicationprotected org.forgerock.http.Filter newProxyAuthzFilter(org.forgerock.opendj.ldap.ConnectionFactory connectionFactory)
Filter in charge of injecting AuthenticatedConnectionContext.connectionFactory - The ConnectionFactory providing the Connection injected as
AuthenticatedConnectionContextFilterprotected ConditionalFilters.ConditionalFilter newAnonymousFilter(org.forgerock.opendj.ldap.ConnectionFactory connectionFactory)
Filter in charge of injecting AuthenticatedConnectionContext directly from a
ConnectionFactory.connectionFactory - The ConnectionFactory used to get the ConnectionFilterprotected org.forgerock.opendj.ldap.ConnectionFactory getConnectionFactory(String name)
ConnectionFactory from its name.name - Name of the ConnectionFactory as specified in the configurationConnectionFactory or null if none can be foundprotected ConditionalFilters.ConditionalFilter newBasicAuthenticationFilter(AuthenticationStrategy authenticationStrategy, org.forgerock.util.Function<org.forgerock.http.protocol.Headers,org.forgerock.util.Pair<String,String>,org.forgerock.util.promise.NeverThrowsException> credentialsExtractor)
Filter in charge of performing the HTTP-Basic Authentication. This filter create a
SecurityContext reflecting the authenticated users.authenticationStrategy - The AuthenticationStrategy to use to authenticate the user.credentialsExtractor - Extract the user's credentials from the Headers.FilterCopyright © 2017-2020 Wren Security. All Rights Reserved.