Class HadoopAuthPlugin
- All Implemented Interfaces:
AutoCloseable,SolrInfoBean,SolrMetricProducer
- Direct Known Subclasses:
ConfigurableInternodeAuthHadoopPlugin
This plugin enables defining configuration parameters required by the underlying Hadoop authentication mechanism. These configuration parameters can either be specified as a Java system property or the default value can be specified as part of the plugin configuration.
The proxy users are configured by specifying relevant Hadoop configuration parameters. Please note that the delegation token support must be enabled for using the proxy users support.
Note - this class does not support configuring authentication mechanism for Solr internal communication. For this purpose ConfigurableInternodeAuthHadoopPlugin should be used. If this plugin is used in the SolrCloud mode, it will use PKI based 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
FieldsModifier and TypeFieldDescriptionprotected final CoreContainerDeprecated.static final StringDeprecated.A property which configures proxy users for the underlying Hadoop authentication mechanism.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 -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Deprecated.booleandoAuthenticate(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain filterChain) Deprecated.protected javax.servlet.FilterConfiggetInitFilterConfig(Map<String, Object> pluginConfig) Deprecated.voidDeprecated.Methods inherited from class org.apache.solr.security.AuthenticationPlugin
authenticate, closeRequest, getCategory, getDescription, getName, getSolrMetricsContext, initializeMetrics, interceptInternodeRequest, interceptInternodeRequest, wrapWithPrincipal, wrapWithPrincipal
-
Field Details
-
PROXY_USER_CONFIGS
Deprecated.A property which configures proxy users for the underlying Hadoop authentication mechanism. This configuration is expressed as a collection of key-value pairs (i.e. property-name : value).- See Also:
-
coreContainer
Deprecated.
-
-
Constructor Details
-
HadoopAuthPlugin
Deprecated.
-
-
Method Details
-
init
Deprecated.- Specified by:
initin classAuthenticationPlugin
-
getInitFilterConfig
Deprecated. -
doAuthenticate
public boolean doAuthenticate(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain filterChain) throws Exception Deprecated.- Specified by:
doAuthenticatein classAuthenticationPlugin- Throws:
Exception
-
close
Deprecated.- Throws:
IOException
-