Interface AuthenticationFeedbackHandler
-
- All Known Implementing Classes:
DefaultAuthenticationFeedbackHandler
@Deprecated(since="2015") public interface AuthenticationFeedbackHandlerDeprecated.Use Apache Sling's org.apache.sling.auth.core.spi package instead.TheAuthenticationFeedbackHandlermay be implemented byAuthenticationHandlerservices to request being informed on the success or failure of authentication.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidauthenticationFailed(HttpServletRequest request, HttpServletResponse response, AuthenticationInfo authInfo)Deprecated.Called if authentication failed with the credentials provided in theauthInfomap.booleanauthenticationSucceeded(HttpServletRequest request, HttpServletResponse response, AuthenticationInfo authInfo)Deprecated.Called if authentication succeeded with the credentials provided in theauthInfomap.
-
-
-
Method Detail
-
authenticationFailed
void authenticationFailed(HttpServletRequest request, HttpServletResponse response, AuthenticationInfo authInfo)
Deprecated.Called if authentication failed with the credentials provided in theauthInfomap.This method allows the handler to cleanup any state prepared while handling the
extractCredentialsmethod. Handlers are expected to not send a in this method because the Sling Authenticator will proceed to select an authentication handler whoserequestCredentialsmethod will be called.- Parameters:
request- The current requestresponse- The current responseauthInfo- TheAuthenticationInfoobject used to authenticate the request.
-
authenticationSucceeded
boolean authenticationSucceeded(HttpServletRequest request, HttpServletResponse response, AuthenticationInfo authInfo)
Deprecated.Called if authentication succeeded with the credentials provided in theauthInfomap.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.
- Parameters:
request- The current requestresponse- The current responseauthInfo- TheAuthenticationInfoobject used to authenticate the request.- Returns:
trueif the handler sent back a response to the client and request processing should be terminated at this point. Iffalseis returned, the request proceeds as authenticated.
-
-