public class Sha256AuthenticationProvider extends Object implements ConfigEditablePlugin, BasicAuthPlugin.AuthenticationProvider
Constructor and Description |
---|
Sha256AuthenticationProvider() |
Modifier and Type | Method and Description |
---|---|
boolean |
authenticate(String username,
String password) |
Map<String,Object> |
edit(Map<String,Object> latestConf,
List<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 String |
getSaltedHashedValue(String pwd) |
ValidatingJsonMap |
getSpec() |
void |
init(Map<String,Object> pluginConfig) |
static String |
sha256(String password,
String saltKey) |
public void init(Map<String,Object> pluginConfig)
init
in interface BasicAuthPlugin.AuthenticationProvider
public boolean authenticate(String username, String password)
authenticate
in interface BasicAuthPlugin.AuthenticationProvider
public Map<String,String> getPromptHeaders()
getPromptHeaders
in interface BasicAuthPlugin.AuthenticationProvider
public Map<String,Object> edit(Map<String,Object> latestConf, List<CommandOperation> commands)
ConfigEditablePlugin
edit
in interface ConfigEditablePlugin
public ValidatingJsonMap getSpec()
getSpec
in interface SpecProvider
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.