public class BasicAuthPlugin extends AuthenticationPlugin implements ConfigEditablePlugin
| Modifier and Type | Class and Description | 
|---|---|
static interface  | 
BasicAuthPlugin.AuthenticationProvider  | 
| Modifier and Type | Field and Description | 
|---|---|
static String | 
BLOCK_UNKNOWN  | 
AUTHENTICATION_PLUGIN_PROP| Constructor and Description | 
|---|
BasicAuthPlugin()  | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
authenticate(String username,
            String pwd)  | 
void | 
close()  | 
void | 
closeRequest()
Cleanup any per request  data 
 | 
void | 
doAuthenticate(javax.servlet.ServletRequest servletRequest,
              javax.servlet.ServletResponse servletResponse,
              javax.servlet.FilterChain filterChain)
This method must authenticate the request. 
 | 
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. 
 | 
protected BasicAuthPlugin.AuthenticationProvider | 
getAuthenticationProvider(Map<String,Object> pluginConfig)  | 
boolean | 
getBlockUnknown()  | 
void | 
init(Map<String,Object> pluginConfig)
This is called upon loading up of a plugin, used for setting it up. 
 | 
forwardpublic static final String BLOCK_UNKNOWN
public void init(Map<String,Object> pluginConfig)
AuthenticationPlugininit in class AuthenticationPluginpluginConfig - Config parameters, possibly from a ZK sourcepublic Map<String,Object> edit(Map<String,Object> latestConf, List<CommandOperation> commands)
ConfigEditablePluginedit in interface ConfigEditablePluginprotected BasicAuthPlugin.AuthenticationProvider getAuthenticationProvider(Map<String,Object> pluginConfig)
public void doAuthenticate(javax.servlet.ServletRequest servletRequest,
                  javax.servlet.ServletResponse servletResponse,
                  javax.servlet.FilterChain filterChain)
                    throws Exception
AuthenticationPlugindoAuthenticate in class AuthenticationPluginservletRequest - the http requestservletResponse - the http responsefilterChain - the servlet filter chainException - any exception thrown during the authentication, e.g. 
 PriviledgedAccessExceptionpublic void close()
           throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic void closeRequest()
AuthenticationPlugincloseRequest in class AuthenticationPluginpublic boolean getBlockUnknown()
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.