View Javadoc
1   package org.springframework.security.oauth2.provider.endpoint;
2   
3   import org.springframework.security.oauth2.common.exceptions.OAuth2Exception;
4   import org.springframework.security.oauth2.provider.ClientDetails;
5   
6   /**
7    * Basic interface for determining the redirect URI for a user agent.
8    * 
9    * @author Ryan Heaton
10   */
11  public interface RedirectResolver {
12  
13    /**
14     * Resolve the redirect for the specified client.
15     *
16     * @param requestedRedirect The redirect that was requested (may not be null).
17     * @param client The client for which we're resolving the redirect.
18     * @return The resolved redirect URI.
19     * @throws OAuth2Exception If the requested redirect is invalid for the specified client.
20     */
21    String resolveRedirect(String requestedRedirect, ClientDetails client) throws OAuth2Exception;
22  
23  }