public class SpnegoAuthenticator extends HttpHandshakeAuthenticator
ATTRIBUTE_STATE, STATE_AUTHENTICATED, STATE_FAILED, STATE_NONE, STATE_REQUESTED
Constructor and Description |
---|
SpnegoAuthenticator() |
Modifier and Type | Method and Description |
---|---|
protected String |
doAuthentication(HttpServletRequest request,
HttpServletResponse response)
Perform the user authentication for the given request.
|
protected String |
getLoginModuleName()
Returns the login module name to use for SPNEGO authentication.
|
protected void |
requestAuthentication(HttpServletRequest request,
HttpServletResponse response)
Request authentication from the browser.
|
authenticate, getAuthenticationState, setAuthenticationState, shouldTryToAuthenticateOnlyOncePerSession
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
protected String doAuthentication(HttpServletRequest request, HttpServletResponse response) throws PortalException, ContinueOnNextRequestException
HttpHandshakeAuthenticator
This method is called by HttpHandshakeAuthenticator.authenticate(HttpServletRequest, HttpServletResponse)
when the current state is HttpHandshakeAuthenticator.STATE_REQUESTED
. So this method
implements the 'continuation' of the authentication,
after it already began.
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 String getLoginModuleName()
LumisXP 12.5.0.200928 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.