public class RedirectCallback extends Object implements Callback, Serializable
RedirectCallback
class implements Callback
and is used by the authentication module when redirect to a particulat URL
is required with specific redirect data.Modifier and Type | Field and Description |
---|---|
static String |
FAILED
The status as the result of redirection, as "FAILED".
|
static String |
SUCCESS
The status as the result of redirection, as "SUCCESS".
|
Constructor and Description |
---|
RedirectCallback()
Constructs a
RedirectCallback object. |
RedirectCallback(String redirectUrl,
Map redirectData,
String method)
Constructs a
RedirectCallback object with
redirect URL,redirect data and redirect method. |
RedirectCallback(String redirectUrl,
Map redirectData,
String method,
String statusParameter,
String redirectBackUrlCookie)
Constructs a
RedirectCallback object with
redirect URL,redirect data,redirect method,status parameter
and redirect back URL Cookie name. |
Modifier and Type | Method and Description |
---|---|
String |
getMethod()
Returns the Method used for redirection, either "GET" or "POST".
|
String |
getRedirectBackUrlCookieName()
Returns the redirectBackUrlCookie name to be set as the OpenAM
server URL when redirecting to external web site.
|
Map<String,String> |
getRedirectData()
Returns the data to be redirected to redirect URL.
|
String |
getRedirectUrl()
Returns the URL to be redirected to.
|
String |
getStatus()
Returns the status as the result of redirection,
either "SUCCESS" or "FAILED".
|
String |
getStatusParameter()
Returns the statusParameter to be checked from HttpServletRequest object
at the result of redirection.
|
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.
|
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 |
setRedirectData(Map redirectData)
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.
|
public static final String SUCCESS
public static final String FAILED
public RedirectCallback()
RedirectCallback
object.public RedirectCallback(String redirectUrl, Map redirectData, String method)
RedirectCallback
object with
redirect URL,redirect data and redirect method.redirectUrl
- URL to be redirected to.redirectData
- the data to be redirected to redirect URL.method
- Method used for redirection, either "GET" or "POST".public RedirectCallback(String redirectUrl, Map redirectData, String method, String statusParameter, String redirectBackUrlCookie)
RedirectCallback
object with
redirect URL,redirect data,redirect method,status parameter
and redirect back URL Cookie name.redirectUrl
- URL to be redirected to.redirectData
- the data to be redirected to redirect URL.method
- Method used for redirection, either "GET" or "POST".statusParameter
- statusParameter to be checked from
HttpServletRequest object at the result of redirection.redirectBackUrlCookie
- redirectBackUrlCookie name to be set as the
OpenAM server URL when redirecting to external web site.public void setRedirectUrl(String redirectUrl)
redirectUrl
- URL to be redirected to.public String getRedirectUrl()
public void setRedirectData(Map redirectData)
redirectData
- the data to be redirected to redirect URL.public Map<String,String> getRedirectData()
public void setMethod(String method)
method
- Method used for redirection, either "GET" or "POST".public String getMethod()
public void setStatus(String status)
status
- status as the result of redirection,
either "SUCCESS" or "FAILED".public String getStatus()
public void setStatusParameter(String statusParameter)
statusParameter
- Status parameter.public String getStatusParameter()
public void setRedirectBackUrlCookieName(String redirectBackUrlCookie)
redirectBackUrlCookie
- redirectBackUrlCookie name to be set as the
OpenAM server URL when redirecting to external web site.public void setTrackingCookie(boolean enableCookie)
enableCookie
- if a cookie should store the current authId position.public boolean getTrackingCookie()
public String getRedirectBackUrlCookieName()
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.