@Deprecated public class DefaultRedirectResolver extends Object implements RedirectResolver
Constructor and Description |
---|
DefaultRedirectResolver()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
hostMatches(String registered,
String requested)
Deprecated.
Check if host matches the registered value.
|
protected boolean |
redirectMatches(String requestedRedirect,
String redirectUri)
Deprecated.
Whether the requested redirect URI "matches" the specified redirect URI.
|
String |
resolveRedirect(String requestedRedirect,
ClientDetails client)
Deprecated.
Resolve the redirect for the specified client.
|
void |
setMatchPorts(boolean matchPorts)
Deprecated.
Flag that enables/disables port matching between the requested redirect URI and the registered redirect URI(s).
|
void |
setMatchSubdomains(boolean matchSubdomains)
Deprecated.
Flag to indicate that requested URIs will match if they are a subdomain of the registered value.
|
void |
setRedirectGrantTypes(Collection<String> redirectGrantTypes)
Deprecated.
Grant types that are permitted to have a redirect uri.
|
public void setMatchSubdomains(boolean matchSubdomains)
matchSubdomains
- the flag value to set (default true)public void setMatchPorts(boolean matchPorts)
matchPorts
- true to enable port matching, false to disable (defaults to true)public void setRedirectGrantTypes(Collection<String> redirectGrantTypes)
redirectGrantTypes
- the redirect grant types to setpublic String resolveRedirect(String requestedRedirect, ClientDetails client) throws OAuth2Exception
RedirectResolver
resolveRedirect
in interface RedirectResolver
requestedRedirect
- The redirect that was requested (may not be null).client
- The client for which we're resolving the redirect.OAuth2Exception
- If the requested redirect is invalid for the specified client.protected boolean redirectMatches(String requestedRedirect, String redirectUri)
For other (non-URL) cases, such as for some implicit clients, the redirect_uri must be an exact match.
requestedRedirect
- The requested redirect URI.redirectUri
- The registered redirect URI.Copyright © 2019. All rights reserved.