org.springframework.security.oauth2.provider.endpoint
Class ExactMatchRedirectResolver

java.lang.Object
  extended by org.springframework.security.oauth2.provider.endpoint.DefaultRedirectResolver
      extended by org.springframework.security.oauth2.provider.endpoint.ExactMatchRedirectResolver
All Implemented Interfaces:
RedirectResolver

public class ExactMatchRedirectResolver
extends DefaultRedirectResolver

Strict implementation for a redirect resolver which requires an exact match between the registered and requested redirect_uri.

Author:
Ryan Heaton, Dave Syer

Constructor Summary
ExactMatchRedirectResolver()
           
 
Method Summary
protected  boolean redirectMatches(String requestedRedirect, String redirectUri)
          Whether the requested redirect URI "matches" the specified redirect URI.
 
Methods inherited from class org.springframework.security.oauth2.provider.endpoint.DefaultRedirectResolver
hostMatches, resolveRedirect, setMatchSubdomains, setRedirectGrantTypes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExactMatchRedirectResolver

public ExactMatchRedirectResolver()
Method Detail

redirectMatches

protected boolean redirectMatches(String requestedRedirect,
                                  String redirectUri)
Whether the requested redirect URI "matches" the specified redirect URI. This implementation tests strict equality.

Overrides:
redirectMatches in class DefaultRedirectResolver
Parameters:
requestedRedirect - The requested redirect URI.
redirectUri - The registered redirect URI.
Returns:
Whether the requested redirect URI "matches" the specified redirect URI.


Copyright © 2013. All rights reserved.