Package org.apache.solr.handler.admin
Class SecurityConfHandlerZk
java.lang.Object
org.apache.solr.handler.RequestHandlerBase
org.apache.solr.handler.admin.SecurityConfHandler
org.apache.solr.handler.admin.SecurityConfHandlerZk
- All Implemented Interfaces:
AutoCloseable,ApiSupport,SolrInfoBean,NestedRequestHandler,SolrMetricProducer,SolrRequestHandler,PermissionNameProvider
Security Configuration Handler which works with Zookeeper
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.solr.handler.admin.SecurityConfHandler
SecurityConfHandler.SecurityConfigNested classes/interfaces inherited from class org.apache.solr.handler.RequestHandlerBase
RequestHandlerBase.HandlerMetricsNested classes/interfaces inherited from interface org.apache.solr.security.PermissionNameProvider
PermissionNameProvider.NameNested classes/interfaces inherited from interface org.apache.solr.core.SolrInfoBean
SolrInfoBean.Category, SolrInfoBean.Group -
Field Summary
Fields inherited from class org.apache.solr.handler.admin.SecurityConfHandler
coresFields inherited from class org.apache.solr.handler.RequestHandlerBase
aggregateNodeLevelMetricsEnabled, appends, defaults, httpCaching, initArgs, invariants, metrics, publishCpuTime, REQUEST_CPU_TIMER_CONTEXT, solrMetricsContext, SOURCE_ATTRFields inherited from interface org.apache.solr.security.PermissionNameProvider
ANY, NULL, valuesFields inherited from interface org.apache.solr.metrics.SolrMetricProducer
CATEGORY_ATTR, HANDLER_ATTR, NAME_ATTR, OPERATION_ATTR, PLUGIN_NAME_ATTR, RESULT_ATTR, TYPE_ATTRFields inherited from interface org.apache.solr.request.SolrRequestHandler
TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidgetConf(SolrQueryResponse rsp, String key) Simple one or two line descriptiongetSecurityConfig(boolean getFresh) Fetches security props from Zookeeper and adds versionprotected booleanpersistConf(SecurityConfHandler.SecurityConfig securityConfig) Persist security.json to the source, optionally with a versionMethods inherited from class org.apache.solr.handler.admin.SecurityConfHandler
getApis, getCategory, getListValue, getMapValue, getPermissionName, handleRequestBody, registerV2, securityConfEditedMethods inherited from class org.apache.solr.handler.RequestHandlerBase
getInitArgs, getMetricsForThisRequest, getName, getPluginInfo, getRequestHandler, getSolrMetricsContext, getSolrParamsFromNamedList, getSubHandler, handleRequest, init, initializeMetrics, isInternalShardRequest, processErrorMetricsOnException, processReceivedException, setPluginInfoMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.solr.api.ApiSupport
getJerseyResources, registerV1Methods inherited from interface org.apache.solr.metrics.SolrMetricProducer
close
-
Constructor Details
-
SecurityConfHandlerZk
-
-
Method Details
-
getSecurityConfig
Fetches security props from Zookeeper and adds version- Specified by:
getSecurityConfigin classSecurityConfHandler- Parameters:
getFresh- refresh from ZK- Returns:
- SecurityConfig whose data property either contains security.json, or an empty map if not found
-
getConf
- Specified by:
getConfin classSecurityConfHandler
-
persistConf
Description copied from class:SecurityConfHandlerPersist security.json to the source, optionally with a version- Specified by:
persistConfin classSecurityConfHandler- Throws:
IOException
-
getDescription
Description copied from interface:SolrInfoBeanSimple one or two line description- Specified by:
getDescriptionin interfaceSolrInfoBean- Overrides:
getDescriptionin classSecurityConfHandler
-