jcifs.http
public class NtlmHttpFilter extends Object implements Filter
Read jCIFS NTLM HTTP Authentication and the Network Explorer Servlet for complete details.
Method Summary | |
---|---|
void | destroy() |
void | doFilter(ServletRequest request, ServletResponse response, FilterChain chain)
This method simply calls negotiate( req, resp, false )
and then chain.doFilter. |
FilterConfig | getFilterConfig() |
void | init(FilterConfig filterConfig) |
protected NtlmPasswordAuthentication | negotiate(HttpServletRequest req, HttpServletResponse resp, boolean skipAuthentication)
Negotiate password hashes with MSIE clients using NTLM SSP |
void | setFilterConfig(FilterConfig f) |
Parameters: req The servlet request resp The servlet response skipAuthentication 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).
Returns: True if the negotiation is complete, otherwise false