|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.hadoop.security.authentication.server.MultiMechsAuthenticationHandler
org.apache.hadoop.security.authentication.server.KerberosAuthHandler
public class KerberosAuthHandler
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.apache.hadoop.security.authentication.server.MultiMechsAuthenticationHandler |
|---|
MultiMechsAuthenticationHandler.AuthHandlerEnum |
| Field Summary | |
|---|---|
protected GSSManager |
gssManager
|
protected String |
keytab
|
protected LoginContext |
loginContext
|
protected String |
principal
|
| Constructor Summary | |
|---|---|
KerberosAuthHandler()
|
|
| Method Summary | |
|---|---|
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(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 |
protected String |
getKeytab()
Returns the keytab used by the authentication handler. |
protected String |
getPrincipal()
Returns the Kerberos principal used by the authentication handler. |
void |
init(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 |
| Methods inherited from class org.apache.hadoop.security.authentication.server.MultiMechsAuthenticationHandler |
|---|
authenticate, getType, managementOperation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected GSSManager gssManager
protected LoginContext loginContext
protected String principal
protected String keytab
| Constructor Detail |
|---|
public KerberosAuthHandler()
| Method Detail |
|---|
public void init(Properties config)
throws javax.servlet.ServletException
AuthenticationHandlerAuthenticationFilter.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 IOException,
AuthenticationException
MultiMechsAuthenticationHandler
postauthenticate in class MultiMechsAuthenticationHandlerIOException
AuthenticationExceptionpublic void destroy()
AuthenticationHandlerAuthenticationFilter.destroy() method.
destroy in interface AuthenticationHandlerdestroy in class MultiMechsAuthenticationHandlerpublic void addHeader(javax.servlet.http.HttpServletResponse response)
MultiMechsAuthenticationHandler
addHeader in class MultiMechsAuthenticationHandlerpublic MultiMechsAuthenticationHandler getAuthBasedEntity(String authorization)
MultiMechsAuthenticationHandler
getAuthBasedEntity in class MultiMechsAuthenticationHandlerprotected String getPrincipal()
protected String getKeytab()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||