public class PKIAuthenticationPlugin extends AuthenticationPlugin implements HttpClientInterceptorPlugin
| Modifier and Type | Class and Description |
|---|---|
static class |
PKIAuthenticationPlugin.PKIHeaderData |
| Modifier and Type | Field and Description |
|---|---|
static String |
HEADER |
static String |
NODE_IS_USER |
static String |
PATH |
AUTHENTICATION_PLUGIN_PROP| Constructor and Description |
|---|
PKIAuthenticationPlugin(CoreContainer cores,
String nodeName) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
doAuthenticate(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain filterChain)
This method must authenticate the request.
|
HttpClientConfigurer |
getClientConfigurer() |
String |
getPublicKey() |
SolrRequestHandler |
getRequestHandler() |
void |
init(Map<String,Object> pluginConfig)
This is called upon loading up of a plugin, used for setting it up.
|
boolean |
isInterceptorRegistered() |
boolean |
needsAuthorization(javax.servlet.http.HttpServletRequest req) |
void |
setInterceptorRegistered() |
closeRequest, forwardpublic static final String HEADER
public static final String PATH
public static final String NODE_IS_USER
public PKIAuthenticationPlugin(CoreContainer cores, String nodeName)
public void setInterceptorRegistered()
public boolean isInterceptorRegistered()
public void init(Map<String,Object> pluginConfig)
AuthenticationPlugininit in class AuthenticationPluginpluginConfig - Config parameters, possibly from a ZK sourcepublic void 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.
PriviledgedAccessExceptionpublic HttpClientConfigurer getClientConfigurer()
getClientConfigurer in interface HttpClientInterceptorPluginpublic SolrRequestHandler getRequestHandler()
public boolean needsAuthorization(javax.servlet.http.HttpServletRequest req)
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionpublic String getPublicKey()
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.