org.springframework.security.oauth2.provider
Interface OAuth2RequestValidator

All Known Implementing Classes:
DefaultOAuth2RequestValidator

public interface OAuth2RequestValidator

Validation interface for OAuth2 requests to the AuthorizationEndpoint and TokenEndpoint.

Author:
Amanda Anganes

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.
 

Method Detail

validateScope

void validateScope(AuthorizationRequest authorizationRequest,
                   ClientDetails client)
                   throws InvalidScopeException
Ensure that the client has requested a valid set of scopes.

Parameters:
authorizationRequest - the AuthorizationRequest to be validated
client - the client that is making the request
Throws:
InvalidScopeException - if a requested scope is invalid

validateScope

void validateScope(TokenRequest tokenRequest,
                   ClientDetails client)
                   throws InvalidScopeException
Ensure that the client has requested a valid set of scopes.

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.