org.springframework.security.oauth2.provider
Class DefaultOAuth2RequestValidator

java.lang.Object
  extended by org.springframework.security.oauth2.provider.DefaultOAuth2RequestValidator
All Implemented Interfaces:
OAuth2RequestValidator

public class DefaultOAuth2RequestValidator
extends Object
implements OAuth2RequestValidator

Default implementation of OAuth2RequestValidator.

Author:
Amanda Anganes

Constructor Summary
DefaultOAuth2RequestValidator()
           
 
Method Summary
 void validateScope(AuthorizationRequest authorizationRequest, ClientDetails client)
          Ensure that the client has requested a valid set of scopes.
 void validateScope(TokenRequest tokenRequest, ClientDetails client)
          Ensure that the client has requested a valid set of scopes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultOAuth2RequestValidator

public DefaultOAuth2RequestValidator()
Method Detail

validateScope

public void validateScope(AuthorizationRequest authorizationRequest,
                          ClientDetails client)
                   throws InvalidScopeException
Description copied from interface: OAuth2RequestValidator
Ensure that the client has requested a valid set of scopes.

Specified by:
validateScope in interface OAuth2RequestValidator
Parameters:
authorizationRequest - the AuthorizationRequest to be validated
client - the client that is making the request
Throws:
InvalidScopeException - if a requested scope is invalid

validateScope

public void validateScope(TokenRequest tokenRequest,
                          ClientDetails client)
                   throws InvalidScopeException
Description copied from interface: OAuth2RequestValidator
Ensure that the client has requested a valid set of scopes.

Specified by:
validateScope in interface OAuth2RequestValidator
Parameters:
tokenRequest - the TokenRequest to be validated
client - the client that is making the request
Throws:
InvalidScopeException - if a requested scope is invalid


Copyright © 2013. All rights reserved.