public interface AuthenticationFeedbackHandler
AuthenticationFeedbackHandler
may be implemented by
AuthenticationHandler
services to request being informed on the
success or failure of authentication.Modifier and Type | Method and Description |
---|---|
void |
authenticationFailed(HttpServletRequest request,
HttpServletResponse response,
AuthenticationInfo authInfo)
Called if authentication failed with the credentials provided in the
authInfo map. |
boolean |
authenticationSucceeded(HttpServletRequest request,
HttpServletResponse response,
AuthenticationInfo authInfo)
Called if authentication succeeded with the credentials provided in the
authInfo map. |
void authenticationFailed(HttpServletRequest request, HttpServletResponse response, AuthenticationInfo authInfo)
authInfo
map.
This method allows the handler to cleanup any state prepared while
handling the
extractCredentials
method. Handlers are expected to not send a in this
method because the Sling Authenticator will proceed to select an
authentication handler whose
requestCredentials
method will be called.
request
- The current requestresponse
- The current responseauthInfo
- The AuthenticationInfo
object used to
authenticate the request.boolean authenticationSucceeded(HttpServletRequest request, HttpServletResponse response, AuthenticationInfo authInfo)
authInfo
map.
This method is called after successful login and impersonation handling immediately before continuing with the request. The handler may choose to send its own response or to just set some response header (e.g. adding a Cookie) and return appropriately.
request
- The current requestresponse
- The current responseauthInfo
- The AuthenticationInfo
object used to
authenticate the request.true
if the handler sent back a response to the
client and request processing should be terminated at this point.
If false
is returned, the request proceeds as
authenticated.Copyright © 2010 - 2020 Adobe. All Rights Reserved