Class 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.
    • Constructor Detail

      • ReplayPasswd

        public ReplayPasswd()
    • 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:
        onLoginSuccess in interface AMPostAuthProcessInterface
        Parameters:
        requestParamsMap - contains HttpServletRequest parameters
        request - HttpServlet request
        response - HttpServlet response
        ssoToken - 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:
        onLoginFailure in interface AMPostAuthProcessInterface
        Parameters:
        requestParamsMap - contains HttpServletRequest parameters
        req - HttpServlet request
        res - HttpServlet response
        Throws:
        AuthenticationException - if there is an error