Class ReplayPasswd
- java.lang.Object
-
- com.sun.identity.authentication.spi.ReplayPasswd
-
- All Implemented Interfaces:
AMPostAuthProcessInterface
public class ReplayPasswd extends Object implements AMPostAuthProcessInterface
This class is used to set the encrypted password as a session property. It reads the value of the property "com.sun.am.replaypasswd.key" which is the key that is to be used for DES Encryption. Once the password is encrypted, it assigns a session property "sunIdentityUserPassword" with this value. This class is also used to set "sharepoint_login_attr_value" as a session property to support Sharepoint. It reads the value of the property "com.sun.am.sharepoint_login_attr_name" which indicates the user token that Sharepoint uses for authentication and gets its corresponding attribute value from the user datastore.It will then put this as a value of "sharepoint_login_attr_value" session property. This class also sets the "owaAuthCookie" for the all the domains for which "iPlanetdirectoryPro" cookie is set.
-
-
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 ReplayPasswd()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonLoginFailure(Map requestParamsMap, jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res)Post processing on failed authentication.voidonLoginSuccess(Map requestParamsMap, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, SSOToken ssoToken)Post processing on successful authentication.voidonLogout(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res, SSOToken ssoToken)Post processing on Logout.
-
-
-
Method Detail
-
onLoginSuccess
public void onLoginSuccess(Map requestParamsMap, jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, SSOToken ssoToken) throws AuthenticationException
Post processing on successful authentication.- Specified by:
onLoginSuccessin interfaceAMPostAuthProcessInterface- Parameters:
requestParamsMap- contains HttpServletRequest parametersrequest- HttpServlet requestresponse- HttpServlet responsessoToken- user's session- Throws:
AuthenticationException- if there is an error while setting the session password property
-
onLoginFailure
public void onLoginFailure(Map requestParamsMap, jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res) throws AuthenticationException
Post processing on failed authentication.- Specified by:
onLoginFailurein interfaceAMPostAuthProcessInterface- Parameters:
requestParamsMap- contains HttpServletRequest parametersreq- HttpServlet requestres- HttpServlet response- Throws:
AuthenticationException- if there is an error
-
onLogout
public void onLogout(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse res, SSOToken ssoToken) throws AuthenticationExceptionPost processing on Logout.- Specified by:
onLogoutin interfaceAMPostAuthProcessInterface- Parameters:
req- HttpServlet requestres- HttpServlet responsessoToken- user's session- Throws:
AuthenticationException- if there is an error
-
-