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 SummaryConstructors Constructor Description Sha256AuthenticationProvider()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanauthenticate(String username, String password)Map<String,Object>edit(Map<String,Object> latestConf, List<org.apache.solr.common.util.CommandOperation> commands)Operate the commands on the latest conf and return a new conf object If there are errors in the commands , throw a SolrException.Map<String,String>getPromptHeaders()static StringgetSaltedHashedValue(String pwd)org.apache.solr.common.util.ValidatingJsonMapgetSpec()voidinit(Map<String,Object> pluginConfig)static Stringsha256(String password, String saltKey)
 
- 
- 
- 
Method Detail- 
initpublic void init(Map<String,Object> pluginConfig) - Specified by:
- initin interface- BasicAuthPlugin.AuthenticationProvider
 
 - 
authenticatepublic boolean authenticate(String username, String password) - Specified by:
- authenticatein interface- BasicAuthPlugin.AuthenticationProvider
 
 - 
getPromptHeaderspublic Map<String,String> getPromptHeaders() - Specified by:
- getPromptHeadersin interface- BasicAuthPlugin.AuthenticationProvider
 
 - 
editpublic 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 interface- ConfigEditablePlugin
 
 - 
getSpecpublic org.apache.solr.common.util.ValidatingJsonMap getSpec() - Specified by:
- getSpecin interface- org.apache.solr.common.SpecProvider
 
 
- 
 
-