1 package org.springframework.security.oauth2.provider;
2
3 import org.springframework.security.oauth2.common.exceptions.InvalidScopeException;
4 import org.springframework.security.oauth2.provider.endpoint.AuthorizationEndpoint;
5 import org.springframework.security.oauth2.provider.endpoint.TokenEndpoint;
6
7
8
9
10
11
12
13 public interface OAuth2RequestValidator {
14
15
16
17
18
19
20
21
22 public void validateScope(AuthorizationRequest authorizationRequest, ClientDetails client) throws InvalidScopeException;
23
24
25
26
27
28
29
30
31 public void validateScope(TokenRequest tokenRequest, ClientDetails client) throws InvalidScopeException;
32
33 }