Class AuthenticationPlugin

    • Constructor Detail

      • AuthenticationPlugin

        public AuthenticationPlugin()
    • Method Detail

      • init

        public abstract void init​(Map<String,​Object> pluginConfig)
        This is called upon loading up of a plugin, used for setting it up.
        pluginConfig - Config parameters, possibly from a ZK source
      • doAuthenticate

        public abstract boolean doAuthenticate​(javax.servlet.ServletRequest request,
                                               javax.servlet.ServletResponse response,
                                               javax.servlet.FilterChain filterChain)
                                        throws Exception
        This method attempts to authenticate the request. Upon a successful authentication, this must call the next filter in the filter chain and set the user principal of the request, or else, upon an error or an authentication failure, throw an exception.
        request - the http request
        response - the http response
        filterChain - the servlet filter chain
        false if the request not be processed by Solr (not continue), i.e. the response and status code have already been sent.
        Exception - any exception thrown during the authentication, e.g. PrivilegedActionException
      • closeRequest

        public void closeRequest()
        Cleanup any per request data