-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathOAuthInfoProvider.java
More file actions
40 lines (33 loc) · 1.24 KB
/
OAuthInfoProvider.java
File metadata and controls
40 lines (33 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package com.intuit.developer.sampleapp.ecommerce.oauth;
/**
* An interface that defines operations a given application would need to support in order to
* to access and persist information required during the OAuth 1.0 flow.
*/
public interface OAuthInfoProvider {
public String getAppToken();
public String getConsumerKey();
public String getConsumerSecret();
/**
* Persist the request token values for a given company in your app
* @param appCompanyId
* @param requestToken
* @param requestTokenSecret
*/
public void setRequestTokenValuesForCompany(String appCompanyId, String requestToken, String requestTokenSecret);
/**
* Lookup the request token secret and appCompanyId by a request token in your app
*
* @param requestToken
* @return
*/
public CompanyRequestTokenSecret getCompanyRequestTokenSecret(String requestToken);
/**
* Persist the accessToken, accessTokenSecret and realmId in your app for a given company
*
* @param appCompanyId
* @param realmId
* @param accessToken
* @param accessTokenSecret
*/
public void setAccessTokenForCompany(String appCompanyId, String realmId, String accessToken, String accessTokenSecret);
}