Package org.apache.solr.security
Class ConfigurableInternodeAuthHadoopPlugin
- java.lang.Object
-
- org.apache.solr.security.AuthenticationPlugin
-
- org.apache.solr.security.HadoopAuthPlugin
-
- org.apache.solr.security.ConfigurableInternodeAuthHadoopPlugin
-
- All Implemented Interfaces:
Closeable
,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.HadoopAuthPlugin
coreContainer, PROXY_USER_CONFIGS
-
Fields inherited from class org.apache.solr.security.AuthenticationPlugin
AUTHENTICATION_PLUGIN_PROP, HTTP_HEADER_X_SOLR_AUTHDATA, metricManager, numAuthenticated, numErrors, numMissingCredentials, numPassThrough, numWrongCredentials, registryName, requests, requestTimes, totalTime
-
-
Constructor Summary
Constructors Constructor Description ConfigurableInternodeAuthHadoopPlugin(CoreContainer coreContainer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
SolrHttpClientBuilder
getHttpClientBuilder(SolrHttpClientBuilder builder)
void
init(Map<String,Object> pluginConfig)
This is called upon loading up of a plugin, used for setting it up.void
setup(Http2SolrClient client)
-
Methods inherited from class org.apache.solr.security.HadoopAuthPlugin
doAuthenticate, getInitFilterConfig
-
Methods inherited from class org.apache.solr.security.AuthenticationPlugin
authenticate, closeRequest, getCategory, getDescription, getMetricNames, getMetricRegistry, getName, initializeMetrics, interceptInternodeRequest, interceptInternodeRequest
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.solr.core.SolrInfoBean
getMetricsSnapshot, registerMetricName
-
-
-
-
Constructor Detail
-
ConfigurableInternodeAuthHadoopPlugin
public ConfigurableInternodeAuthHadoopPlugin(CoreContainer coreContainer)
-
-
Method Detail
-
init
public void init(Map<String,Object> pluginConfig)
Description copied from class:AuthenticationPlugin
This is called upon loading up of a plugin, used for setting it up.- Overrides:
init
in classHadoopAuthPlugin
- Parameters:
pluginConfig
- Config parameters, possibly from a ZK source
-
setup
public void setup(Http2SolrClient client)
- Specified by:
setup
in interfaceHttpClientBuilderPlugin
-
getHttpClientBuilder
public SolrHttpClientBuilder getHttpClientBuilder(SolrHttpClientBuilder builder)
- Specified by:
getHttpClientBuilder
in interfaceHttpClientBuilderPlugin
- Returns:
- Returns an instance of a SolrHttpClientBuilder to be used for configuring the HttpClients for use with SolrJ clients.
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classHadoopAuthPlugin
- Throws:
IOException
-
-