Class XuiRedirectHelper


  • public final class XuiRedirectHelper
    extends Object
    Helper for redirecting back to the XUI.
    Since:
    13.0.0
    • Method Detail

      • redirectToXui

        public static void redirectToXui​(jakarta.servlet.http.HttpServletRequest request,
                                         String administeredRealm,
                                         String authenticationRealm,
                                         String xuiHash)
        Redirects to the XUI to the specified realm and hash.
        Parameters:
        request - Used to determine the OpenAM deployment URI.
        administeredRealm - The realm which is being administered.
        authenticationRealm - The realm to which the user is authenticated.
        xuiHash - The XUI location hash.
      • redirectToXui

        public static void redirectToXui​(jakarta.servlet.http.HttpServletRequest request,
                                         String xuiHash,
                                         String authenticationRealm)
        Redirects to the XUI to the specified hash.
        Parameters:
        request - Used to determine the OpenAM deployment URI.
        xuiHash - The XUI location hash.
        authenticationRealm - The realm to which the user is authenticated.
      • getAdministeredRealm

        public static String getAdministeredRealm​(com.iplanet.jato.view.ViewBeanBase viewBean)
        Gets the administered realm to redirect to from the JATO page session.
        Parameters:
        viewBean - The view bean.
        Returns:
        The administered realm.
      • getAuthenticationRealm

        public static String getAuthenticationRealm​(com.iplanet.jato.view.ViewBeanBase viewBean)
        Gets the authentication realm to redirect to from the JATO page session.
        Parameters:
        viewBean - The view bean.
        Returns:
        The authentication realm.
      • isJatoSessionRequestFromXUI

        public static boolean isJatoSessionRequestFromXUI​(jakarta.servlet.http.HttpServletRequest request)
        Determines if request is from XUI to get a JATO page session.
        Parameters:
        request - The request.
        Returns:
        true if the request is from the XUI, false otherwise.
      • isXuiAdminConsoleEnabled

        public static boolean isXuiAdminConsoleEnabled()
        Determines if the XUI admin console is enabled.
        Returns:
        true if the XUI admin console is enabled, false otherwise.