Package com.sun.identity.console
Class XuiRedirectHelper
- java.lang.Object
-
- com.sun.identity.console.XuiRedirectHelper
-
public final class XuiRedirectHelper extends Object
Helper for redirecting back to the XUI.- Since:
- 13.0.0
-
-
Field Summary
Fields Modifier and Type Field Description static StringDEPLOYMENT_SERVERSstatic StringGLOBAL_SERVICESstatic StringSERVER_DEFAULT_LOCATIONstatic StringTOP_LEVEL_REALM_SESSIONS
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetAdministeredRealm(com.iplanet.jato.view.ViewBeanBase viewBean)Gets the administered realm to redirect to from the JATO page session.static StringgetAuthenticationRealm(com.iplanet.jato.view.ViewBeanBase viewBean)Gets the authentication realm to redirect to from the JATO page session.static booleanisJatoSessionRequestFromXUI(jakarta.servlet.http.HttpServletRequest request)Determines if request is from XUI to get a JATO page session.static booleanisXuiAdminConsoleEnabled()Determines if the XUI admin console is enabled.static voidredirectToXui(jakarta.servlet.http.HttpServletRequest request, String xuiHash, String authenticationRealm)Redirects to the XUI to the specified hash.static voidredirectToXui(jakarta.servlet.http.HttpServletRequest request, String administeredRealm, String authenticationRealm, String xuiHash)Redirects to the XUI to the specified realm and hash.
-
-
-
Field Detail
-
SERVER_DEFAULT_LOCATION
public static final String SERVER_DEFAULT_LOCATION
- See Also:
- Constant Field Values
-
DEPLOYMENT_SERVERS
public static final String DEPLOYMENT_SERVERS
- See Also:
- Constant Field Values
-
GLOBAL_SERVICES
public static final String GLOBAL_SERVICES
- See Also:
- Constant Field Values
-
TOP_LEVEL_REALM_SESSIONS
public static final String TOP_LEVEL_REALM_SESSIONS
- See Also:
- Constant Field Values
-
-
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:
trueif the request is from the XUI,falseotherwise.
-
isXuiAdminConsoleEnabled
public static boolean isXuiAdminConsoleEnabled()
Determines if the XUI admin console is enabled.- Returns:
trueif the XUI admin console is enabled,falseotherwise.
-
-