org.springframework.security.oauth2.provider
Class DefaultOAuth2RequestValidator
java.lang.Object
org.springframework.security.oauth2.provider.DefaultOAuth2RequestValidator
- All Implemented Interfaces:
- OAuth2RequestValidator
public class DefaultOAuth2RequestValidator
- extends Object
- implements OAuth2RequestValidator
Default implementation of OAuth2RequestValidator.
- Author:
- Amanda Anganes
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultOAuth2RequestValidator
public DefaultOAuth2RequestValidator()
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 validatedclient - 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 validatedclient - the client that is making the request
- Throws:
InvalidScopeException - if a requested scope is invalid
Copyright © 2013. All rights reserved.