Package org.apache.solr.security
Class Sha256AuthenticationProvider
java.lang.Object
org.apache.solr.security.Sha256AuthenticationProvider
- All Implemented Interfaces:
org.apache.solr.common.SpecProvider,BasicAuthPlugin.AuthenticationProvider,ConfigEditablePlugin
public class Sha256AuthenticationProvider
extends Object
implements ConfigEditablePlugin, BasicAuthPlugin.AuthenticationProvider
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanauthenticate(String username, String password) Operate the commands on the latest conf and return a new conf object If there are errors in the commands , throw a SolrException.static Stringorg.apache.solr.common.util.ValidatingJsonMapgetSpec()voidstatic String
-
Constructor Details
-
Sha256AuthenticationProvider
public Sha256AuthenticationProvider()
-
-
Method Details
-
getSaltedHashedValue
-
init
- Specified by:
initin interfaceBasicAuthPlugin.AuthenticationProvider
-
authenticate
- Specified by:
authenticatein interfaceBasicAuthPlugin.AuthenticationProvider
-
getPromptHeaders
- Specified by:
getPromptHeadersin interfaceBasicAuthPlugin.AuthenticationProvider
-
sha256
-
edit
public Map<String,Object> edit(Map<String, Object> latestConf, List<org.apache.solr.common.util.CommandOperation> commands) Description copied from interface:ConfigEditablePluginOperate the commands on the latest conf and return a new conf object If there are errors in the commands , throw a SolrException. return a null if no changes are to be made as a result of this edit. It is the responsibility of the implementation to ensure that the returned config is valid . The framework does no validation of the data- Specified by:
editin interfaceConfigEditablePlugin
-
getSpec
public org.apache.solr.common.util.ValidatingJsonMap getSpec()- Specified by:
getSpecin interfaceorg.apache.solr.common.SpecProvider
-