public class DefaultOAuth2RequestValidator extends Object implements OAuth2RequestValidator
OAuth2RequestValidator
.Constructor and Description |
---|
DefaultOAuth2RequestValidator() |
Modifier and Type | Method and Description |
---|---|
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.
|
public void validateScope(AuthorizationRequest authorizationRequest, ClientDetails client) throws InvalidScopeException
OAuth2RequestValidator
validateScope
in interface OAuth2RequestValidator
authorizationRequest
- the AuthorizationRequest to be validatedclient
- the client that is making the requestInvalidScopeException
- if a requested scope is invalidpublic void validateScope(TokenRequest tokenRequest, ClientDetails client) throws InvalidScopeException
OAuth2RequestValidator
validateScope
in interface OAuth2RequestValidator
tokenRequest
- the TokenRequest to be validatedclient
- the client that is making the requestInvalidScopeException
- if a requested scope is invalidCopyright © 2019. All rights reserved.