public class NtlmAuthenticator extends HttpHandshakeAuthenticator
To use this authenticator, configure the portal to use this class as its
IHttpAuthenticator
implementation, and configure the NtlmFilter
in the web application.
lumis.portal.authentication.http
,
NtlmFilter
ATTRIBUTE_STATE, STATE_AUTHENTICATED, STATE_FAILED, STATE_NONE, STATE_REQUESTED
Constructor and Description |
---|
NtlmAuthenticator() |
Modifier and Type | Method and Description |
---|---|
protected String |
doAuthentication(HttpServletRequest request,
HttpServletResponse response)
Do the authentication using the NTLM negotiation result.
|
protected String |
getAuthenticatedLoginUserId(String login)
Returns the userId for the authenticated login.
|
protected void |
requestAuthentication(HttpServletRequest request,
HttpServletResponse response)
Request authentication from the browser.
|
authenticate, getAuthenticationState, setAuthenticationState, shouldTryToAuthenticateOnlyOncePerSession
protected String getAuthenticatedLoginUserId(String login) throws PortalException
login
- the login.PortalException
protected String doAuthentication(HttpServletRequest request, HttpServletResponse response) throws PortalException, ContinueOnNextRequestException
getAuthenticatedLoginUserId(String)
method.doAuthentication
in class HttpHandshakeAuthenticator
request
- the http request.response
- the http response.PortalException
ContinueOnNextRequestException
- if the authentication is not
complete and will continue on next request. This is useful when more
requests are necessary to complete the authentication.protected void requestAuthentication(HttpServletRequest request, HttpServletResponse response) throws PortalException
HttpHandshakeAuthenticator
This method is called by HttpHandshakeAuthenticator.authenticate(HttpServletRequest, HttpServletResponse)
when an authentication is necessary but it is not in the
HttpHandshakeAuthenticator.STATE_REQUESTED
state. So this method implements the 'beginning'
of the authentication.
requestAuthentication
in class HttpHandshakeAuthenticator
request
- the http request.response
- the http response.PortalException
Lumisportal 10.1.2.170428 - Copyright © 2006–2017 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.