public class DefaultRedirectPolicy extends Object implements RedirectPolicy
| Constructor and Description |
|---|
DefaultRedirectPolicy() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
allowedRedirectDestination(String redirectUrl,
javax.servlet.http.HttpServletRequest request)
Checks if the given redirectURL is permitted.
|
void |
init(Map<String,String> params,
SecurityConfig config)
Initialise the configuration object with the given "init-params".
|
boolean |
isAllowAnyUrl()
Returns true if we allow redirect to any URL at all.
|
public void init(Map<String,String> params, SecurityConfig config)
Initablepublic boolean isAllowAnyUrl()
public boolean allowedRedirectDestination(String redirectUrl, javax.servlet.http.HttpServletRequest request)
Uses the configured redirect rules to see if we are allowed to redirect to the given URL. By default, the following is allowed:
<redirect-policy class="com.atlassian.seraph.config.SimpleRedirectPolicy">
<init-param>
<param-name>allow.any.redirect.url</param-name>
<param-value>true</param-value>
</init-param>
</redirect-policy>
allowedRedirectDestination in interface RedirectPolicyredirectUrl - Requested redirect URL to be verified.request - The current incoming request.true if this redirectURL is allowed.Copyright © 2018 Atlassian. All rights reserved.