Class RedirectCallback
java.lang.Object
com.sun.identity.authentication.spi.RedirectCallback
- All Implemented Interfaces:
Serializable,Callback
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 ClassesModifier and TypeClassDescriptionstatic final classA builder for constructing RedirectCallback instances. -
Method Summary
Modifier and TypeMethodDescriptionstatic RedirectCallback.Builderbuilder()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.booleanGets the value of this RedirectCallback's trackingCookie, indicating whether we should store information about the current authId in a cookie via the XUI.voidSets the Method used for redirection, either "GET" or "POST".voidsetRedirectBackUrlCookieName(String redirectBackUrlCookie) Sets the redirectBackUrlCookie name to be set as the OpenAM server URL when redirecting to external web site.voidsetRedirectData(Map<String, String> redirectData) Sets the data to be redirected to redirect URL.voidsetRedirectUrl(String redirectUrl) Sets the URL to be redirected to.voidSets the status as the result of redirection, either "SUCCESS" or "FAILED".voidsetStatusParameter(String statusParameter) Sets the status parameter to be checked from HTTP Servlet Request object at the result of redirection.voidsetTrackingCookie(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.
-
Method Details
-
setRedirectUrl
Sets the URL to be redirected to.- Parameters:
redirectUrl- URL to be redirected to.
-
getRedirectUrl
Returns the URL to be redirected to.- Returns:
- the URL to be redirected to.
-
setRedirectData
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
Returns the data to be redirected to redirect URL.- Returns:
- the Map of data to be redirected to redirect URL.
-
setMethod
Sets the Method used for redirection, either "GET" or "POST".- Parameters:
method- Method used for redirection, either "GET" or "POST".
-
getMethod
Returns the Method used for redirection, either "GET" or "POST".- Returns:
- the Method used for redirection, either "GET" or "POST".
-
setStatus
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
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
Sets the status parameter to be checked from HTTP Servlet Request object at the result of redirection.- Parameters:
statusParameter- Status parameter.
-
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
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
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
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
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
Returns a new RedirectCallbackBuilder to use for construction of a RedirectCallback.- Returns:
- a new RedirectCallbackBuilder object.
-