Package org.apache.solr.security.hadoop
Class ConfigurableInternodeAuthHadoopPlugin
- java.lang.Object
-
- org.apache.solr.security.AuthenticationPlugin
-
- org.apache.solr.security.hadoop.HadoopAuthPlugin
-
- org.apache.solr.security.hadoop.ConfigurableInternodeAuthHadoopPlugin
-
- All Implemented Interfaces:
AutoCloseable
,SolrInfoBean
,SolrMetricProducer
,HttpClientBuilderPlugin
public class ConfigurableInternodeAuthHadoopPlugin extends HadoopAuthPlugin implements HttpClientBuilderPlugin
This class extends HadoopAuthPlugin by enabling configuration of authentication mechanism for Solr internal communication.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.solr.core.SolrInfoBean
SolrInfoBean.Category, SolrInfoBean.Group
-
-
Field Summary
-
Fields inherited from class org.apache.solr.security.hadoop.HadoopAuthPlugin
coreContainer, PROXY_USER_CONFIGS
-
Fields inherited from class org.apache.solr.security.AuthenticationPlugin
AUTHENTICATION_PLUGIN_PROP, HTTP_HEADER_X_SOLR_AUTHDATA, numAuthenticated, numErrors, numMissingCredentials, numPassThrough, numWrongCredentials, requests, requestTimes, solrMetricsContext, totalTime
-
-
Constructor Summary
Constructors Constructor Description ConfigurableInternodeAuthHadoopPlugin(CoreContainer coreContainer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
org.apache.solr.client.solrj.impl.SolrHttpClientBuilder
getHttpClientBuilder(org.apache.solr.client.solrj.impl.SolrHttpClientBuilder builder)
void
init(Map<String,Object> pluginConfig)
boolean
interceptInternodeRequest(org.apache.http.HttpRequest httpRequest, org.apache.http.protocol.HttpContext httpContext)
protected boolean
interceptInternodeRequest(org.eclipse.jetty.client.api.Request request)
void
setup(org.apache.solr.client.solrj.impl.Http2SolrClient client)
-
Methods inherited from class org.apache.solr.security.hadoop.HadoopAuthPlugin
doAuthenticate, getInitFilterConfig
-
Methods inherited from class org.apache.solr.security.AuthenticationPlugin
authenticate, closeRequest, getCategory, getDescription, getName, getSolrMetricsContext, initializeMetrics, wrapWithPrincipal, wrapWithPrincipal
-
-
-
-
Constructor Detail
-
ConfigurableInternodeAuthHadoopPlugin
public ConfigurableInternodeAuthHadoopPlugin(CoreContainer coreContainer)
-
-
Method Detail
-
init
public void init(Map<String,Object> pluginConfig)
- Overrides:
init
in classHadoopAuthPlugin
-
setup
public void setup(org.apache.solr.client.solrj.impl.Http2SolrClient client)
- Specified by:
setup
in interfaceHttpClientBuilderPlugin
-
getHttpClientBuilder
public org.apache.solr.client.solrj.impl.SolrHttpClientBuilder getHttpClientBuilder(org.apache.solr.client.solrj.impl.SolrHttpClientBuilder builder)
- Specified by:
getHttpClientBuilder
in interfaceHttpClientBuilderPlugin
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceSolrMetricProducer
- Overrides:
close
in classHadoopAuthPlugin
- Throws:
IOException
-
interceptInternodeRequest
public boolean interceptInternodeRequest(org.apache.http.HttpRequest httpRequest, org.apache.http.protocol.HttpContext httpContext)
- Overrides:
interceptInternodeRequest
in classAuthenticationPlugin
-
interceptInternodeRequest
protected boolean interceptInternodeRequest(org.eclipse.jetty.client.api.Request request)
- Overrides:
interceptInternodeRequest
in classAuthenticationPlugin
-
-