Class RedirectCallback

java.lang.Object
com.sun.identity.authentication.spi.RedirectCallback
All Implemented Interfaces:
Serializable, Callback

@Supported public class RedirectCallback extends Object implements Callback, Serializable
This RedirectCallback class implements Callback and is used by the authentication module when redirect to a particulat URL is required with specific redirect data.
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static final class 
    A builder for constructing RedirectCallback instances.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a new RedirectCallbackBuilder to use for construction of a RedirectCallback.
    Returns the Method used for redirection, either "GET" or "POST".
    Returns the redirectBackUrlCookie name to be set as the OpenAM server URL when redirecting to external web site.
    Returns the data to be redirected to redirect URL.
    Returns the URL to be redirected to.
    Returns the status as the result of redirection, either "SUCCESS" or "FAILED".
    Returns the statusParameter to be checked from HttpServletRequest object at the result of redirection.
    boolean
    Gets the value of this RedirectCallback's trackingCookie, indicating whether we should store information about the current authId in a cookie via the XUI.
    void
    setMethod(String method)
    Sets the Method used for redirection, either "GET" or "POST".
    void
    setRedirectBackUrlCookieName(String redirectBackUrlCookie)
    Sets the redirectBackUrlCookie name to be set as the OpenAM server URL when redirecting to external web site.
    void
    Sets the data to be redirected to redirect URL.
    void
    setRedirectUrl(String redirectUrl)
    Sets the URL to be redirected to.
    void
    setStatus(String status)
    Sets the status as the result of redirection, either "SUCCESS" or "FAILED".
    void
    setStatusParameter(String statusParameter)
    Sets the status parameter to be checked from HTTP Servlet Request object at the result of redirection.
    void
    setTrackingCookie(boolean enableCookie)
    Whether the XUI should execute this immediately, or expect we'll be returned from it -- necessary to be set if this redirect is expected to be returned from.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • setRedirectUrl

      @Supported public void setRedirectUrl(String redirectUrl)
      Sets the URL to be redirected to.
      Parameters:
      redirectUrl - URL to be redirected to.
    • getRedirectUrl

      @Supported public String getRedirectUrl()
      Returns the URL to be redirected to.
      Returns:
      the URL to be redirected to.
    • setRedirectData

      @Supported public void setRedirectData(Map<String,String> redirectData)
      Sets the data to be redirected to redirect URL. This data is in the form of HashMap of name / value pairs.
      Parameters:
      redirectData - the data to be redirected to redirect URL.
    • getRedirectData

      @Supported public Map<String,String> getRedirectData()
      Returns the data to be redirected to redirect URL.
      Returns:
      the Map of data to be redirected to redirect URL.
    • setMethod

      @Supported public void setMethod(String method)
      Sets the Method used for redirection, either "GET" or "POST".
      Parameters:
      method - Method used for redirection, either "GET" or "POST".
    • getMethod

      @Supported public String getMethod()
      Returns the Method used for redirection, either "GET" or "POST".
      Returns:
      the Method used for redirection, either "GET" or "POST".
    • setStatus

      @Supported public void setStatus(String status)
      Sets the status as the result of redirection, either "SUCCESS" or "FAILED".
      Parameters:
      status - status as the result of redirection, either "SUCCESS" or "FAILED".
    • getStatus

      @Supported public String getStatus()
      Returns the status as the result of redirection, either "SUCCESS" or "FAILED".
      Returns:
      the status as the result of redirection, either "SUCCESS" or "FAILED".
    • setStatusParameter

      @Supported public void setStatusParameter(String statusParameter)
      Sets the status parameter to be checked from HTTP Servlet Request object at the result of redirection.
      Parameters:
      statusParameter - Status parameter.
    • getStatusParameter

      @Supported public String getStatusParameter()
      Returns the statusParameter to be checked from HttpServletRequest object at the result of redirection.
      Returns:
      the statusParameter to be checked from HttpServletRequest object at the result of redirection.
    • setRedirectBackUrlCookieName

      @Supported public void setRedirectBackUrlCookieName(String redirectBackUrlCookie)
      Sets the redirectBackUrlCookie name to be set as the OpenAM server URL when redirecting to external web site.
      Parameters:
      redirectBackUrlCookie - redirectBackUrlCookie name to be set as the OpenAM server URL when redirecting to external web site.
    • setTrackingCookie

      @Supported public void setTrackingCookie(boolean enableCookie)
      Whether the XUI should execute this immediately, or expect we'll be returned from it -- necessary to be set if this redirect is expected to be returned from.
      Parameters:
      enableCookie - if a cookie should store the current authId position.
    • getTrackingCookie

      @Supported public boolean getTrackingCookie()
      Gets the value of this RedirectCallback's trackingCookie, indicating whether we should store information about the current authId in a cookie via the XUI.
      Returns:
      true if we should store, false otherwise.
    • getRedirectBackUrlCookieName

      @Supported public String getRedirectBackUrlCookieName()
      Returns the redirectBackUrlCookie name to be set as the OpenAM server URL when redirecting to external web site.
      Returns:
      the redirectBackUrlCookie name to be set as the OpenAM server URL when redirecting to external web site.
    • builder

      @Supported public static RedirectCallback.Builder builder()
      Returns a new RedirectCallbackBuilder to use for construction of a RedirectCallback.
      Returns:
      a new RedirectCallbackBuilder object.