Package org.apache.solr.handler.admin
Class SecurityConfHandlerLocal
java.lang.Object
org.apache.solr.handler.RequestHandlerBase
org.apache.solr.handler.admin.SecurityConfHandler
org.apache.solr.handler.admin.SecurityConfHandlerLocal
- All Implemented Interfaces:
AutoCloseable,ApiSupport,SolrInfoBean,NestedRequestHandler,SolrMetricProducer,SolrRequestHandler,PermissionNameProvider
Security Configuration Handler which works on standalone local files
-
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
FieldsFields 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 SOLR_HOMEprotected booleanpersistConf(SecurityConfHandler.SecurityConfig securityConfig) Persist security.json to the source, optionally with a versionprotected voidHook where you can do stuff after a config has been edited.Methods inherited from class org.apache.solr.handler.admin.SecurityConfHandler
getApis, getCategory, getListValue, getMapValue, getPermissionName, handleRequestBody, registerV2Methods 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
-
Field Details
-
securityJsonPath
-
-
Constructor Details
-
SecurityConfHandlerLocal
-
-
Method Details
-
getSecurityConfig
Fetches security props from SOLR_HOME- Specified by:
getSecurityConfigin classSecurityConfHandler- Parameters:
getFresh- NOP- 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
-
securityConfEdited
protected void securityConfEdited()Description copied from class:SecurityConfHandlerHook where you can do stuff after a config has been edited. Defaults to NOP- Overrides:
securityConfEditedin classSecurityConfHandler
-