AuthenticationHandlerpublic class KerberosAuthHandler extends MultiMechsAuthenticationHandler
MultiMechsAuthenticationHandler.AuthHandlerEnum| Modifier and Type | Field | Description |
|---|---|---|
protected org.ietf.jgss.GSSManager |
gssManager |
|
protected java.lang.String |
keytab |
|
protected javax.security.auth.login.LoginContext |
loginContext |
|
protected java.lang.String |
principal |
MTYPEWWW_AUTHENTICATE| Constructor | Description |
|---|---|
KerberosAuthHandler() |
| 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
|
java.lang.String |
getAuthorizationHeaderName() |
|
protected java.lang.String |
getKeytab() |
Returns the keytab used by the authentication handler.
|
protected java.lang.String |
getPrincipal() |
Returns the Kerberos principal used by the authentication handler.
|
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, getType, managementOperationprotected org.ietf.jgss.GSSManager gssManager
protected javax.security.auth.login.LoginContext loginContext
protected java.lang.String principal
protected java.lang.String keytab
public 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 destroy()
AuthenticationHandler
This method is invoked by the AuthenticationFilter.destroy() method.
destroy in interface AuthenticationHandlerdestroy in class MultiMechsAuthenticationHandlerpublic void addHeader(javax.servlet.http.HttpServletResponse response)
MultiMechsAuthenticationHandleraddHeader in class MultiMechsAuthenticationHandlerpublic MultiMechsAuthenticationHandler getAuthBasedEntity(java.lang.String authorization)
MultiMechsAuthenticationHandlergetAuthBasedEntity in class MultiMechsAuthenticationHandlerprotected java.lang.String getPrincipal()
protected java.lang.String getKeytab()
public java.lang.String getAuthorizationHeaderName()
getAuthorizationHeaderName in class MultiMechsAuthenticationHandlerCopyright © 2008–2025 Apache Software Foundation. All rights reserved.