AuthenticationHandlerpublic class BasicAuthHandler extends MultiMechsAuthenticationHandler
MultiMechsAuthenticationHandler.AuthHandlerEnumMTYPEWWW_AUTHENTICATE| Constructor | Description |
|---|---|
BasicAuthHandler() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
addHeader(javax.servlet.http.HttpServletResponse response) |
Children must override this method with supplying corresponding header
|
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
|
void |
init(java.util.Properties config) |
Initializes the authentication handler instance.
|
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, destroy, getType, managementOperationpublic void init(java.util.Properties config)
throws javax.servlet.ServletException
AuthenticationHandler
This method is invoked by the AuthenticationFilter.init(javax.servlet.FilterConfig) method.
init in interface AuthenticationHandlerinit in class MultiMechsAuthenticationHandlerconfig - configuration properties to initialize the handler.javax.servlet.ServletException - thrown if the handler could not be initialized.public 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.