public class NtlmHttpFilter
extends java.lang.Object
implements javax.servlet.Filter
Read jCIFS NTLM HTTP Authentication and the Network Explorer Servlet for complete details.
Constructor and Description |
---|
NtlmHttpFilter() |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
This method simply calls negotiate( req, resp, false )
and then chain.doFilter.
|
javax.servlet.FilterConfig |
getFilterConfig() |
void |
init(javax.servlet.FilterConfig filterConfig) |
protected NtlmPasswordAuthentication |
negotiate(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse resp,
boolean skipAuthentication)
Negotiate password hashes with MSIE clients using NTLM SSP
|
void |
setFilterConfig(javax.servlet.FilterConfig f) |
public void init(javax.servlet.FilterConfig filterConfig) throws javax.servlet.ServletException
init
in interface javax.servlet.Filter
javax.servlet.ServletException
public void destroy()
destroy
in interface javax.servlet.Filter
public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain) throws java.io.IOException, javax.servlet.ServletException
doFilter
in interface javax.servlet.Filter
java.io.IOException
javax.servlet.ServletException
protected NtlmPasswordAuthentication negotiate(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, boolean skipAuthentication) throws java.io.IOException, javax.servlet.ServletException
req
- The servlet requestresp
- The servlet responseskipAuthentication
- If true the negotiation is only done if it is
initiated by the client (MSIE post requests after successful NTLM SSP
authentication). If false and the user has not been authenticated yet
the client will be forced to send an authentication (server sends
HttpServletResponse.SC_UNAUTHORIZED).java.io.IOException
javax.servlet.ServletException
public void setFilterConfig(javax.servlet.FilterConfig f)
public javax.servlet.FilterConfig getFilterConfig()