1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 package org.apache.amber.oauth2.client.response;
23
24 import org.apache.amber.oauth2.client.validator.TokenValidator;
25 import org.apache.amber.oauth2.common.exception.OAuthProblemException;
26 import org.apache.amber.oauth2.common.token.OAuthToken;
27
28
29
30
31
32
33 public abstract class OAuthAccessTokenResponse extends OAuthClientResponse {
34
35 public abstract String getAccessToken();
36
37 public abstract Long getExpiresIn();
38
39 public abstract String getRefreshToken();
40
41 public abstract String getScope();
42
43 public abstract OAuthToken getOAuthToken();
44
45 public String getBody() {
46 return body;
47 }
48
49 @Override
50 protected void init(String body, String contentType, int responseCode) throws OAuthProblemException {
51 validator = new TokenValidator();
52 super.init(body, contentType, responseCode);
53 }
54 }