Class MultiMechsAuthenticationHandler
java.lang.Object
com.mapr.web.security.hadoop.jakartaauth.MultiMechsAuthenticationHandler
- All Implemented Interfaces:
AuthenticationHandler
- Direct Known Subclasses:
AbstractMaprAuthenticationHandler,BasicAuthHandler,JWTAuthHandler,JWTRedirectAuthenticationHandler,KerberosAuthHandler
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from interface com.mapr.web.security.hadoop.jakartaauth.AuthenticationHandler
WWW_AUTHENTICATE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddHeader(jakarta.servlet.http.HttpServletResponse response) authenticate(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) voiddestroy()protected MultiMechsAuthenticationHandlergetAuthBasedEntity(String authorization) getType()voidinit(Properties config) booleanmanagementOperation(AuthenticationToken token, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) protected AuthenticationTokenpostauthenticate(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)
-
Field Details
-
MTYPE
- See Also:
-
-
Constructor Details
-
MultiMechsAuthenticationHandler
public MultiMechsAuthenticationHandler()
-
-
Method Details
-
init
- Specified by:
initin interfaceAuthenticationHandler- Throws:
jakarta.servlet.ServletException
-
authenticate
public AuthenticationToken authenticate(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws IOException, AuthenticationException - Specified by:
authenticatein interfaceAuthenticationHandler- Throws:
IOExceptionAuthenticationException
-
addHeader
protected void addHeader(jakarta.servlet.http.HttpServletResponse response) -
postauthenticate
protected AuthenticationToken postauthenticate(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws IOException, AuthenticationException - Throws:
IOExceptionAuthenticationException
-
destroy
public void destroy()- Specified by:
destroyin interfaceAuthenticationHandler
-
getAuthBasedEntity
-
getType
- Specified by:
getTypein interfaceAuthenticationHandler
-
getAuthorizationHeaderName
-
managementOperation
public boolean managementOperation(AuthenticationToken token, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws IOException, AuthenticationException - Specified by:
managementOperationin interfaceAuthenticationHandler- Throws:
IOExceptionAuthenticationException
-