Class AdaptivePostAuthenticationPlugin
- java.lang.Object
-
- org.forgerock.openam.authentication.modules.adaptive.AdaptivePostAuthenticationPlugin
-
- All Implemented Interfaces:
AMPostAuthProcessInterface
public class AdaptivePostAuthenticationPlugin extends Object implements AMPostAuthProcessInterface
Post Authentication Plugin for the Adaptive authentication module. The adaptive authentication plugin serves to save cookies and profile attributes after successful authentication. Add it to your authentication chains that use the adaptive authentication module configured to save cookies and profile attributes.
-
-
Field Summary
-
Fields inherited from interface com.sun.identity.authentication.spi.AMPostAuthProcessInterface
POST_PROCESS_LOGIN_FAILURE_URL, POST_PROCESS_LOGIN_SUCCESS_URL, POST_PROCESS_LOGOUT_URL
-
-
Constructor Summary
Constructors Constructor Description AdaptivePostAuthenticationPlugin()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonLoginFailure(Map requestParamsMap, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response)Post processing on failed authentication.voidonLoginSuccess(Map requestParamsMap, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, SSOToken token)Post processing on successful authentication.voidonLogout(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, SSOToken token)Post processing on Logout.
-
-
-
Method Detail
-
onLoginSuccess
public void onLoginSuccess(Map requestParamsMap, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, SSOToken token) throws AuthenticationException
Description copied from interface:AMPostAuthProcessInterfacePost processing on successful authentication.- Specified by:
onLoginSuccessin interfaceAMPostAuthProcessInterface- Parameters:
requestParamsMap- map containingHttpServletRequestparametersrequest-HttpServletRequestobject.response-HttpServletResponseobject.token- authenticated user's single sign token.- Throws:
AuthenticationException- if there is an error.
-
onLoginFailure
public void onLoginFailure(Map requestParamsMap, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response) throws AuthenticationException
Description copied from interface:AMPostAuthProcessInterfacePost processing on failed authentication.- Specified by:
onLoginFailurein interfaceAMPostAuthProcessInterface- Parameters:
requestParamsMap- map containingHttpServletRequestparameters.request-HttpServletRequestobject.response-HttpServletResponseobject.- Throws:
AuthenticationException- when there is an error.
-
onLogout
public void onLogout(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, SSOToken token) throws AuthenticationExceptionDescription copied from interface:AMPostAuthProcessInterfacePost processing on Logout.- Specified by:
onLogoutin interfaceAMPostAuthProcessInterface- Parameters:
request-HttpServletRequestobject.response-HttpServletResponseobject.token- authenticated user's single sign on token.- Throws:
AuthenticationException- if an error occurs during logout post processing
-
-