1 package org.springframework.security.oauth2.provider.code;
2
3 import org.springframework.security.oauth2.common.exceptions.InvalidGrantException;
4 import org.springframework.security.oauth2.provider.OAuth2Authentication;
5
6
7
8
9
10
11 public interface AuthorizationCodeServices {
12
13
14
15
16
17
18
19 String createAuthorizationCode(OAuth2Authentication authentication);
20
21
22
23
24
25
26
27
28 OAuth2Authentication consumeAuthorizationCode(String code)
29 throws InvalidGrantException;
30
31 }