1 package org.springframework.security.oauth2.provider.token;
2
3 import org.springframework.security.core.AuthenticationException;
4 import org.springframework.security.oauth2.common.OAuth2AccessToken;
5 import org.springframework.security.oauth2.common.exceptions.InvalidTokenException;
6 import org.springframework.security.oauth2.provider.OAuth2Authentication;
7
8 public interface ResourceServerTokenServices {
9
10
11
12
13
14
15
16
17
18 OAuth2Authentication loadAuthentication(String accessToken) throws AuthenticationException, InvalidTokenException;
19
20
21
22
23
24
25
26 OAuth2AccessToken readAccessToken(String accessToken);
27
28 }