AuthenticationHandlerpublic abstract class AbstractMaprAuthenticationHandler extends MultiMechsAuthenticationHandler
MultiMechsAuthenticationHandler.AuthHandlerEnum| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
TYPE |
Authentication type will be embedded in the authentication token
|
MTYPEWWW_AUTHENTICATE| Constructor | Description |
|---|---|
AbstractMaprAuthenticationHandler() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
addHeader(javax.servlet.http.HttpServletResponse response) |
Children must override this method with supplying corresponding header
|
void |
destroy() |
Destroys the authentication handler instance.
|
MultiMechsAuthenticationHandler |
getAuthBasedEntity(java.lang.String authorization) |
Children must override this method to essentially return "this" based on the request header
or null if request header is not suitable to a given auth mechanism
|
abstract void |
init(java.util.Properties config) |
This function is invoked when the filter is coming up.
|
abstract AuthenticationToken |
maprAuthenticate(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
|
AuthenticationToken |
postauthenticate(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
Children must override this method to perform real authentication based on the information received
in the request header
|
authenticate, getType, managementOperationpublic static final java.lang.String TYPE
public abstract void init(java.util.Properties config)
throws javax.servlet.ServletException
Also since we may be required to authenticate using Kerberos we invoke the kerberos init code after checking if the principal and keytab specified in the config file exist. If they don't exist we don't invoke the kerberos init code because we don't expect to use kerberos.
init in interface AuthenticationHandlerinit in class MultiMechsAuthenticationHandlerconfig - configuration properties to initialize the handler.javax.servlet.ServletExceptionpublic abstract AuthenticationToken maprAuthenticate(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, AuthenticationException
java.io.IOExceptionAuthenticationExceptionpublic void destroy()
AuthenticationHandler
This method is invoked by the AuthenticationFilter.destroy() method.
destroy in interface AuthenticationHandlerdestroy in class MultiMechsAuthenticationHandlerpublic AuthenticationToken postauthenticate(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, AuthenticationException
MultiMechsAuthenticationHandlerpostauthenticate in class MultiMechsAuthenticationHandlerjava.io.IOExceptionAuthenticationExceptionpublic void addHeader(javax.servlet.http.HttpServletResponse response)
MultiMechsAuthenticationHandleraddHeader in class MultiMechsAuthenticationHandlerpublic MultiMechsAuthenticationHandler getAuthBasedEntity(java.lang.String authorization)
MultiMechsAuthenticationHandlergetAuthBasedEntity in class MultiMechsAuthenticationHandlerCopyright © 2008–2025 Apache Software Foundation. All rights reserved.