Class DefaultAuthenticationFeedbackHandler
- java.lang.Object
-
- org.apache.sling.commons.auth.spi.DefaultAuthenticationFeedbackHandler
-
- All Implemented Interfaces:
AuthenticationFeedbackHandler
@Deprecated(since="2015") public class DefaultAuthenticationFeedbackHandler extends java.lang.Object implements AuthenticationFeedbackHandler
Deprecated.
-
-
Constructor Summary
Constructors Constructor Description DefaultAuthenticationFeedbackHandler()Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidauthenticationFailed(HttpServletRequest request, HttpServletResponse response, AuthenticationInfo authInfo)Deprecated.This default implementation does nothing.booleanauthenticationSucceeded(HttpServletRequest request, HttpServletResponse response, AuthenticationInfo authInfo)Deprecated.This default implementation calls thehandleRedirect(HttpServletRequest, HttpServletResponse)method to optionally redirect the request after successful authentication.static booleanhandleRedirect(HttpServletRequest request, HttpServletResponse response)Deprecated.Handles an optional request for a redirect after successful authentication andtrueif the request has been redirected.
-
-
-
Method Detail
-
handleRedirect
public static boolean handleRedirect(HttpServletRequest request, HttpServletResponse response)
Deprecated.Handles an optional request for a redirect after successful authentication andtrueif the request has been redirected.If sending the redirect response fails due to some IO problems, the request is still terminated but an error message is logged indicating the problem.
- Returns:
trueif redirect was requested. Otherwisefalseis returned. Note, thattrueis returned regardless of whether sending the redirect response succeeded or not.
-
authenticationFailed
public void authenticationFailed(HttpServletRequest request, HttpServletResponse response, AuthenticationInfo authInfo)
Deprecated.This default implementation does nothing.Extensions of this class may overwrite to cleanup any internal state.
- Specified by:
authenticationFailedin interfaceAuthenticationFeedbackHandler- Parameters:
request- The current requestresponse- The current responseauthInfo- TheAuthenticationInfoobject used to authenticate the request.
-
authenticationSucceeded
public boolean authenticationSucceeded(HttpServletRequest request, HttpServletResponse response, AuthenticationInfo authInfo)
Deprecated.This default implementation calls thehandleRedirect(HttpServletRequest, HttpServletResponse)method to optionally redirect the request after successful authentication.Extensions of this class may overwrite this method to perform additional cleanup etc.
- Specified by:
authenticationSucceededin interfaceAuthenticationFeedbackHandler- Parameters:
request- The current requestresponse- The current responseauthInfo- TheAuthenticationInfoobject used to authenticate the request.- Returns:
- the result of calling the
handleRedirect(HttpServletRequest, HttpServletResponse)method.
-
-