Class RedirectCallback.Builder
java.lang.Object
com.sun.identity.authentication.spi.RedirectCallback.Builder
- Enclosing class:
- RedirectCallback
A builder for constructing RedirectCallback instances.
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a new RedirectCallback instance.withMethod(String method) Sets the Method used for redirection, either "GET" or "POST".withRedirectBackUrlCookie(String redirectBackUrlCookie) Sets the redirectBackUrlCookie name to be set as the OpenAM server URL when redirecting to external web site.withRedirectData(Map<String, String> redirectData) Sets the data to be redirected to redirect URL.withRedirectUrl(String redirectUrl) Sets the URL to be redirected to.withStatusParameter(String statusParameter) Sets the status parameter to be checked from HTTP Servlet Request object at the result of redirection.
-
Method Details
-
withRedirectUrl
Sets the URL to be redirected to.- Parameters:
redirectUrl- URL to be redirected to.- Returns:
- this builder
-
withRedirectData
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
Sets the Method used for redirection, either "GET" or "POST".- Parameters:
method- Method used for redirection, either "GET" or "POST".- Returns:
- this builder
-
withStatusParameter
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
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
Builds a new RedirectCallback instance.- Returns:
- a new RedirectCallback instance
-