Class RedirectCallback.Builder

java.lang.Object
com.sun.identity.authentication.spi.RedirectCallback.Builder
Enclosing class:
RedirectCallback

@Supported public static final class RedirectCallback.Builder extends Object
A builder for constructing RedirectCallback instances.
  • Method Details

    • withRedirectUrl

      @Supported public RedirectCallback.Builder withRedirectUrl(String redirectUrl)
      Sets the URL to be redirected to.
      Parameters:
      redirectUrl - URL to be redirected to.
      Returns:
      this builder
    • withRedirectData

      @Supported public RedirectCallback.Builder withRedirectData(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.
      Returns:
      this builder
    • withMethod

      @Supported public RedirectCallback.Builder withMethod(String method)
      Sets the Method used for redirection, either "GET" or "POST".
      Parameters:
      method - Method used for redirection, either "GET" or "POST".
      Returns:
      this builder
    • withStatusParameter

      @Supported public RedirectCallback.Builder withStatusParameter(String statusParameter)
      Sets the status parameter to be checked from HTTP Servlet Request object at the result of redirection.
      Parameters:
      statusParameter - Status parameter.
      Returns:
      this builder
    • withRedirectBackUrlCookie

      @Supported public RedirectCallback.Builder withRedirectBackUrlCookie(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.
      Returns:
      this builder
    • build

      @Supported public RedirectCallback build()
      Builds a new RedirectCallback instance.
      Returns:
      a new RedirectCallback instance