public class HadoopAuthPlugin extends AuthenticationPlugin
| Modifier and Type | Field and Description |
|---|---|
protected CoreContainer |
coreContainer |
static String |
PROXY_USER_CONFIGS
A property which configures proxy users for the underlying Hadoop authentication mechanism.
|
AUTHENTICATION_PLUGIN_PROP| Constructor and Description |
|---|
HadoopAuthPlugin(CoreContainer coreContainer) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
boolean |
doAuthenticate(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain filterChain)
This method attempts to authenticate the request.
|
protected javax.servlet.FilterConfig |
getInitFilterConfig(Map<String,Object> pluginConfig) |
void |
init(Map<String,Object> pluginConfig)
This is called upon loading up of a plugin, used for setting it up.
|
closeRequestpublic static final String PROXY_USER_CONFIGS
protected final CoreContainer coreContainer
public HadoopAuthPlugin(CoreContainer coreContainer)
public void init(Map<String,Object> pluginConfig)
AuthenticationPlugininit in class AuthenticationPluginpluginConfig - Config parameters, possibly from a ZK sourceprotected javax.servlet.FilterConfig getInitFilterConfig(Map<String,Object> pluginConfig)
public boolean doAuthenticate(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain filterChain)
throws Exception
AuthenticationPlugindoAuthenticate in class AuthenticationPluginrequest - the http requestresponse - the http responsefilterChain - the servlet filter chainException - any exception thrown during the authentication, e.g. PrivilegedActionExceptionpublic void close()
throws IOException
IOExceptionCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.