Search in sources :

Example 6 with AuthenticationHandler

use of org.apache.hadoop.security.authentication.server.AuthenticationHandler in project lucene-solr by apache.

the class DelegationTokenKerberosFilter method initializeAuthHandler.

@Override
protected void initializeAuthHandler(String authHandlerClassName, FilterConfig filterConfig) throws ServletException {
    // set the internal authentication handler in order to record whether the request should continue
    super.initializeAuthHandler(authHandlerClassName, filterConfig);
    AuthenticationHandler authHandler = getAuthenticationHandler();
    super.initializeAuthHandler(RequestContinuesRecorderAuthenticationHandler.class.getName(), filterConfig);
    RequestContinuesRecorderAuthenticationHandler newAuthHandler = (RequestContinuesRecorderAuthenticationHandler) getAuthenticationHandler();
    newAuthHandler.setAuthHandler(authHandler);
}
Also used : AuthenticationHandler(org.apache.hadoop.security.authentication.server.AuthenticationHandler)

Aggregations

AuthenticationHandler (org.apache.hadoop.security.authentication.server.AuthenticationHandler)6 KerberosAuthenticationHandler (org.apache.hadoop.security.authentication.server.KerberosAuthenticationHandler)3 AuthenticationException (org.apache.hadoop.security.authentication.client.AuthenticationException)2 AuthenticationToken (org.apache.hadoop.security.authentication.server.AuthenticationToken)2 AbstractAuthenticationToken (org.springframework.security.authentication.AbstractAuthenticationToken)2 UsernamePasswordAuthenticationToken (org.springframework.security.authentication.UsernamePasswordAuthenticationToken)2 Principal (java.security.Principal)1 Cookie (javax.servlet.http.Cookie)1 HttpServletRequest (javax.servlet.http.HttpServletRequest)1 HttpServletRequestWrapper (javax.servlet.http.HttpServletRequestWrapper)1 HttpServletResponse (javax.servlet.http.HttpServletResponse)1 Configuration (org.apache.hadoop.conf.Configuration)1 MultiSchemeAuthenticationHandler (org.apache.hadoop.security.authentication.server.MultiSchemeAuthenticationHandler)1 PseudoAuthenticationHandler (org.apache.hadoop.security.authentication.server.PseudoAuthenticationHandler)1 SignerException (org.apache.hadoop.security.authentication.util.SignerException)1 AbstractDelegationTokenSecretManager (org.apache.hadoop.security.token.delegation.AbstractDelegationTokenSecretManager)1