public class NtlmProcessingFilterEntryPoint extends java.lang.Object implements AuthenticationEntryPoint
ExceptionTranslationFilter to assist with the NTLM
negotiation. Also handles redirecting the user to the authentication
failure URL if an AuthenticationException that is not a subclass of
NtlmBaseException is received.| Constructor and Description |
|---|
NtlmProcessingFilterEntryPoint() |
| Modifier and Type | Method and Description |
|---|---|
void |
commence(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
AuthenticationException authException)
Sends an NTLM challenge to the browser requiring authentication.
|
void |
setAuthenticationFailureUrl(java.lang.String authenticationFailureUrl)
Sets the authentication failure URL.
|
public void setAuthenticationFailureUrl(java.lang.String authenticationFailureUrl)
authenticationFailureUrl - the authentication failure URL.public void commence(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
AuthenticationException authException)
throws java.io.IOException,
javax.servlet.ServletException
NtlmBaseException:
NtlmBeginHandshakeException: NTLM
NtlmType2MessageException: NTLM <base64-encoded type-2-message>
AuthenticationException is not a subclass of
NtlmBaseException, then redirect the user to the authentication
failure URL.commence in interface AuthenticationEntryPointrequest - The HttpServletRequest object.response - Then HttpServletResponse object.authException - Either NtlmBeginHandshakeException,
NtlmType2MessageException, or
AuthenticationExceptionjava.io.IOExceptionjavax.servlet.ServletException